@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
@@ -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
|
|