drizzle-kit 0.9.44 → 0.9.45
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/index.js +1 -23
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -164320,7 +164320,7 @@ var _prepareAddColumns = (tableName, columns) => {
|
|
|
164320
164320
|
});
|
|
164321
164321
|
};
|
|
164322
164322
|
var _prepareAlterColumns = (tableName, columns) => {
|
|
164323
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
164323
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
164324
164324
|
let statements = [];
|
|
164325
164325
|
for (const column of columns) {
|
|
164326
164326
|
const columnName = typeof column.name !== "string" ? column.name.new : column.name;
|
|
@@ -164385,28 +164385,6 @@ var _prepareAlterColumns = (tableName, columns) => {
|
|
|
164385
164385
|
columnName
|
|
164386
164386
|
});
|
|
164387
164387
|
}
|
|
164388
|
-
if (((_h = column.notNull) == null ? void 0 : _h.type) === "added") {
|
|
164389
|
-
statements.push({
|
|
164390
|
-
type: "alter_table_alter_column_set_notnull",
|
|
164391
|
-
tableName,
|
|
164392
|
-
columnName
|
|
164393
|
-
});
|
|
164394
|
-
}
|
|
164395
|
-
if (((_i = column.notNull) == null ? void 0 : _i.type) === "changed") {
|
|
164396
|
-
const type2 = column.notNull.new ? "alter_table_alter_column_set_notnull" : "alter_table_alter_column_drop_notnull";
|
|
164397
|
-
statements.push({
|
|
164398
|
-
type: type2,
|
|
164399
|
-
tableName,
|
|
164400
|
-
columnName
|
|
164401
|
-
});
|
|
164402
|
-
}
|
|
164403
|
-
if (((_j = column.notNull) == null ? void 0 : _j.type) === "deleted") {
|
|
164404
|
-
statements.push({
|
|
164405
|
-
type: "alter_table_alter_column_drop_notnull",
|
|
164406
|
-
tableName,
|
|
164407
|
-
columnName
|
|
164408
|
-
});
|
|
164409
|
-
}
|
|
164410
164388
|
}
|
|
164411
164389
|
return statements;
|
|
164412
164390
|
};
|