drizzle-kit 0.20.14-dc3503a → 0.20.14-f5f86f6

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.
Files changed (2) hide show
  1. package/bin.cjs +10 -18
  2. package/package.json +1 -1
package/bin.cjs CHANGED
@@ -21834,8 +21834,10 @@ var init_utils3 = __esm({
21834
21834
  assertOrmCoreVersion = async () => {
21835
21835
  try {
21836
21836
  const { compatibilityVersion } = await import("drizzle-orm/version");
21837
- if (compatibilityVersion && compatibilityVersion === requiredApiVersion)
21837
+ await import("drizzle-orm/relations");
21838
+ if (compatibilityVersion && compatibilityVersion === requiredApiVersion) {
21838
21839
  return;
21840
+ }
21839
21841
  if (!compatibilityVersion || compatibilityVersion < requiredApiVersion) {
21840
21842
  console.log(
21841
21843
  "This version of drizzle-kit requires newer version of drizzle-orm\nPlease update drizzle-orm package to the latest version \u{1F44D}"
@@ -62982,7 +62984,6 @@ init_pg();
62982
62984
  init_common();
62983
62985
  init_mysql();
62984
62986
  init_outputs();
62985
- var import_server = require("@drizzle-team/studio/server");
62986
62987
 
62987
62988
  // node_modules/.pnpm/dotenv@16.0.3/node_modules/dotenv/config.js
62988
62989
  (function() {
@@ -62996,7 +62997,6 @@ var import_server = require("@drizzle-team/studio/server");
62996
62997
  })();
62997
62998
 
62998
62999
  // src/cli/index.ts
62999
- var import_studio = require("@drizzle-team/studio");
63000
63000
  init_global();
63001
63001
 
63002
63002
  // src/utils/certs.ts
@@ -63204,15 +63204,6 @@ var dbPushCommand = new import_commander.Command("push").option(
63204
63204
  }
63205
63205
  process.exit(0);
63206
63206
  });
63207
- var dbPushSqliteCommand = new import_commander.Command("push:sqlite").option(
63208
- "--config <config>",
63209
- "Path to a config.ts file, drizzle.config.ts by default"
63210
- ).option("--schema <schema>", "Path to a schema file or folder").option("--tablesFilter", `Table name filters`).option("--connectionString <connectionString>", "SQLite connection string").option("--driver <driver>", "Driver used for querying the database").option("--url <url>", "SQLite database path").option("--auth-token <authToken>", "SQLite database path").option("--verbose", "Print all statements for each push").option("--strict", "Always ask for confirmation").action(async (options) => {
63211
- printVersions();
63212
- assertPackages("drizzle-orm");
63213
- assertOrmCoreVersion();
63214
- process.exit(0);
63215
- });
63216
63207
  var checkSchema = objectType({
63217
63208
  out: stringType().optional(),
63218
63209
  config: stringType().optional(),
@@ -63436,9 +63427,9 @@ var introspectSQLiteCommand = new import_commander.Command("introspect:sqlite").
63436
63427
  "--introspect-casing <introspectCasing>",
63437
63428
  "Column object keys naming strategy"
63438
63429
  ).option("--tablesFilter", `Table name filters`).option("--schema <schema>", `Migrations folder`).option("--out <out>", `Migrations folder`).option("--breakpoints", `Prepare SQL statements with breakpoints`).option("--driver <driver>", "Driver used for querying the database").option("--url <url>", "SQLite database url").option("--auth-token <authToken>", "SQLite database path").action(async (options) => {
63439
- printVersions();
63440
- assertPackages("drizzle-orm");
63441
- assertOrmCoreVersion();
63430
+ await printVersions();
63431
+ await assertPackages("drizzle-orm");
63432
+ await assertOrmCoreVersion();
63442
63433
  const { sqliteIntrospect: sqliteIntrospect2 } = await Promise.resolve().then(() => (init_sqliteIntrospect(), sqliteIntrospect_exports));
63443
63434
  const res = await validateIntrospect(options);
63444
63435
  const out = res.out;
@@ -63511,6 +63502,8 @@ var studioCommand = new import_commander.Command("studio").option("--port <port>
63511
63502
  await printVersions();
63512
63503
  await assertOrmCoreVersion();
63513
63504
  assertStudioNodeVersion();
63505
+ const { prepareServer } = await import("@drizzle-team/studio/server");
63506
+ const { queryEngineForSetup } = await import("@drizzle-team/studio");
63514
63507
  const { validateStudio: validateStudio2 } = await Promise.resolve().then(() => (init_studio(), studio_exports));
63515
63508
  const drizzleConfig = await validateStudio2(options);
63516
63509
  const {
@@ -63578,8 +63571,8 @@ var studioCommand = new import_commander.Command("studio").option("--port <port>
63578
63571
  } else {
63579
63572
  assertUnreachable(driver2);
63580
63573
  }
63581
- const qeueryEngine = (0, import_studio.queryEngineForSetup)(setup);
63582
- const server = await (0, import_server.prepareServer)((_2) => {
63574
+ const qeueryEngine = queryEngineForSetup(setup);
63575
+ const server = await prepareServer((_2) => {
63583
63576
  return qeueryEngine;
63584
63577
  });
63585
63578
  const port = options.port ?? 4983;
@@ -63639,7 +63632,6 @@ var main = async () => {
63639
63632
  import_commander.program.addCommand(dropCommand);
63640
63633
  import_commander.program.addCommand(dbPushCommand);
63641
63634
  import_commander.program.addCommand(introspectSQLiteCommand);
63642
- import_commander.program.addCommand(dbPushSqliteCommand);
63643
63635
  import_commander.program.addCommand(checkMySqlCommand);
63644
63636
  import_commander.program.addCommand(studioCommand);
63645
63637
  import_commander.program.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.20.14-dc3503a",
3
+ "version": "0.20.14-f5f86f6",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",