orchid-orm 1.59.2 → 1.59.4
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.d.ts +74 -84
- package/dist/index.js +23 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -12
- package/dist/index.mjs.map +1 -1
- package/dist/migrations/node-postgres.js +3 -3
- package/dist/migrations/node-postgres.js.map +1 -1
- package/dist/migrations/node-postgres.mjs +4 -4
- package/dist/migrations/node-postgres.mjs.map +1 -1
- package/dist/migrations/postgres-js.js +3 -3
- package/dist/migrations/postgres-js.js.map +1 -1
- package/dist/migrations/postgres-js.mjs +4 -4
- package/dist/migrations/postgres-js.mjs.map +1 -1
- package/dist/node-postgres.d.ts +1 -1
- package/dist/node-postgres.js +6 -2
- package/dist/node-postgres.js.map +1 -1
- package/dist/node-postgres.mjs +6 -2
- package/dist/node-postgres.mjs.map +1 -1
- package/dist/postgres-js.d.ts +1 -1
- package/dist/postgres-js.js +2 -1
- package/dist/postgres-js.js.map +1 -1
- package/dist/postgres-js.mjs +2 -1
- package/dist/postgres-js.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -513,7 +513,7 @@ const compareColumns = async (adapter, domainsMap, ast, currentSchema, compareSq
|
|
|
513
513
|
)) {
|
|
514
514
|
return "change";
|
|
515
515
|
}
|
|
516
|
-
if (dbData.default !== void 0 &&
|
|
516
|
+
if (dbData.default !== void 0 && codeData.default !== void 0) {
|
|
517
517
|
const valuesBeforeLen = compareSql.values.length;
|
|
518
518
|
const dbDefault = rakeDb.encodeColumnDefault(
|
|
519
519
|
dbData.default,
|
|
@@ -672,7 +672,7 @@ const processDomains = async (ast, adapter, domainsMap, dbStructure, {
|
|
|
672
672
|
);
|
|
673
673
|
if (domain.checks) {
|
|
674
674
|
dbColumn.data.checks = domain.checks.map((check) => ({
|
|
675
|
-
sql: new pqb.
|
|
675
|
+
sql: new pqb.RawSql([[check]])
|
|
676
676
|
}));
|
|
677
677
|
}
|
|
678
678
|
const dbDomain = makeComparableDomain(
|
|
@@ -1812,7 +1812,7 @@ const collectCodeChecks = ({
|
|
|
1812
1812
|
};
|
|
1813
1813
|
const dropCheck = ({ changeTableAst: { drop }, changingColumns }, dbCheck, name) => {
|
|
1814
1814
|
var _a;
|
|
1815
|
-
const sql = new pqb.
|
|
1815
|
+
const sql = new pqb.RawSql([
|
|
1816
1816
|
[dbCheck.expression]
|
|
1817
1817
|
]);
|
|
1818
1818
|
if (dbCheck.columns?.length === 1 && changingColumns[dbCheck.columns[0]]) {
|