driftsql 2.0.0-beta.5 → 2.0.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import "../src-i3Ru40FK.js";
2
+ import "../src-CbzgiqO5.js";
3
3
 
4
4
  export { };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #! /usr/bin/env node
2
- import { A as createPostgresHelpers, B as PostgresGenerator, C as timestamp, D as createSQLiteHelpers, E as varchar, F as generateMigrationFromChanges, H as MigrationRunner, I as MigrationBuilder, L as createMigration, M as generateTypesFromSchema, N as SchemaDiffer, O as createMySQLHelpers, P as detectChanges, R as SQLiteGenerator, S as time, T as uuid, V as SnapshotManager, _ as numeric, a as Column, b as smallint, c as boolean, d as date, f as decimal, g as jsonb, h as json, i as createTable, j as TypeGenerator, k as PostgresDriver, l as bytea, m as integer, n as SQLClient, o as bigint, p as doublePrecision, r as Table, s as bigserial, t as DriftSQLClient, u as char, v as real, w as timestamptz, x as text, y as serial, z as MySQLGenerator } from "./src-i3Ru40FK.js";
2
+ import { A as createPostgresHelpers, B as PostgresGenerator, C as timestamp, D as createSQLiteHelpers, E as varchar, F as generateMigrationFromChanges, H as MigrationRunner, I as MigrationBuilder, L as createMigration, M as generateTypesFromSchema, N as SchemaDiffer, O as createMySQLHelpers, P as detectChanges, R as SQLiteGenerator, S as time, T as uuid, V as SnapshotManager, _ as numeric, a as Column, b as smallint, c as boolean, d as date, f as decimal, g as jsonb, h as json, i as createTable, j as TypeGenerator, k as PostgresDriver, l as bytea, m as integer, n as SQLClient, o as bigint, p as doublePrecision, r as Table, s as bigserial, t as DriftSQLClient, u as char, v as real, w as timestamptz, x as text, y as serial, z as MySQLGenerator } from "./src-CbzgiqO5.js";
3
3
 
4
4
  export { Column, DriftSQLClient, MigrationBuilder, MigrationRunner, MySQLGenerator, PostgresDriver, PostgresGenerator, SQLClient, SQLiteGenerator, SchemaDiffer, SnapshotManager, Table, TypeGenerator, bigint, bigserial, boolean, bytea, char, createMigration, createMySQLHelpers, createPostgresHelpers, createSQLiteHelpers, createTable, date, decimal, detectChanges, doublePrecision, generateMigrationFromChanges, generateTypesFromSchema, integer, json, jsonb, numeric, real, serial, smallint, text, time, timestamp, timestamptz, uuid, varchar };
@@ -41,13 +41,11 @@ var MigrationRunner = class {
41
41
  this.client = client;
42
42
  }
43
43
  async ensureMigrationsTable() {
44
- await this.client.query(`
45
- CREATE TABLE IF NOT EXISTS _migrations (
46
- version VARCHAR(255) PRIMARY KEY,
47
- name VARCHAR(255) NOT NULL,
48
- applied_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
49
- );
50
- `);
44
+ await this.client.query(`CREATE TABLE IF NOT EXISTS _migrations (
45
+ version VARCHAR(255) PRIMARY KEY,
46
+ name VARCHAR(255) NOT NULL,
47
+ applied_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
48
+ )`);
51
49
  }
52
50
  async getAppliedMigrations() {
53
51
  await this.ensureMigrationsTable();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "driftsql",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "A modern, type-safe SQL client with built-in schema builder and migration system for TypeScript.",
5
5
  "type": "module",
6
6
  "license": "MIT",