@prisma-next/target-sqlite 0.16.0-dev.2 → 0.16.0

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 (28) hide show
  1. package/dist/control.mjs +13 -13
  2. package/dist/control.mjs.map +1 -1
  3. package/dist/migration.d.mts +1 -1
  4. package/dist/migration.mjs +2 -2
  5. package/dist/{op-factory-call-8pTnIHhR.mjs → op-factory-call-BlMqc5G_.mjs} +2 -2
  6. package/dist/{op-factory-call-8pTnIHhR.mjs.map → op-factory-call-BlMqc5G_.mjs.map} +1 -1
  7. package/dist/op-factory-call.d.mts +1 -1
  8. package/dist/op-factory-call.mjs +1 -1
  9. package/dist/{planner-D4B8Rugz.mjs → planner-CxbLEZHF.mjs} +3 -3
  10. package/dist/{planner-D4B8Rugz.mjs.map → planner-CxbLEZHF.mjs.map} +1 -1
  11. package/dist/{planner-produced-sqlite-migration-C9k0q8Il.d.mts → planner-produced-sqlite-migration-CnY_5meM.d.mts} +2 -2
  12. package/dist/{planner-produced-sqlite-migration-C9k0q8Il.d.mts.map → planner-produced-sqlite-migration-CnY_5meM.d.mts.map} +1 -1
  13. package/dist/{planner-produced-sqlite-migration-hyDa7QK-.mjs → planner-produced-sqlite-migration-D5415zDp.mjs} +2 -2
  14. package/dist/{planner-produced-sqlite-migration-hyDa7QK-.mjs.map → planner-produced-sqlite-migration-D5415zDp.mjs.map} +1 -1
  15. package/dist/planner-produced-sqlite-migration.d.mts +1 -1
  16. package/dist/planner-produced-sqlite-migration.mjs +1 -1
  17. package/dist/planner.d.mts +1 -1
  18. package/dist/planner.mjs +1 -1
  19. package/dist/{sqlite-migration-BbSrmBAa.d.mts → sqlite-migration-BVy-x-dP.d.mts} +3 -3
  20. package/dist/{sqlite-migration-BbSrmBAa.d.mts.map → sqlite-migration-BVy-x-dP.d.mts.map} +1 -1
  21. package/dist/{sqlite-migration-BcFf2OFa.mjs → sqlite-migration-WdRHavfF.mjs} +8 -8
  22. package/dist/sqlite-migration-WdRHavfF.mjs.map +1 -0
  23. package/package.json +18 -18
  24. package/src/core/errors.ts +8 -12
  25. package/src/core/migrations/op-factory-call.ts +1 -1
  26. package/src/core/migrations/runner.ts +12 -13
  27. package/src/core/migrations/sqlite-migration.ts +2 -2
  28. package/dist/sqlite-migration-BcFf2OFa.mjs.map +0 -1
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
2
  "name": "@prisma-next/target-sqlite",
3
- "version": "0.16.0-dev.2",
3
+ "version": "0.16.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "dependencies": {
8
- "@prisma-next/cli": "0.16.0-dev.2",
9
- "@prisma-next/contract": "0.16.0-dev.2",
10
- "@prisma-next/errors": "0.16.0-dev.2",
11
- "@prisma-next/family-sql": "0.16.0-dev.2",
12
- "@prisma-next/framework-components": "0.16.0-dev.2",
13
- "@prisma-next/migration-tools": "0.16.0-dev.2",
14
- "@prisma-next/sql-contract": "0.16.0-dev.2",
15
- "@prisma-next/sql-errors": "0.16.0-dev.2",
16
- "@prisma-next/sql-relational-core": "0.16.0-dev.2",
17
- "@prisma-next/sql-runtime": "0.16.0-dev.2",
18
- "@prisma-next/sql-schema-ir": "0.16.0-dev.2",
19
- "@prisma-next/ts-render": "0.16.0-dev.2",
20
- "@prisma-next/utils": "0.16.0-dev.2",
8
+ "@prisma-next/cli": "0.16.0",
9
+ "@prisma-next/contract": "0.16.0",
10
+ "@prisma-next/errors": "0.16.0",
11
+ "@prisma-next/family-sql": "0.16.0",
12
+ "@prisma-next/framework-components": "0.16.0",
13
+ "@prisma-next/migration-tools": "0.16.0",
14
+ "@prisma-next/sql-contract": "0.16.0",
15
+ "@prisma-next/sql-errors": "0.16.0",
16
+ "@prisma-next/sql-relational-core": "0.16.0",
17
+ "@prisma-next/sql-runtime": "0.16.0",
18
+ "@prisma-next/sql-schema-ir": "0.16.0",
19
+ "@prisma-next/ts-render": "0.16.0",
20
+ "@prisma-next/utils": "0.16.0",
21
21
  "@standard-schema/spec": "1.1.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@prisma-next/driver-sqlite": "0.16.0-dev.2",
