File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class m150513_054155_create_asto_tables extends Migration
88
88
'name' => Schema::TYPE_STRING . ' NOT NULL',
89
89
'star_id' => Schema::TYPE_INTEGER . ' NOT NULL',
90
90
'FOREIGN KEY(star_id) REFERENCES '
91
- . $this->db->quoteTableName('{{%star}}') . '(id)'
91
+ . $this->db->quoteTableName('{{%star}}') . '(id) ON UPDATE CASCADE ON DELETE CASCADE '
92
92
],
93
93
$tableOptions
94
94
);
@@ -100,7 +100,7 @@ class m150513_054155_create_asto_tables extends Migration
100
100
'name' => Schema::TYPE_STRING . ' NOT NULL',
101
101
'planet_id' => Schema::TYPE_INTEGER . ' NOT NULL',
102
102
'FOREIGN KEY(planet_id) REFERENCES '
103
- . $this->db->quoteTableName('{{%planet}}') . '(id)'
103
+ . $this->db->quoteTableName('{{%planet}}') . '(id) ON UPDATE CASCADE ON DELETE CASCADE '
104
104
],
105
105
$tableOptions
106
106
);
You can’t perform that action at this time.
0 commit comments