@prisma/orm-extension-postgis 8.0.0-rc.21-dev.12 → 8.0.0-rc.21-dev.14

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
@@ -2,14 +2,14 @@ import { t as POSTGIS_GEOMETRY_CODEC_ID } from "./constants-CWW72xGt-hJye3Dua.mj
2
2
  import { n as postgisPackMeta, r as postgisQueryOperations } from "./descriptor-meta-DpGg08TG-C2dZhRDK.mjs";
3
3
  import { contractSpaceFromJson } from "@prisma/orm-toolchain/migration-tools/spaces";
4
4
  //#region ../../../3-extensions/postgis/dist/control.mjs
5
- var migration_default = {
5
+ var migration_default$2 = {
6
6
  from: null,
7
7
  to: "2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a",
8
8
  providedInvariants: ["postgis:install-postgis-v1"],
9
9
  createdAt: "2026-06-01T00:00:00.000Z",
10
10
  migrationHash: "5dd437b3077585a4e39b1be8ebc30b699e75c4ff30c5ee4177659e0d0de948bd"
11
11
  };
12
- var ops_default = [{
12
+ var ops_default$2 = [{
13
13
  "id": "postgis.install-postgis-extension",
14
14
  "label": "Enable extension \"postgis\"",
15
15
  "operationClass": "additive",
@@ -37,9 +37,105 @@ var ops_default = [{
37
37
  "params": ["postgis"]
38
38
  }]
39
39
  }];
40
+ var migration_default$1 = {
41
+ from: null,
42
+ to: "6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393",
43
+ providedInvariants: [],
44
+ createdAt: "2026-10-29T13:43:59.960Z",
45
+ migrationHash: "f6688936c39095bda49c3848b433ffd2b5eb4a5bd93ec7cf9c11774522703edc"
46
+ };
47
+ var ops_default$1 = [{
48
+ "id": "schema.public",
49
+ "label": "Create schema \"public\"",
50
+ "operationClass": "additive",
51
+ "target": { "id": "postgres" },
52
+ "precheck": [],
53
+ "execute": [{
54
+ "description": "Create schema \"public\"",
55
+ "sql": "CREATE SCHEMA IF NOT EXISTS \"public\"",
56
+ "params": []
57
+ }],
58
+ "postcheck": []
59
+ }, {
60
+ "id": "extension.postgis",
61
+ "label": "Create extension \"postgis\"",
62
+ "operationClass": "additive",
63
+ "target": {
64
+ "id": "postgres",
65
+ "details": {
66
+ "schema": "public",
67
+ "objectType": "dependency",
68
+ "name": "postgis"
69
+ }
70
+ },
71
+ "precheck": [{
72
+ "description": "verify extension \"postgis\" is not installed",
73
+ "sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
74
+ "params": ["postgis"],
75
+ "expectation": {
76
+ "expects": "absent",
77
+ "object": "extension \"postgis\""
78
+ }
79
+ }],
80
+ "execute": [{
81
+ "description": "create extension \"postgis\"",
82
+ "sql": "CREATE EXTENSION IF NOT EXISTS \"postgis\" WITH SCHEMA \"public\""
83
+ }],
84
+ "postcheck": [{
85
+ "description": "confirm extension \"postgis\" is installed",
86
+ "sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
87
+ "params": ["postgis"],
88
+ "expectation": {
89
+ "expects": "present",
90
+ "object": "extension \"postgis\""
91
+ }
92
+ }]
93
+ }];
94
+ var migration_default = {
95
+ from: "2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a",
96
+ to: "6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393",
97
+ providedInvariants: [],
98
+ createdAt: "2026-10-29T13:44:00.651Z",
99
+ migrationHash: "b2fc62864f3e745ae122622cbb0ee1b89cd639a41c34be8a890c987517be796c"
100
+ };
101
+ var ops_default = [{
102
+ "id": "extension.postgis",
103
+ "label": "Create extension \"postgis\"",
104
+ "operationClass": "additive",
105
+ "target": {
106
+ "id": "postgres",
107
+ "details": {
108
+ "schema": "public",
109
+ "objectType": "dependency",
110
+ "name": "postgis"
111
+ }
112
+ },
113
+ "precheck": [{
114
+ "description": "verify extension \"postgis\" is not installed",
115
+ "sql": "SELECT NOT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
116
+ "params": ["postgis"],
117
+ "expectation": {
118
+ "expects": "absent",
119
+ "object": "extension \"postgis\""
120
+ }
121
+ }],
122
+ "execute": [{
123
+ "description": "create extension \"postgis\"",
124
+ "sql": "CREATE EXTENSION IF NOT EXISTS \"postgis\" WITH SCHEMA \"public\""
125
+ }],
126
+ "postcheck": [{
127
+ "description": "confirm extension \"postgis\" is installed",
128
+ "sql": "SELECT EXISTS (SELECT 1 AS \"one\" FROM \"pg_extension\" WHERE \"extname\" = $1) AS \"result\"",
129
+ "params": ["postgis"],
130
+ "expectation": {
131
+ "expects": "present",
132
+ "object": "extension \"postgis\""
133
+ }
134
+ }]
135
+ }];
40
136
  var head_default = {
41
- hash: "2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a",
42
- invariants: ["postgis:install-postgis-v1"]
137
+ hash: "6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393",
138
+ invariants: []
43
139
  };
44
140
  var contract_default = {
45
141
  schemaVersion: "1",
@@ -50,11 +146,17 @@ var contract_default = {
50
146
  domain: { "namespaces": { "public": { "models": {} } } },
51
147
  storage: {
52
148
  "namespaces": { "public": {
53
- "entries": { "table": {} },
149
+ "entries": {
150
+ "extension": { "postgis": {
151
+ "kind": "extension",
152
+ "name": "postgis"
153
+ } },
154
+ "table": {}
155
+ },
54
156
  "id": "public",
55
157
  "kind": "postgres-schema"
56
158
  } },
57
- "storageHash": "2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a",
159
+ "storageHash": "6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393",
58
160
  "types": { "geometry": {
59
161
  "codecId": "pg/geometry@1",
60
162
  "dataType": "postgis/geometry",
@@ -113,14 +215,28 @@ var contract_default = {
113
215
  */
114
216
  const POSTGIS_SPACE_ID = "postgis";
115
217
  const POSTGIS_BASELINE_MIGRATION_NAME = "20260601T0000_install_postgis_extension";
218
+ const POSTGIS_UPGRADE_MIGRATION_NAME = "20261029T1342_declare_postgis_extension";
219
+ const POSTGIS_INSTALL_MIGRATION_NAME = "20261029T1342_create_postgis_extension";
116
220
  const geometryControlPlaneHooks = { resolveIdentityValue: () => null };
117
221
  const postgisContractSpace = contractSpaceFromJson({
118
222
  contractJson: contract_default,
119
- migrations: [{
120
- dirName: POSTGIS_BASELINE_MIGRATION_NAME,
121
- metadata: migration_default,
122
- ops: ops_default
123
- }],
223
+ migrations: [
224
+ {
225
+ dirName: POSTGIS_BASELINE_MIGRATION_NAME,
226
+ metadata: migration_default$2,
227
+ ops: ops_default$2
228
+ },
229
+ {
230
+ dirName: POSTGIS_UPGRADE_MIGRATION_NAME,
231
+ metadata: migration_default,
232
+ ops: ops_default
233
+ },
234
+ {
235
+ dirName: POSTGIS_INSTALL_MIGRATION_NAME,
236
+ metadata: migration_default$1,
237
+ ops: ops_default$1
238
+ }
239
+ ],
124
240
  headRef: head_default
125
241
  });
126
242
  const postgisExtensionDescriptor = {
@@ -1 +1 @@
1
- {"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/postgis/dist/control.mjs"],"sourcesContent":["import { t as POSTGIS_GEOMETRY_CODEC_ID } from \"./constants-CWW72xGt.mjs\";\nimport { n as postgisQueryOperations, t as postgisPackMeta } from \"./descriptor-meta-DpGg08TG.mjs\";\nimport { contractSpaceFromJson } from \"@internal/migration-tools/spaces\";\n//#region migrations/20260601T0000_install_postgis_extension/migration.json\nvar migration_default = {\n\tfrom: null,\n\tto: \"2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a\",\n\tprovidedInvariants: [\"postgis:install-postgis-v1\"],\n\tcreatedAt: \"2026-06-01T00:00:00.000Z\",\n\tmigrationHash: \"5dd437b3077585a4e39b1be8ebc30b699e75c4ff30c5ee4177659e0d0de948bd\"\n};\n//#endregion\n//#region migrations/20260601T0000_install_postgis_extension/ops.json\nvar ops_default = [{\n\t\"id\": \"postgis.install-postgis-extension\",\n\t\"label\": \"Enable extension \\\"postgis\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"invariantId\": \"postgis:install-postgis-v1\",\n\t\"target\": {\n\t\t\"id\": \"postgres\",\n\t\t\"details\": {\n\t\t\t\"schema\": \"public\",\n\t\t\t\"objectType\": \"dependency\",\n\t\t\t\"name\": \"postgis\"\n\t\t}\n\t},\n\t\"precheck\": [{\n\t\t\"description\": \"verify extension \\\"postgis\\\" is not already enabled\",\n\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"]\n\t}],\n\t\"execute\": [{\n\t\t\"description\": \"create extension \\\"postgis\\\"\",\n\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS postgis\"\n\t}],\n\t\"postcheck\": [{\n\t\t\"description\": \"confirm extension \\\"postgis\\\" is enabled\",\n\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"]\n\t}]\n}];\n//#endregion\n//#region migrations/refs/head.json\nvar head_default = {\n\thash: \"2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a\",\n\tinvariants: [\"postgis:install-postgis-v1\"]\n};\n//#endregion\n//#region src/contract.json\nvar contract_default = {\n\tschemaVersion: \"1\",\n\ttargetFamily: \"sql\",\n\ttarget: \"postgres\",\n\tprofileHash: \"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2\",\n\troots: {},\n\tdomain: { \"namespaces\": { \"public\": { \"models\": {} } } },\n\tstorage: {\n\t\t\"namespaces\": { \"public\": {\n\t\t\t\"entries\": { \"table\": {} },\n\t\t\t\"id\": \"public\",\n\t\t\t\"kind\": \"postgres-schema\"\n\t\t} },\n\t\t\"storageHash\": \"2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a\",\n\t\t\"types\": { \"geometry\": {\n\t\t\t\"codecId\": \"pg/geometry@1\",\n\t\t\t\"dataType\": \"postgis/geometry\",\n\t\t\t\"kind\": \"codec-instance\"\n\t\t} }\n\t},\n\tcapabilities: {\n\t\t\"postgres\": {\n\t\t\t\"distinctOn\": true,\n\t\t\t\"forKeyShare\": true,\n\t\t\t\"forNoKeyUpdate\": true,\n\t\t\t\"jsonAgg\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"limit\": true,\n\t\t\t\"orderBy\": true,\n\t\t\t\"returning\": true\n\t\t},\n\t\t\"sql\": {\n\t\t\t\"checkConstraint\": true,\n\t\t\t\"defaultInInsert\": true,\n\t\t\t\"enums\": true,\n\t\t\t\"forShare\": true,\n\t\t\t\"forUpdate\": true,\n\t\t\t\"insertOnConflictSkip\": true,\n\t\t\t\"insertOnConflictWithoutTarget\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"lockNowait\": true,\n\t\t\t\"lockOf\": true,\n\t\t\t\"lockSkipLocked\": true,\n\t\t\t\"returning\": true,\n\t\t\t\"scalarList\": true\n\t\t}\n\t},\n\textensions: {},\n\tmeta: {},\n\t_generated: {\n\t\t\"warning\": \"⚠️ GENERATED FILE - DO NOT EDIT\",\n\t\t\"message\": \"This file is automatically generated by \\\"prisma contract emit\\\".\",\n\t\t\"regenerate\": \"To regenerate, run: prisma contract emit\"\n\t}\n};\n//#endregion\n//#region src/core/contract-space-constants.ts\n/**\n* Static names and identifiers used across postgis's contract space.\n*\n* Centralised here so the contract IR (`./contract`), the baseline\n* migration ops (`./migrations`), the head ref, and the descriptor\n* (`../exports/control`) all reference the same values without typos.\n*\n* The space identifier `'postgis'` is what the framework writes to\n* `migrations/` in the user's repo and what the marker table's\n* `space` column carries for postgis-owned rows.\n*\n* The `postgis:*` invariantId namespace is locked here — once\n* published, an invariantId is immutable so downstream consumers can\n* reference it by literal string match.\n*/\nconst POSTGIS_SPACE_ID = \"postgis\";\nconst POSTGIS_BASELINE_MIGRATION_NAME = \"20260601T0000_install_postgis_extension\";\n//#endregion\n//#region src/exports/control.ts\nconst geometryControlPlaneHooks = { resolveIdentityValue: () => null };\nconst postgisContractSpace = contractSpaceFromJson({\n\tcontractJson: contract_default,\n\tmigrations: [{\n\t\tdirName: POSTGIS_BASELINE_MIGRATION_NAME,\n\t\tmetadata: migration_default,\n\t\tops: ops_default\n\t}],\n\theadRef: head_default\n});\nconst postgisExtensionDescriptor = {\n\t...postgisPackMeta,\n\tid: POSTGIS_SPACE_ID,\n\tcontractSpace: postgisContractSpace,\n\ttypes: {\n\t\t...postgisPackMeta.types,\n\t\tcodecTypes: {\n\t\t\t...postgisPackMeta.types.codecTypes,\n\t\t\tcontrolPlaneHooks: { [POSTGIS_GEOMETRY_CODEC_ID]: geometryControlPlaneHooks }\n\t\t}\n\t},\n\tqueryOperations: () => postgisQueryOperations(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { postgisExtensionDescriptor as default, postgisExtensionDescriptor };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;AAIA,IAAI,oBAAoB;CACvB,MAAM;CACN,IAAI;CACJ,oBAAoB,CAAC,4BAA4B;CACjD,WAAW;CACX,eAAe;AAChB;AAGA,IAAI,cAAc,CAAC;CAClB,MAAM;CACN,SAAS;CACT,kBAAkB;CAClB,eAAe;CACf,UAAU;EACT,MAAM;EACN,WAAW;GACV,UAAU;GACV,cAAc;GACd,QAAQ;EACT;CACD;CACA,YAAY,CAAC;EACZ,eAAe;EACf,OAAO;EACP,UAAU,CAAC,SAAS;CACrB,CAAC;CACD,WAAW,CAAC;EACX,eAAe;EACf,OAAO;CACR,CAAC;CACD,aAAa,CAAC;EACb,eAAe;EACf,OAAO;EACP,UAAU,CAAC,SAAS;CACrB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C9C,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
1
+ {"version":3,"file":"control.mjs","names":[],"sources":["../../../../3-extensions/postgis/dist/control.mjs"],"sourcesContent":["import { t as POSTGIS_GEOMETRY_CODEC_ID } from \"./constants-CWW72xGt.mjs\";\nimport { n as postgisQueryOperations, t as postgisPackMeta } from \"./descriptor-meta-DpGg08TG.mjs\";\nimport { contractSpaceFromJson } from \"@internal/migration-tools/spaces\";\n//#region migrations/20260601T0000_install_postgis_extension/migration.json\nvar migration_default$2 = {\n\tfrom: null,\n\tto: \"2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a\",\n\tprovidedInvariants: [\"postgis:install-postgis-v1\"],\n\tcreatedAt: \"2026-06-01T00:00:00.000Z\",\n\tmigrationHash: \"5dd437b3077585a4e39b1be8ebc30b699e75c4ff30c5ee4177659e0d0de948bd\"\n};\n//#endregion\n//#region migrations/20260601T0000_install_postgis_extension/ops.json\nvar ops_default$2 = [{\n\t\"id\": \"postgis.install-postgis-extension\",\n\t\"label\": \"Enable extension \\\"postgis\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"invariantId\": \"postgis:install-postgis-v1\",\n\t\"target\": {\n\t\t\"id\": \"postgres\",\n\t\t\"details\": {\n\t\t\t\"schema\": \"public\",\n\t\t\t\"objectType\": \"dependency\",\n\t\t\t\"name\": \"postgis\"\n\t\t}\n\t},\n\t\"precheck\": [{\n\t\t\"description\": \"verify extension \\\"postgis\\\" is not already enabled\",\n\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"]\n\t}],\n\t\"execute\": [{\n\t\t\"description\": \"create extension \\\"postgis\\\"\",\n\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS postgis\"\n\t}],\n\t\"postcheck\": [{\n\t\t\"description\": \"confirm extension \\\"postgis\\\" is enabled\",\n\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"]\n\t}]\n}];\n//#endregion\n//#region migrations/20261029T1342_create_postgis_extension/migration.json\nvar migration_default$1 = {\n\tfrom: null,\n\tto: \"6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393\",\n\tprovidedInvariants: [],\n\tcreatedAt: \"2026-10-29T13:43:59.960Z\",\n\tmigrationHash: \"f6688936c39095bda49c3848b433ffd2b5eb4a5bd93ec7cf9c11774522703edc\"\n};\n//#endregion\n//#region migrations/20261029T1342_create_postgis_extension/ops.json\nvar ops_default$1 = [{\n\t\"id\": \"schema.public\",\n\t\"label\": \"Create schema \\\"public\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"target\": { \"id\": \"postgres\" },\n\t\"precheck\": [],\n\t\"execute\": [{\n\t\t\"description\": \"Create schema \\\"public\\\"\",\n\t\t\"sql\": \"CREATE SCHEMA IF NOT EXISTS \\\"public\\\"\",\n\t\t\"params\": []\n\t}],\n\t\"postcheck\": []\n}, {\n\t\"id\": \"extension.postgis\",\n\t\"label\": \"Create extension \\\"postgis\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"target\": {\n\t\t\"id\": \"postgres\",\n\t\t\"details\": {\n\t\t\t\"schema\": \"public\",\n\t\t\t\"objectType\": \"dependency\",\n\t\t\t\"name\": \"postgis\"\n\t\t}\n\t},\n\t\"precheck\": [{\n\t\t\"description\": \"verify extension \\\"postgis\\\" is not installed\",\n\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"],\n\t\t\"expectation\": {\n\t\t\t\"expects\": \"absent\",\n\t\t\t\"object\": \"extension \\\"postgis\\\"\"\n\t\t}\n\t}],\n\t\"execute\": [{\n\t\t\"description\": \"create extension \\\"postgis\\\"\",\n\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS \\\"postgis\\\" WITH SCHEMA \\\"public\\\"\"\n\t}],\n\t\"postcheck\": [{\n\t\t\"description\": \"confirm extension \\\"postgis\\\" is installed\",\n\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"],\n\t\t\"expectation\": {\n\t\t\t\"expects\": \"present\",\n\t\t\t\"object\": \"extension \\\"postgis\\\"\"\n\t\t}\n\t}]\n}];\n//#endregion\n//#region migrations/20261029T1342_declare_postgis_extension/migration.json\nvar migration_default = {\n\tfrom: \"2db551a8a5619d0d97710f29130eaea0eccbdd5238f015ee9d18408d438e0f8a\",\n\tto: \"6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393\",\n\tprovidedInvariants: [],\n\tcreatedAt: \"2026-10-29T13:44:00.651Z\",\n\tmigrationHash: \"b2fc62864f3e745ae122622cbb0ee1b89cd639a41c34be8a890c987517be796c\"\n};\n//#endregion\n//#region migrations/20261029T1342_declare_postgis_extension/ops.json\nvar ops_default = [{\n\t\"id\": \"extension.postgis\",\n\t\"label\": \"Create extension \\\"postgis\\\"\",\n\t\"operationClass\": \"additive\",\n\t\"target\": {\n\t\t\"id\": \"postgres\",\n\t\t\"details\": {\n\t\t\t\"schema\": \"public\",\n\t\t\t\"objectType\": \"dependency\",\n\t\t\t\"name\": \"postgis\"\n\t\t}\n\t},\n\t\"precheck\": [{\n\t\t\"description\": \"verify extension \\\"postgis\\\" is not installed\",\n\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"],\n\t\t\"expectation\": {\n\t\t\t\"expects\": \"absent\",\n\t\t\t\"object\": \"extension \\\"postgis\\\"\"\n\t\t}\n\t}],\n\t\"execute\": [{\n\t\t\"description\": \"create extension \\\"postgis\\\"\",\n\t\t\"sql\": \"CREATE EXTENSION IF NOT EXISTS \\\"postgis\\\" WITH SCHEMA \\\"public\\\"\"\n\t}],\n\t\"postcheck\": [{\n\t\t\"description\": \"confirm extension \\\"postgis\\\" is installed\",\n\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_extension\\\" WHERE \\\"extname\\\" = $1) AS \\\"result\\\"\",\n\t\t\"params\": [\"postgis\"],\n\t\t\"expectation\": {\n\t\t\t\"expects\": \"present\",\n\t\t\t\"object\": \"extension \\\"postgis\\\"\"\n\t\t}\n\t}]\n}];\n//#endregion\n//#region migrations/refs/head.json\nvar head_default = {\n\thash: \"6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393\",\n\tinvariants: []\n};\n//#endregion\n//#region src/contract.json\nvar contract_default = {\n\tschemaVersion: \"1\",\n\ttargetFamily: \"sql\",\n\ttarget: \"postgres\",\n\tprofileHash: \"3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2\",\n\troots: {},\n\tdomain: { \"namespaces\": { \"public\": { \"models\": {} } } },\n\tstorage: {\n\t\t\"namespaces\": { \"public\": {\n\t\t\t\"entries\": {\n\t\t\t\t\"extension\": { \"postgis\": {\n\t\t\t\t\t\"kind\": \"extension\",\n\t\t\t\t\t\"name\": \"postgis\"\n\t\t\t\t} },\n\t\t\t\t\"table\": {}\n\t\t\t},\n\t\t\t\"id\": \"public\",\n\t\t\t\"kind\": \"postgres-schema\"\n\t\t} },\n\t\t\"storageHash\": \"6e985087b60584f70ad4f223d8926dfe553db727cc4d58524fe5c38628fef393\",\n\t\t\"types\": { \"geometry\": {\n\t\t\t\"codecId\": \"pg/geometry@1\",\n\t\t\t\"dataType\": \"postgis/geometry\",\n\t\t\t\"kind\": \"codec-instance\"\n\t\t} }\n\t},\n\tcapabilities: {\n\t\t\"postgres\": {\n\t\t\t\"distinctOn\": true,\n\t\t\t\"forKeyShare\": true,\n\t\t\t\"forNoKeyUpdate\": true,\n\t\t\t\"jsonAgg\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"limit\": true,\n\t\t\t\"orderBy\": true,\n\t\t\t\"returning\": true\n\t\t},\n\t\t\"sql\": {\n\t\t\t\"checkConstraint\": true,\n\t\t\t\"defaultInInsert\": true,\n\t\t\t\"enums\": true,\n\t\t\t\"forShare\": true,\n\t\t\t\"forUpdate\": true,\n\t\t\t\"insertOnConflictSkip\": true,\n\t\t\t\"insertOnConflictWithoutTarget\": true,\n\t\t\t\"lateral\": true,\n\t\t\t\"lockNowait\": true,\n\t\t\t\"lockOf\": true,\n\t\t\t\"lockSkipLocked\": true,\n\t\t\t\"returning\": true,\n\t\t\t\"scalarList\": true\n\t\t}\n\t},\n\textensions: {},\n\tmeta: {},\n\t_generated: {\n\t\t\"warning\": \"⚠️ GENERATED FILE - DO NOT EDIT\",\n\t\t\"message\": \"This file is automatically generated by \\\"prisma contract emit\\\".\",\n\t\t\"regenerate\": \"To regenerate, run: prisma contract emit\"\n\t}\n};\n//#endregion\n//#region src/core/contract-space-constants.ts\n/**\n* Static names and identifiers used across postgis's contract space.\n*\n* Centralised here so the contract IR (`./contract`), the baseline\n* migration ops (`./migrations`), the head ref, and the descriptor\n* (`../exports/control`) all reference the same values without typos.\n*\n* The space identifier `'postgis'` is what the framework writes to\n* `migrations/` in the user's repo and what the marker table's\n* `space` column carries for postgis-owned rows.\n*\n* The `postgis:*` invariantId namespace is locked here — once\n* published, an invariantId is immutable so downstream consumers can\n* reference it by literal string match.\n*/\nconst POSTGIS_SPACE_ID = \"postgis\";\nconst POSTGIS_BASELINE_MIGRATION_NAME = \"20260601T0000_install_postgis_extension\";\nconst POSTGIS_UPGRADE_MIGRATION_NAME = \"20261029T1342_declare_postgis_extension\";\nconst POSTGIS_INSTALL_MIGRATION_NAME = \"20261029T1342_create_postgis_extension\";\n//#endregion\n//#region src/exports/control.ts\nconst geometryControlPlaneHooks = { resolveIdentityValue: () => null };\nconst postgisContractSpace = contractSpaceFromJson({\n\tcontractJson: contract_default,\n\tmigrations: [\n\t\t{\n\t\t\tdirName: POSTGIS_BASELINE_MIGRATION_NAME,\n\t\t\tmetadata: migration_default$2,\n\t\t\tops: ops_default$2\n\t\t},\n\t\t{\n\t\t\tdirName: POSTGIS_UPGRADE_MIGRATION_NAME,\n\t\t\tmetadata: migration_default,\n\t\t\tops: ops_default\n\t\t},\n\t\t{\n\t\t\tdirName: POSTGIS_INSTALL_MIGRATION_NAME,\n\t\t\tmetadata: migration_default$1,\n\t\t\tops: ops_default$1\n\t\t}\n\t],\n\theadRef: head_default\n});\nconst postgisExtensionDescriptor = {\n\t...postgisPackMeta,\n\tid: POSTGIS_SPACE_ID,\n\tcontractSpace: postgisContractSpace,\n\ttypes: {\n\t\t...postgisPackMeta.types,\n\t\tcodecTypes: {\n\t\t\t...postgisPackMeta.types.codecTypes,\n\t\t\tcontrolPlaneHooks: { [POSTGIS_GEOMETRY_CODEC_ID]: geometryControlPlaneHooks }\n\t\t}\n\t},\n\tqueryOperations: () => postgisQueryOperations(),\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { postgisExtensionDescriptor as default, postgisExtensionDescriptor };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;AAIA,IAAI,sBAAsB;CACzB,MAAM;CACN,IAAI;CACJ,oBAAoB,CAAC,4BAA4B;CACjD,WAAW;CACX,eAAe;AAChB;AAGA,IAAI,gBAAgB,CAAC;CACpB,MAAM;CACN,SAAS;CACT,kBAAkB;CAClB,eAAe;CACf,UAAU;EACT,MAAM;EACN,WAAW;GACV,UAAU;GACV,cAAc;GACd,QAAQ;EACT;CACD;CACA,YAAY,CAAC;EACZ,eAAe;EACf,OAAO;EACP,UAAU,CAAC,SAAS;CACrB,CAAC;CACD,WAAW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ACT,UAAU;GACV,KAAK;EACN;CACD;CACA,SAAS;AACV,CAAC;AACD,MAAM,6BAA6B;CAClC,GAAG;CACH,IAAI;CACJ,eAAe;CACf,OAAO;EACN,GAAG,gBAAgB;EACnB,YAAY;GACX,GAAG,gBAAgB,MAAM;GACzB,mBAAmB,GAAG,4BAA4B,0BAA0B;EAC7E;CACD;CACA,uBAAuB,uBAAuB;CAC9C,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/orm-extension-postgis",
3
- "version": "8.0.0-rc.21-dev.12",
3
+ "version": "8.0.0-rc.21-dev.14",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -12,22 +12,22 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "@prisma/orm-family-sql": "8.0.0-rc.21-dev.12",
16
- "@prisma/orm-framework": "8.0.0-rc.21-dev.12",
17
- "@prisma/orm-toolchain": "8.0.0-rc.21-dev.12",
15
+ "@prisma/orm-family-sql": "8.0.0-rc.21-dev.14",
16
+ "@prisma/orm-framework": "8.0.0-rc.21-dev.14",
17
+ "@prisma/orm-toolchain": "8.0.0-rc.21-dev.14",
18
18
  "@standard-schema/spec": "^1.1.0",
19
19
  "arktype": "^2.2.2"
20
20
  },
21
21
  "devDependencies": {
22
- "@internal/extension-postgis": "8.0.0-rc.21-dev.12",
23
- "@repo/tsconfig": "8.0.0-rc.21-dev.12",
24
- "@repo/tsdown": "8.0.0-rc.21-dev.12",
25
- "@prisma/orm-target-postgres": "8.0.0-rc.21-dev.12",
22
+ "@internal/extension-postgis": "8.0.0-rc.21-dev.14",
23
+ "@repo/tsconfig": "8.0.0-rc.21-dev.14",
24
+ "@repo/tsdown": "8.0.0-rc.21-dev.14",
25
+ "@prisma/orm-target-postgres": "8.0.0-rc.21-dev.14",
26
26
  "tsdown": "0.22.14",
27
27
  "typescript": "5.9.3"
28
28
  },
29
29
  "peerDependencies": {
30
- "@prisma/orm-target-postgres": "8.0.0-rc.21-dev.12",
30
+ "@prisma/orm-target-postgres": "8.0.0-rc.21-dev.14",
31
31
  "typescript": ">=5.9"
32
32
  },
33
33
  "peerDependenciesMeta": {