Skip to content

Commit b2caec3

Browse files
committed
fixed view of migration
1 parent a9ff644 commit b2caec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/steps/step-001.1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class m150513_054155_create_asto_tables extends Migration
8888
'name' => Schema::TYPE_STRING . ' NOT NULL',
8989
'star_id' => Schema::TYPE_INTEGER . ' NOT NULL',
9090
'FOREIGN KEY(star_id) REFERENCES '
91-
. $this->db->quoteTableName('{{%star}}') . '(id)'
91+
. $this->db->quoteTableName('{{%star}}') . '(id) ON UPDATE CASCADE ON DELETE CASCADE'
9292
],
9393
$tableOptions
9494
);
@@ -100,7 +100,7 @@ class m150513_054155_create_asto_tables extends Migration
100100
'name' => Schema::TYPE_STRING . ' NOT NULL',
101101
'planet_id' => Schema::TYPE_INTEGER . ' NOT NULL',
102102
'FOREIGN KEY(planet_id) REFERENCES '
103-
. $this->db->quoteTableName('{{%planet}}') . '(id)'
103+
. $this->db->quoteTableName('{{%planet}}') . '(id) ON UPDATE CASCADE ON DELETE CASCADE'
104104
],
105105
$tableOptions
106106
);

0 commit comments

Comments
 (0)