rake-db 2.4.30 → 2.4.32
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.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -472,6 +472,9 @@ const indexesToQuery = (up, { schema, name }, indexes) => {
|
|
|
472
472
|
`INCLUDE (${orchidCore.toArray(options.include).map((column) => `"${column}"`).join(", ")})`
|
|
473
473
|
);
|
|
474
474
|
}
|
|
475
|
+
if (options.nullsNotDistinct) {
|
|
476
|
+
sql.push(`NULLS NOT DISTINCT`);
|
|
477
|
+
}
|
|
475
478
|
if (options.with) {
|
|
476
479
|
sql.push(`WITH (${options.with})`);
|
|
477
480
|
}
|
|
@@ -1965,6 +1968,7 @@ ORDER BY c.ordinal_position`
|
|
|
1965
1968
|
)
|
|
1966
1969
|
FROM unnest(i.indkey[indnkeyatts:]) AS j(e)
|
|
1967
1970
|
) AS "include",
|
|
1971
|
+
(to_jsonb(i.*)->'indnullsnotdistinct')::bool AS "nullsNotDistinct",
|
|
1968
1972
|
NULLIF(pg_catalog.array_to_string(
|
|
1969
1973
|
ic.reloptions || array(SELECT 'toast.' || x FROM pg_catalog.unnest(tc.reloptions) x),
|
|
1970
1974
|
', '
|
|
@@ -2461,6 +2465,7 @@ const pushTableAst = (ctx, ast, data, domains, table, pendingTables, innerConstr
|
|
|
2461
2465
|
using: index.using === "btree" ? void 0 : index.using,
|
|
2462
2466
|
unique: index.isUnique,
|
|
2463
2467
|
include: index.include,
|
|
2468
|
+
nullsNotDistinct: index.nullsNotDistinct,
|
|
2464
2469
|
with: index.with,
|
|
2465
2470
|
tablespace: index.tablespace,
|
|
2466
2471
|
where: index.where
|
|
@@ -2513,6 +2518,7 @@ const pushTableAst = (ctx, ast, data, domains, table, pendingTables, innerConstr
|
|
|
2513
2518
|
using: index.using === "btree" ? void 0 : index.using,
|
|
2514
2519
|
unique: index.isUnique,
|
|
2515
2520
|
include: index.include,
|
|
2521
|
+
nullsNotDistinct: index.nullsNotDistinct,
|
|
2516
2522
|
with: index.with,
|
|
2517
2523
|
tablespace: index.tablespace,
|
|
2518
2524
|
where: index.where
|