25
- "@prisma-next/test-utils": "0.16.0-dev.2",
26
- "@prisma-next/tsconfig": "0.16.0-dev.2",
27
- "@prisma-next/tsdown": "0.16.0-dev.2",
24
+ "@prisma-next/driver-sqlite": "0.16.0",
25
+ "@prisma-next/test-utils": "0.16.0",
26
+ "@prisma-next/tsconfig": "0.16.0",
27
+ "@prisma-next/tsdown": "0.16.0",
28
28
  "tsdown": "0.22.8",
29
29
  "typescript": "5.9.3",
30
30
  "vitest": "4.1.10"
@@ -12,9 +12,8 @@ import { CliStructuredError } from '@prisma-next/errors/control';
12
12
  * The `operation` argument is required so every throw site names the operation
13
13
  * that actually failed; a new operation cannot inherit a misattributed message.
14
14
  *
15
- * Distinct from `MIGRATION.UNFILLED_PLACEHOLDER` (placeholder not filled)
16
- * because the missing input is the stack itself, not the per-operation
17
- * contract.
15
+ * Distinct from `PN-MIG-2001` (placeholder not filled) because the missing
16
+ * input is the stack itself, not the per-operation contract.
18
17
  *
19
18
  * Lives in `@prisma-next/target-sqlite/errors` rather than the shared
20
19
  * framework migration errors module because the failure is target-specific:
@@ -22,13 +21,10 @@ import { CliStructuredError } from '@prisma-next/errors/control';
22
21
  * adapter, the SQLite-target stack) only exists in this package.
23
22
  */
24
23
  export function errorSqliteMigrationStackMissing(operation: string): CliStructuredError {
25
- return new CliStructuredError(
26
- 'MIGRATION.SQLITE_CONTROL_STACK_MISSING',
27
- `SqliteMigration.${operation} requires a control adapter`,
28
- {
29
- why: `SqliteMigration.${operation} was invoked on an instance constructed without a ControlStack, so the stored controlAdapter is undefined and the operation cannot lower its DDL node.`,
30
- fix: 'Construct the migration via the migration CLI entrypoint (which assembles a ControlStack from the loaded prisma-next.config.ts), or pass a ControlStack containing a SQLite adapter to the migration constructor in test fixtures.',
31
- meta: { operation },
32
- },
33
- );
24
+ return new CliStructuredError('2008', `SqliteMigration.${operation} requires a control adapter`, {
25
+ domain: 'MIG',
26
+ why: `SqliteMigration.${operation} was invoked on an instance constructed without a ControlStack, so the stored controlAdapter is undefined and the operation cannot lower its DDL node.`,
27
+ fix: 'Construct the migration via the migration CLI entrypoint (which assembles a ControlStack from the loaded prisma-next.config.ts), or pass a ControlStack containing a SQLite adapter to the migration constructor in test fixtures.',
28
+ meta: { operation },
29
+ });
34
30
  }
