drizzle-kit 0.9.43 → 0.9.44
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -164460,7 +164460,7 @@ var prepareAlterReferencesJson = (tableName, columns) => {
|
|
|
164460
164460
|
};
|
|
164461
164461
|
} else if (references.type === "changed") {
|
|
164462
164462
|
const [oldFkey] = references.old.split(";");
|
|
164463
|
-
const [fkName, toTable, toColumn, onDelete, onUpdate] = references.
|
|
164463
|
+
const [fkName, toTable, toColumn, onDelete, onUpdate] = references.new.split(";");
|
|
164464
164464
|
const alterReference = {
|
|
164465
164465
|
type: "alter_reference",
|
|
164466
164466
|
fromTable: tableName,
|