@prisma/config 6.13.0-dev.9 → 6.13.0-integration-feat-orm-1112-setup-external-tables-script.2

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
@@ -249,6 +249,11 @@ declare type MigrationsConfigShape = {
249
249
  * The path to the directory where Prisma should store migration files, and look for them.
250
250
  */
251
251
  path?: string;
252
+ /**
253
+ * Provide a function to pass a SQL script that will be used to setup external tables during migration diffing.
254
+ * Also see `tables.external`.
255
+ */
256
+ setupExternalTables?: () => string;
252
257
  };
253
258
 
254
259
  declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-better-sqlite3", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-mssql", "@prisma/adapter-mariadb"];
package/dist/index.js CHANGED
@@ -22863,8 +22863,19 @@ var ErrorCapturingSqlMigrationAwareDriverAdapterFactoryShape = Schema_exports.de
22863
22863
  decode: identity
22864
22864
  }
22865
22865
  );
22866
+ var SetupExternalTablesShape = Schema_exports.declare(
22867
+ (input) => {
22868
+ return typeof input === "function";
22869
+ },
22870
+ {
22871
+ identifier: "SetupExternalTables",
22872
+ encode: identity,
22873
+ decode: identity
22874
+ }
22875
+ );
22866
22876
  var MigrationsConfigShape = Schema_exports.Struct({
22867
- path: Schema_exports.optional(Schema_exports.String)
22877
+ path: Schema_exports.optional(Schema_exports.String),
22878
+ setupExternalTables: Schema_exports.optional(SetupExternalTablesShape)
22868
22879
  });
22869
22880
  if (false) {
22870
22881
  __testMigrationsConfigShapeValueA;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.13.0-dev.9",
3
+ "version": "6.13.0-integration-feat-orm-1112-setup-external-tables-script.2",
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",
@@ -17,8 +17,8 @@
17
17
  "devDependencies": {
18
18
  "effect": "3.16.12",
19
19
  "vitest": "3.2.4",
20
- "@prisma/driver-adapter-utils": "6.13.0-dev.9",
21
- "@prisma/get-platform": "6.13.0-dev.9"
20
+ "@prisma/driver-adapter-utils": "6.13.0-integration-feat-orm-1112-setup-external-tables-script.2",
21
+ "@prisma/get-platform": "6.13.0-integration-feat-orm-1112-setup-external-tables-script.2"
22
22
  },
23
23
  "files": [
24
24
  "dist"