vr-migrations 1.0.29 → 1.0.30

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.
@@ -18,7 +18,7 @@ module.exports = {
18
18
  key: "id",
19
19
  },
20
20
  onUpdate: "CASCADE",
21
- onDelete: "CASCADE",
21
+ onDelete: "SET NULL", // ← This is SET NULL, not CASCADE
22
22
  },
23
23
  name: {
24
24
  type: Sequelize.STRING(100),
@@ -23,7 +23,7 @@ module.exports = {
23
23
  key: "id",
24
24
  },
25
25
  onUpdate: "CASCADE",
26
- onDelete: "CASCADE",
26
+ onDelete: "SET NULL", // ← This is SET NULL, not CASCADE
27
27
  },
28
28
  installmentNumber: {
29
29
  type: Sequelize.INTEGER,
@@ -24,7 +24,7 @@ module.exports = {
24
24
  key: "id",
25
25
  },
26
26
  onUpdate: "CASCADE",
27
- onDelete: "CASCADE",
27
+ onDelete: "SET NULL", // ← This is SET NULL, not CASCADE
28
28
  },
29
29
  adminId: {
30
30
  type: Sequelize.UUID,
@@ -34,7 +34,7 @@ module.exports = {
34
34
  key: "id",
35
35
  },
36
36
  onUpdate: "CASCADE",
37
- onDelete: "CASCADE",
37
+ onDelete: "SET NULL", // ← This is SET NULL, not CASCADE
38
38
  },
39
39
  reason: {
40
40
  type: Sequelize.TEXT,
@@ -24,7 +24,7 @@ module.exports = {
24
24
  key: "id",
25
25
  },
26
26
  onUpdate: "CASCADE",
27
- onDelete: "CASCADE",
27
+ onDelete: "SET NULL", // ← This is SET NULL, not CASCADE
28
28
  },
29
29
  adminId: {
30
30
  type: Sequelize.UUID,
@@ -34,7 +34,7 @@ module.exports = {
34
34
  key: "id",
35
35
  },
36
36
  onUpdate: "CASCADE",
37
- onDelete: "CASCADE",
37
+ onDelete: "SET NULL", // ← This is SET NULL, not CASCADE
38
38
  },
39
39
  reason: {
40
40
  type: Sequelize.TEXT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-migrations",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Database migration and seeding package for VR applications",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",