@prisma-next/family-sql 0.11.0-dev.5 → 0.11.0-dev.7

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/control.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { n as sqlFamilyAuthoringFieldPresets, t as sqlFamilyAuthoringTypes } from "./authoring-type-constructors-F4JpCJl7.mjs";
2
- import { t as SqlContractSerializer } from "./sql-contract-serializer-COnYiewe.mjs";
3
- import { a as extractCodecControlHooks, t as verifySqlSchema } from "./verify-sql-schema-Bj4Wqe2c.mjs";
2
+ import { t as SqlContractSerializer } from "./sql-contract-serializer-VVoSAnYg.mjs";
3
+ import { a as extractCodecControlHooks, t as verifySqlSchema } from "./verify-sql-schema-DcP55TWb.mjs";
4
4
  import { t as collectSupportedCodecTypeIds } from "./verify-Crewz6hG.mjs";
5
5
  import { n as temporalAuthoringPresets, r as timestampNowControlDescriptor } from "./timestamp-now-generator-r7BP5n3l.mjs";
6
6
  import { sqlEmission } from "@prisma-next/sql-contract-emitter";
@@ -1557,8 +1557,8 @@ function contractToSchemaIR(contract, options) {
1557
1557
  const storage = contract.storage;
1558
1558
  const allTypes = { ...storage.types ?? {} };
1559
1559
  for (const ns of Object.values(storage.namespaces)) {
1560
- const nsTypes = ns.types;
1561
- if (nsTypes) for (const [k, v] of Object.entries(nsTypes)) allTypes[k] = v;
1560
+ const nsEnums = ns.enum;
1561
+ if (nsEnums) for (const [k, v] of Object.entries(nsEnums)) allTypes[k] = v;
1562
1562
  }
1563
1563
  const storageTypes = allTypes;
1564
1564
  const tables = {};
@@ -1576,8 +1576,8 @@ function contractToSchemaIR(contract, options) {
1576
1576
  function deriveAnnotations(storage, annotationNamespace) {
1577
1577
  const allTypes = { ...storage.types ?? {} };
1578
1578
  for (const ns of Object.values(storage.namespaces)) {
1579
- const nsTypes = ns.types;
1580
- if (nsTypes) for (const [k, v] of Object.entries(nsTypes)) allTypes[k] = v;
1579
+ const nsEnums = ns.enum;
1580
+ if (nsEnums) for (const [k, v] of Object.entries(nsEnums)) allTypes[k] = v;
1581
1581
  }
1582
1582
  const types = allTypes;
1583
1583
  if (Object.keys(types).length === 0) return void 0;