@prisma/config 6.13.0-dev.24 → 6.13.0-dev.25

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/index.d.ts CHANGED
@@ -318,10 +318,10 @@ declare type MigrationsConfigShape = {
318
318
  */
319
319
  path?: string;
320
320
  /**
321
- * Provide a function to pass a SQL script that will be used to setup external tables during migration diffing.
322
- * Also see `tables.external`.
321
+ * Provide a SQL script that will be used to setup external tables and enums during migration diffing.
322
+ * Also see `tables.external` and `enums.external`.
323
323
  */
324
- setupExternalTables?: string;
324
+ initShadowDb?: string;
325
325
  /**
326
326
  * The command to run to seed the database after schema migrations are applied.
327
327
  */
package/dist/index.js CHANGED
@@ -378,10 +378,10 @@ function validateExperimentalFeatures(config) {
378
378
  new Error("The `tables.external` configuration requires `experimental.externalTables` to be set to `true`.")
379
379
  );
380
380
  }
381
- if (config.migrations?.setupExternalTables && !experimental.externalTables) {
381
+ if (config.migrations?.initShadowDb && !experimental.externalTables) {
382
382
  return import_effect.Either.left(
383
383
  new Error(
384
- "The `migrations.setupExternalTables` configuration requires `experimental.externalTables` to be set to `true`."
384
+ "The `migrations.initShadowDb` configuration requires `experimental.externalTables` to be set to `true`."
385
385
  )
386
386
  );
387
387
  }
@@ -541,7 +541,7 @@ if (false) {
541
541
  }
542
542
  var MigrationsConfigShape = import_effect3.Schema.Struct({
543
543
  path: import_effect3.Schema.optional(import_effect3.Schema.String),
544
- setupExternalTables: import_effect3.Schema.optional(import_effect3.Schema.String),
544
+ initShadowDb: import_effect3.Schema.optional(import_effect3.Schema.String),
545
545
  seed: import_effect3.Schema.optional(import_effect3.Schema.NonEmptyString)
546
546
  });
547
547
  if (false) {
@@ -623,10 +623,10 @@ function validateExperimentalFeatures2(config) {
623
623
  new Error("The `enums.external` configuration requires `experimental.externalTables` to be set to `true`.")
624
624
  );
625
625
  }
626
- if (config.migrations?.setupExternalTables && !experimental.externalTables) {
626
+ if (config.migrations?.initShadowDb && !experimental.externalTables) {
627
627
  return import_effect3.Either.left(
628
628
  new Error(
629
- "The `migrations.setupExternalTables` configuration requires `experimental.externalTables` to be set to `true`."
629
+ "The `migrations.initShadowDb` configuration requires `experimental.externalTables` to be set to `true`."
630
630
  )
631
631
  );
632
632
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.13.0-dev.24",
3
+ "version": "6.13.0-dev.25",
4
4
  "description": "Internal package used to define and read Prisma configuration files",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "vitest": "3.2.4",
22
- "@prisma/get-platform": "6.13.0-dev.24",
23
- "@prisma/driver-adapter-utils": "6.13.0-dev.24"
22
+ "@prisma/get-platform": "6.13.0-dev.25",
23
+ "@prisma/driver-adapter-utils": "6.13.0-dev.25"
24
24
  },
25
25
  "files": [
26
26
  "dist"