From b88bb2b9f745a881a598369550535123cc43d072 Mon Sep 17 00:00:00 2001 From: Pavel Ivanov Date: Sun, 25 Mar 2018 18:20:55 +0200 Subject: [PATCH] Issue #15957: dropped deprecated createJunctionMigration template (#15977) See also PR #11207 --- framework/views/createJunctionMigration.php | 78 ----------------------------- 1 file changed, 78 deletions(-) delete mode 100644 framework/views/createJunctionMigration.php diff --git a/framework/views/createJunctionMigration.php b/framework/views/createJunctionMigration.php deleted file mode 100644 index fa62b25..0000000 --- a/framework/views/createJunctionMigration.php +++ /dev/null @@ -1,78 +0,0 @@ - - -use yii\db\Migration; - -/** - * Handles the creation of table `` which is a junction between - * table `` and table ``. - */ -class extends Migration -{ - /** - * {@inheritdoc} - */ - public function safeUp() - { - $this->createTable('', [ - '_id' => $this->integer(), - '_id' => $this->integer(), - 'PRIMARY KEY(_id, _id)', - ]); - - $this->createIndex( - 'idx-_id', - '', - '_id' - ); - - $this->createIndex( - 'idx-_id', - '', - '_id' - ); - - $this->addForeignKey( - 'fk-_id', - '', - '_id', - '', - 'id', - 'CASCADE' - ); - - $this->addForeignKey( - 'fk-_id', - '', - '_id', - '', - 'id', - 'CASCADE' - ); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - $this->dropTable(''); - } -}