@prisma-next/sql-contract-psl 0.13.0-dev.19 → 0.13.0-dev.20
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.mjs +1 -1
- package/dist/{interpreter-CQdQo427.mjs → interpreter-BT6dEGeD.mjs} +4 -3
- package/dist/interpreter-BT6dEGeD.mjs.map +1 -0
- package/dist/provider.mjs +1 -1
- package/package.json +12 -12
- package/src/psl-column-resolution.ts +1 -1
- package/src/psl-field-resolution.ts +4 -2
- package/dist/interpreter-CQdQo427.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as interpretPslDocumentToSqlContract } from "./interpreter-
|
|
1
|
+
import { t as interpretPslDocumentToSqlContract } from "./interpreter-BT6dEGeD.mjs";
|
|
2
2
|
export { interpretPslDocumentToSqlContract };
|
|
@@ -1072,7 +1072,7 @@ const NATIVE_TYPE_SPECS = {
|
|
|
1072
1072
|
"db.Uuid": {
|
|
1073
1073
|
args: "noArgs",
|
|
1074
1074
|
baseType: "String",
|
|
1075
|
-
codecId:
|
|
1075
|
+
codecId: "pg/uuid@1",
|
|
1076
1076
|
nativeType: "uuid"
|
|
1077
1077
|
},
|
|
1078
1078
|
"db.SmallInt": {
|
|
@@ -1535,7 +1535,8 @@ function collectResolvedFields(input) {
|
|
|
1535
1535
|
});
|
|
1536
1536
|
continue;
|
|
1537
1537
|
}
|
|
1538
|
-
|
|
1538
|
+
const fieldUsesNamedType = field.typeRef !== void 0 || namedTypeDescriptors.has(field.typeName);
|
|
1539
|
+
if (loweredOnCreate && !fieldUsesNamedType) {
|
|
1539
1540
|
const generatedDescriptor = generatorDescriptorById.get(loweredOnCreate.id)?.resolveGeneratedColumnDescriptor?.({ generated: loweredOnCreate });
|
|
1540
1541
|
if (generatedDescriptor) descriptor = generatedDescriptor;
|
|
1541
1542
|
}
|
|
@@ -3494,4 +3495,4 @@ function interpretPslDocumentToSqlContract(input) {
|
|
|
3494
3495
|
//#endregion
|
|
3495
3496
|
export { interpretPslDocumentToSqlContract as t };
|
|
3496
3497
|
|
|
3497
|
-
//# sourceMappingURL=interpreter-
|
|
3498
|
+
//# sourceMappingURL=interpreter-BT6dEGeD.mjs.map
|