@syncular/typegen 0.37.0 → 0.38.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.
- package/dist/sql.js +1 -1
- package/package.json +3 -3
- package/src/sql.ts +3 -1
package/dist/sql.js
CHANGED
|
@@ -699,7 +699,7 @@ function parseCreateIndex(cursor, tables, unique, source, options) {
|
|
|
699
699
|
const trailing = cursor.peek();
|
|
700
700
|
if (trailing !== undefined) {
|
|
701
701
|
if (trailing.kind === 'word' && trailing.text.toUpperCase() === 'WHERE') {
|
|
702
|
-
cursor.fail(`index ${name}: partial indexes (WHERE …) are unsupported`);
|
|
702
|
+
cursor.fail(`index ${name}: partial indexes (WHERE …) are unsupported in migrations; declare a server-only partial index as serverIndexes on the server schema`);
|
|
703
703
|
}
|
|
704
704
|
cursor.fail(`index ${name}: unsupported trailing SQL ${JSON.stringify(trailing.text)}`);
|
|
705
705
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/typegen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Syncular schema-to-TypeScript type generator and the `syncular` CLI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"!dist/**/*.test.d.ts"
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@syncular/core": "0.
|
|
59
|
+
"@syncular/core": "0.38.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@syncular/server": "0.
|
|
62
|
+
"@syncular/server": "0.38.0"
|
|
63
63
|
}
|
|
64
64
|
}
|
package/src/sql.ts
CHANGED
|
@@ -916,7 +916,9 @@ function parseCreateIndex(
|
|
|
916
916
|
const trailing = cursor.peek();
|
|
917
917
|
if (trailing !== undefined) {
|
|
918
918
|
if (trailing.kind === 'word' && trailing.text.toUpperCase() === 'WHERE') {
|
|
919
|
-
cursor.fail(
|
|
919
|
+
cursor.fail(
|
|
920
|
+
`index ${name}: partial indexes (WHERE …) are unsupported in migrations; declare a server-only partial index as serverIndexes on the server schema`,
|
|
921
|
+
);
|
|
920
922
|
}
|
|
921
923
|
cursor.fail(
|
|
922
924
|
`index ${name}: unsupported trailing SQL ${JSON.stringify(trailing.text)}`,
|