@hedhog/admin 0.0.73 → 0.0.74

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -40,6 +40,14 @@ export class Migrate implements MigrationInterface {
40
40
  timestampColumn('updated_at'),
41
41
  ],
42
42
  indices: [{ columnNames: ['slug'], isUnique: true }],
43
+ foreignKeys: [
44
+ {
45
+ columnNames: ['menu_id'],
46
+ referencedColumnNames: ['id'],
47
+ referencedTableName: 'menus',
48
+ onDelete: 'CASCADE',
49
+ },
50
+ ],
43
51
  }),
44
52
  );
45
53