@@ -563,7 +563,7 @@ export class DropIndexCall extends SqliteOpFactoryCallNode {
563
563
  * any future strategy that needs a placeholder data step can construct one
564
564
  * with its own id/label.
565
565
  *
566
- * `toOp()` always throws `MIGRATION.UNFILLED_PLACEHOLDER`: the planner cannot lower a stubbed
566
+ * `toOp()` always throws `PN-MIG-2001`: the planner cannot lower a stubbed
567
567
  * transform to a runtime op — the user must edit the rendered
568
568
  * `migration.ts` and re-emit.
569
569
  */
@@ -102,7 +102,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
102
102
  frameworkComponents: options.frameworkComponents,
103
103
  });
104
104
  if (!schemaVerifyResult.ok) {
105
- return runnerFailure('MIGRATION.SCHEMA_VERIFY_FAILED', schemaVerifyResult.summary, {
105
+ return runnerFailure('SCHEMA_VERIFY_FAILED', schemaVerifyResult.summary, {
106
106
  why: 'The resulting database schema does not satisfy the destination contract.',
107
107
  meta: { issues: schemaVerifyResult.schema.issues },
108
108
  });
@@ -215,7 +215,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
215
215
  return okVoid();
216
216
  }
217
217
  return runnerFailure(
218
- 'MIGRATION.FOREIGN_KEY_VIOLATION',
218
+ 'FOREIGN_KEY_VIOLATION',
219
219
  `Foreign key integrity check failed after migration: ${result.rows.length} violation(s).`,
220
220
  {
221
221
  why: 'PRAGMA foreign_key_check reported violations after applying recreate-table operations.',
@@ -326,7 +326,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
326
326
  return okVoid();
327
327
  }
328
328
  return runnerFailure(
329
- 'MIGRATION.LEGACY_MARKER_SHAPE',
329
+ 'LEGACY_MARKER_SHAPE',
330
330
  `Legacy marker-table shape detected on ${MARKER_TABLE_NAME} (no \`space\` column). ` +
331
331
  'Prisma Next is in pre-1.0; the previous transitional auto-migration to the per-space-row schema has been removed. ' +
332
332
  `Drop \`${MARKER_TABLE_NAME}\` and re-run \`dbInit\` to reinitialise from a clean baseline.`,
@@ -348,8 +348,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
348
348
  for (const step of steps) {
349
349
  const result = await driver.query(step.sql, step.params ?? []);
350
350
  if (!this.stepResultIsTrue(result.rows)) {
351
- const code =
352
- phase === 'precheck' ? 'MIGRATION.PRECHECK_FAILED' : 'MIGRATION.POSTCHECK_FAILED';
351
+ const code = phase === 'precheck' ? 'PRECHECK_FAILED' : 'POSTCHECK_FAILED';
353
352
  return runnerFailure(
354
353
  code,
355
354
  `Operation ${operation.id} failed during ${phase}: ${step.description}`,
@@ -377,7 +376,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
377
376
  } catch (error: unknown) {
378
377
  const message = error instanceof Error ? error.message : String(error);
379
378
  return runnerFailure(
380
- 'MIGRATION.EXECUTION_FAILED',
379
+ 'EXECUTION_FAILED',
381
380
  `Operation ${operation.id} failed during execution: ${step.description}`,
382
381
  {
383
382
  why: message,
@@ -469,7 +468,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
469
468
  for (const operation of operations) {
470
469
  if (!allowedClasses.has(operation.operationClass)) {
471
470
  return runnerFailure(
472
- 'MIGRATION.POLICY_VIOLATION',
471
+ 'POLICY_VIOLATION',
473
472
  `Operation ${operation.id} has class "${operation.operationClass}" which is not allowed by policy.`,
474
473
  {
475
474
  why: `Policy only allows: ${policy.allowedOperationClasses.join(', ')}.`,
@@ -495,14 +494,14 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
495
494
  }
496
495
  if (!marker) {
497
496
  return runnerFailure(
498
- 'MIGRATION.MARKER_ORIGIN_MISMATCH',
497
+ 'MARKER_ORIGIN_MISMATCH',
499
498
  `Missing contract marker: expected origin storage hash ${origin.storageHash}.`,
500
499
  { meta: { expectedOriginStorageHash: origin.storageHash } },
501
500
  );
502
501
  }
503
502
  if (marker.storageHash !== origin.storageHash) {
504
503
  return runnerFailure(
505
- 'MIGRATION.MARKER_ORIGIN_MISMATCH',
504
+ 'MARKER_ORIGIN_MISMATCH',
506
505
  `Existing contract marker (${marker.storageHash}) does not match plan origin (${origin.storageHash}).`,
507
506
  {
508
507
  meta: {
@@ -514,7 +513,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
514
513
  }
515
514
  if (origin.profileHash && marker.profileHash !== origin.profileHash) {
516
515
  return runnerFailure(
517
- 'MIGRATION.MARKER_ORIGIN_MISMATCH',
516
+ 'MARKER_ORIGIN_MISMATCH',
518
517
  `Existing contract marker profile hash (${marker.profileHash}) does not match plan origin profile hash (${origin.profileHash}).`,
519
518
  {
520
519
  meta: {
@@ -533,7 +532,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
533
532
  ): Result<void, SqlMigrationRunnerFailure> {
534
533
  if (destination.storageHash !== contract.storage.storageHash) {
535
534
  return runnerFailure(
536
- 'MIGRATION.DESTINATION_CONTRACT_MISMATCH',
535
+ 'DESTINATION_CONTRACT_MISMATCH',
537
536
  `Plan destination storage hash (${destination.storageHash}) does not match provided contract storage hash (${contract.storage.storageHash}).`,
538
537
  {
539
538
  meta: {
@@ -549,7 +548,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
549
548
  destination.profileHash !== contract.profileHash
550
549
  ) {
551
550
  return runnerFailure(
552
- 'MIGRATION.DESTINATION_CONTRACT_MISMATCH',
551
+ 'DESTINATION_CONTRACT_MISMATCH',
553
552
  `Plan destination profile hash (${destination.profileHash}) does not match provided contract profile hash (${contract.profileHash}).`,
554
553
  {
555
554
  meta: {
@@ -592,7 +591,7 @@ class SqliteMigrationRunner implements SqlMigrationRunner<SqlitePlanTargetDetail
592
591
  });
593
592
  if (!updated) {
594
593
  return runnerFailure(
595
- 'MIGRATION.MARKER_CAS_FAILURE',
594
+ 'MARKER_CAS_FAILURE',
596
595
  'Marker was modified by another process during migration execution.',
597
596
  {
598
597
  meta: {
@@ -57,7 +57,7 @@ export abstract class SqliteMigration<
57
57
  * Materialized SQLite control adapter, created once per migration
58
58
  * instance from the injected stack. `undefined` only when the migration
59
59
  * was instantiated without a stack (test fixtures); `controlAdapterFor`
60
- * throws a MIGRATION.SQLITE_CONTROL_STACK_MISSING in that case to surface the misuse.
60
+ * throws a PN-MIG-2008 in that case to surface the misuse.
61
61
  */
62
62
  protected readonly controlAdapter: SqlControlAdapter<'sqlite'> | undefined;
63
63
 
@@ -81,7 +81,7 @@ export abstract class SqliteMigration<
81
81
  }
82
82
 
83
83
  /**
84
- * Returns the materialized control adapter, or throws a MIGRATION.SQLITE_CONTROL_STACK_MISSING naming
84
+ * Returns the materialized control adapter, or throws a PN-MIG-2008 naming
85
85
  * `operation` when the migration was constructed without a `ControlStack`.
86
86
  * Single home for the null-check that every DDL/DML method shares.
87
87
  */
@@ -1 +0,0 @@
1
- {"version":3,"file":"sqlite-migration-BcFf2OFa.mjs","names":["SqlMigration","#endView","#startView"],"sources":["../src/core/errors.ts","../src/core/migrations/sqlite-migration.ts"],"sourcesContent":["import { CliStructuredError } from '@prisma-next/errors/control';\n\n/**\n * A `SqliteMigration` operation that needs the materialized control adapter\n * — named by `operation` (e.g. `createTable`, `dropColumn`, `recreateTable`) —\n * was invoked, but the migration was constructed without a `ControlStack`.\n * Concrete authoring usage always goes through the migration CLI entrypoint,\n * which assembles a stack from the loaded `prisma-next.config.ts`; reaching this\n * error means a test fixture or ad-hoc consumer instantiated `SqliteMigration`\n * with the no-arg form (legal for `operations` / `describe` introspection only).\n *\n * The `operation` argument is required so every throw site names the operation\n * that actually failed; a new operation cannot inherit a misattributed message.\n *\n * Distinct from `MIGRATION.UNFILLED_PLACEHOLDER` (placeholder not filled)\n * because the missing input is the stack itself, not the per-operation\n * contract.\n *\n * Lives in `@prisma-next/target-sqlite/errors` rather than the shared\n * framework migration errors module because the failure is target-specific:\n * the contract it talks about (`SqliteMigration`, the SQLite control\n * adapter, the SQLite-target stack) only exists in this package.\n */\nexport function errorSqliteMigrationStackMissing(operation: string): CliStructuredError {\n return new CliStructuredError(\n 'MIGRATION.SQLITE_CONTROL_STACK_MISSING',\n `SqliteMigration.${operation} requires a control adapter`,\n {\n why: `SqliteMigration.${operation} was invoked on an instance constructed without a ControlStack, so the stored controlAdapter is undefined and the operation cannot lower its DDL node.`,\n fix: 'Construct the migration via the migration CLI entrypoint (which assembles a ControlStack from the loaded prisma-next.config.ts), or pass a ControlStack containing a SQLite adapter to the migration constructor in test fixtures.',\n meta: { operation },\n },\n );\n}\n","import type { Contract } from '@prisma-next/contract/types';\nimport type {\n MigrationOperationClass,\n SqlMigrationPlanOperation,\n} from '@prisma-next/family-sql/control';\nimport type { SqlControlAdapter } from '@prisma-next/family-sql/control-adapter';\nimport { Migration as SqlMigration } from '@prisma-next/family-sql/migration';\nimport type { ControlStack } from '@prisma-next/framework-components/control';\nimport { MigrationContractViews } from '@prisma-next/migration-tools/migration';\nimport type { SqlStorage } from '@prisma-next/sql-contract/types';\nimport type { DdlColumn, DdlTableConstraint } from '@prisma-next/sql-relational-core/ast';\nimport { blindCast } from '@prisma-next/utils/casts';\nimport { errorSqliteMigrationStackMissing } from '../errors';\nimport { SqliteContractView } from '../sqlite-contract-view';\nimport {\n AddColumnCall,\n CreateIndexCall,\n CreateTableCall,\n DropColumnCall,\n DropIndexCall,\n DropTableCall,\n RecreateTableCall,\n} from './op-factory-call';\nimport type { SqliteColumnSpec, SqliteIndexSpec, SqliteTableSpec } from './operations/shared';\nimport type { SqlitePlanTargetDetails } from './planner-target-details';\n\ntype Op = SqlMigrationPlanOperation<SqlitePlanTargetDetails>;\n\n/**\n * Target-owned base class for SQLite migrations. Fixes the `SqlMigration`\n * generic to `SqlitePlanTargetDetails` and the abstract `targetId` to the\n * SQLite literal, so both user-authored migrations and renderer-generated\n * scaffolds can extend `SqliteMigration` directly without redeclaring\n * target-local identity.\n *\n * The constructor materializes a single SQLite `SqlControlAdapter` from\n * `stack.adapter.create(stack)` and stores it; the protected instance methods\n * forward to the corresponding `*Call` with that stored adapter, so user\n * migrations can write `this.createTable({...})` without threading the adapter\n * through every call.\n *\n * Binds the framework base's `Start` / `End` contract generics so a subclass\n * that assigns its `start-contract.json` / `end-contract.json` imports gets\n * fully-typed view accessors: `this.endContract` is a `SqliteContractView<End>`\n * (sole namespace unwrapped to the root — `this.endContract.table.<name>`),\n * built lazily from the JSON fields via the shared `MigrationContractViews`\n * helper. Mirrors `MongoMigration`'s view getters; the framework base derives\n * `describe()` from the same JSON.\n */\nexport abstract class SqliteMigration<\n Start extends Contract<SqlStorage> = Contract<SqlStorage>,\n End extends Contract<SqlStorage> = Contract<SqlStorage>,\n> extends SqlMigration<SqlitePlanTargetDetails, 'sqlite', Start, End> {\n readonly targetId = 'sqlite' as const;\n\n /**\n * Materialized SQLite control adapter, created once per migration\n * instance from the injected stack. `undefined` only when the migration\n * was instantiated without a stack (test fixtures); `controlAdapterFor`\n * throws a MIGRATION.SQLITE_CONTROL_STACK_MISSING in that case to surface the misuse.\n */\n protected readonly controlAdapter: SqlControlAdapter<'sqlite'> | undefined;\n\n #endView = new MigrationContractViews<SqliteContractView<End>>(this, 'SqliteMigration', (json) =>\n SqliteContractView.fromJson<End>(json),\n );\n #startView = new MigrationContractViews<SqliteContractView<Start>>(\n this,\n 'SqliteMigration',\n (json) => SqliteContractView.fromJson<Start>(json),\n );\n\n constructor(stack?: ControlStack<'sql', 'sqlite'>) {\n super(stack);\n this.controlAdapter = stack?.adapter\n ? blindCast<\n SqlControlAdapter<'sqlite'>,\n 'The SQLite descriptor create() returns SqlControlAdapter<sqlite>; typed as wider ControlAdapterInstance at the framework boundary'\n >(stack.adapter.create(stack))\n : undefined;\n }\n\n /**\n * Returns the materialized control adapter, or throws a MIGRATION.SQLITE_CONTROL_STACK_MISSING naming\n * `operation` when the migration was constructed without a `ControlStack`.\n * Single home for the null-check that every DDL/DML method shares.\n */\n private controlAdapterFor(operation: string): SqlControlAdapter<'sqlite'> {\n if (!this.controlAdapter) {\n throw errorSqliteMigrationStackMissing(operation);\n }\n return this.controlAdapter;\n }\n\n /**\n * The typed SQLite view over this migration's end-state contract — sole\n * namespace unwrapped to the root, so `this.endContract.table.<name>` etc.\n * Throws if no `endContractJson` was provided.\n */\n get endContract(): SqliteContractView<End> {\n return this.#endView.endContract;\n }\n\n /**\n * The typed SQLite view over this migration's start-state contract, or\n * `null` for a baseline migration (no `startContractJson`).\n */\n get startContract(): SqliteContractView<Start> | null {\n return this.#startView.startContract;\n }\n\n protected createTable(options: {\n readonly table: string;\n readonly ifNotExists?: boolean;\n readonly columns: readonly DdlColumn[];\n readonly constraints?: readonly DdlTableConstraint[];\n }): Promise<Op> {\n return new CreateTableCall(options.table, options.columns, options.constraints).toOp(\n this.controlAdapterFor('createTable'),\n );\n }\n\n protected dropTable(options: { readonly table: string }): Promise<Op> {\n return new DropTableCall(options.table).toOp(this.controlAdapterFor('dropTable'));\n }\n\n protected addColumn(options: {\n readonly table: string;\n readonly column: SqliteColumnSpec;\n }): Promise<Op> {\n return new AddColumnCall(options.table, options.column).toOp(\n this.controlAdapterFor('addColumn'),\n );\n }\n\n protected dropColumn(options: { readonly table: string; readonly column: string }): Promise<Op> {\n return new DropColumnCall(options.table, options.column).toOp(\n this.controlAdapterFor('dropColumn'),\n );\n }\n\n protected createIndex(options: {\n readonly table: string;\n readonly index: string;\n readonly columns: readonly string[];\n }): Promise<Op> {\n return new CreateIndexCall(options.table, options.index, options.columns).toOp(\n this.controlAdapterFor('createIndex'),\n );\n }\n\n protected dropIndex(options: { readonly table: string; readonly index: string }): Promise<Op> {\n return new DropIndexCall(options.table, options.index).toOp(\n this.controlAdapterFor('dropIndex'),\n );\n }\n\n protected recreateTable(options: {\n readonly tableName: string;\n readonly contractTable: SqliteTableSpec;\n readonly schemaColumnNames: readonly string[];\n readonly indexes: readonly SqliteIndexSpec[];\n readonly summary: string;\n readonly postchecks: readonly { readonly description: string; readonly sql: string }[];\n readonly operationClass: MigrationOperationClass;\n }): Promise<Op> {\n return new RecreateTableCall(options).toOp(this.controlAdapterFor('recreateTable'));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,SAAgB,iCAAiC,WAAuC;CACtF,OAAO,IAAI,mBACT,0CACA,mBAAmB,UAAU,8BAC7B;EACE,KAAK,mBAAmB,UAAU;EAClC,KAAK;EACL,MAAM,EAAE,UAAU;CACpB,CACF;AACF;;;;;;;;;;;;;;;;;;;;;;;;ACgBA,IAAsB,kBAAtB,cAGUA,UAA4D;CACpE,WAAoB;;;;;;;CAQpB;CAEA,WAAW,IAAI,uBAAgD,MAAM,oBAAoB,SACvF,mBAAmB,SAAc,IAAI,CACvC;CACA,aAAa,IAAI,uBACf,MACA,oBACC,SAAS,mBAAmB,SAAgB,IAAI,CACnD;CAEA,YAAY,OAAuC;EACjD,MAAM,KAAK;EACX,KAAK,iBAAiB,OAAO,UACzB,UAGE,MAAM,QAAQ,OAAO,KAAK,CAAC,IAC7B,KAAA;CACN;;;;;;CAOA,kBAA0B,WAAgD;EACxE,IAAI,CAAC,KAAK,gBACR,MAAM,iCAAiC,SAAS;EAElD,OAAO,KAAK;CACd;;;;;;CAOA,IAAI,cAAuC;EACzC,OAAO,KAAKC,SAAS;CACvB;;;;;CAMA,IAAI,gBAAkD;EACpD,OAAO,KAAKC,WAAW;CACzB;CAEA,YAAsB,SAKN;EACd,OAAO,IAAI,gBAAgB,QAAQ,OAAO,QAAQ,SAAS,QAAQ,WAAW,CAAC,CAAC,KAC9E,KAAK,kBAAkB,aAAa,CACtC;CACF;CAEA,UAAoB,SAAkD;EACpE,OAAO,IAAI,cAAc,QAAQ,KAAK,CAAC,CAAC,KAAK,KAAK,kBAAkB,WAAW,CAAC;CAClF;CAEA,UAAoB,SAGJ;EACd,OAAO,IAAI,cAAc,QAAQ,OAAO,QAAQ,MAAM,CAAC,CAAC,KACtD,KAAK,kBAAkB,WAAW,CACpC;CACF;CAEA,WAAqB,SAA2E;EAC9F,OAAO,IAAI,eAAe,QAAQ,OAAO,QAAQ,MAAM,CAAC,CAAC,KACvD,KAAK,kBAAkB,YAAY,CACrC;CACF;CAEA,YAAsB,SAIN;EACd,OAAO,IAAI,gBAAgB,QAAQ,OAAO,QAAQ,OAAO,QAAQ,OAAO,CAAC,CAAC,KACxE,KAAK,kBAAkB,aAAa,CACtC;CACF;CAEA,UAAoB,SAA0E;EAC5F,OAAO,IAAI,cAAc,QAAQ,OAAO,QAAQ,KAAK,CAAC,CAAC,KACrD,KAAK,kBAAkB,WAAW,CACpC;CACF;CAEA,cAAwB,SAQR;EACd,OAAO,IAAI,kBAAkB,OAAO,CAAC,CAAC,KAAK,KAAK,kBAAkB,eAAe,CAAC;CACpF;AACF"}