Skip to content

Commit a4dc0a4

Browse files
committed
Fix another failing tests - MultiDbSecondaryMigrationTest
1 parent 3a1499b commit a4dc0a4

16 files changed

+17
-17
lines changed

tests/specs/blog_v2/migrations_maria_db/m200000_000004_change_table_v2_users.php renamed to tests/specs/blog_v2/migrations_maria_db/m200000_000000_change_table_v2_users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for User
55
*/
6-
class m200000_000004_change_table_v2_users extends \yii\db\Migration
6+
class m200000_000000_change_table_v2_users extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_mysql_db/m200000_000003_change_table_v2_categories.php renamed to tests/specs/blog_v2/migrations_maria_db/m200000_000001_change_table_v2_categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Category
55
*/
6-
class m200000_000003_change_table_v2_categories extends \yii\db\Migration
6+
class m200000_000001_change_table_v2_categories extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_maria_db/m200000_000000_change_table_v2_posts.php renamed to tests/specs/blog_v2/migrations_maria_db/m200000_000002_change_table_v2_posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Post
55
*/
6-
class m200000_000000_change_table_v2_posts extends \yii\db\Migration
6+
class m200000_000002_change_table_v2_posts extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_mysql_db/m200000_000001_create_table_v2_tags.php renamed to tests/specs/blog_v2/migrations_maria_db/m200000_000003_create_table_v2_tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Tag
55
*/
6-
class m200000_000001_create_table_v2_tags extends \yii\db\Migration
6+
class m200000_000003_create_table_v2_tags extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_maria_db/m200000_000002_create_table_posts2tags.php renamed to tests/specs/blog_v2/migrations_maria_db/m200000_000004_create_table_posts2tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Posts2Tags
55
*/
6-
class m200000_000002_create_table_posts2tags extends \yii\db\Migration
6+
class m200000_000004_create_table_posts2tags extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_mysql_db/m200000_000004_change_table_v2_users.php renamed to tests/specs/blog_v2/migrations_mysql_db/m200000_000000_change_table_v2_users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for User
55
*/
6-
class m200000_000004_change_table_v2_users extends \yii\db\Migration
6+
class m200000_000000_change_table_v2_users extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_maria_db/m200000_000003_change_table_v2_categories.php renamed to tests/specs/blog_v2/migrations_mysql_db/m200000_000001_change_table_v2_categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Category
55
*/
6-
class m200000_000003_change_table_v2_categories extends \yii\db\Migration
6+
class m200000_000001_change_table_v2_categories extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_mysql_db/m200000_000000_change_table_v2_posts.php renamed to tests/specs/blog_v2/migrations_mysql_db/m200000_000002_change_table_v2_posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Post
55
*/
6-
class m200000_000000_change_table_v2_posts extends \yii\db\Migration
6+
class m200000_000002_change_table_v2_posts extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_maria_db/m200000_000001_create_table_v2_tags.php renamed to tests/specs/blog_v2/migrations_mysql_db/m200000_000003_create_table_v2_tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Tag
55
*/
6-
class m200000_000001_create_table_v2_tags extends \yii\db\Migration
6+
class m200000_000003_create_table_v2_tags extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_mysql_db/m200000_000002_create_table_posts2tags.php renamed to tests/specs/blog_v2/migrations_mysql_db/m200000_000004_create_table_posts2tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Posts2Tags
55
*/
6-
class m200000_000002_create_table_posts2tags extends \yii\db\Migration
6+
class m200000_000004_create_table_posts2tags extends \yii\db\Migration
77
{
88
public function up()
99
{

tests/specs/blog_v2/migrations_mysql_db/m200000_000005_change_table_v2_comments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class m200000_000005_change_table_v2_comments extends \yii\db\Migration
77
{
88
public function up()
99
{
10-
$this->dropForeignKey('fk_v2_comments_post_id_v2_posts_uid', '{{%v2_comments}}');
1110
$this->dropForeignKey('fk_v2_comments_author_id_v2_users_id', '{{%v2_comments}}');
11+
$this->dropForeignKey('fk_v2_comments_post_id_v2_posts_uid', '{{%v2_comments}}');
1212
$this->addColumn('{{%v2_comments}}', 'user_id', $this->bigInteger()->null()->defaultValue(null)->after('post_id'));
1313
$this->dropColumn('{{%v2_comments}}', 'author_id');
1414
$this->alterColumn('{{%v2_comments}}', 'message', $this->text()->notNull());
@@ -27,7 +27,7 @@ public function down()
2727
$this->alterColumn('{{%v2_comments}}', 'message', 'json NOT NULL');
2828
$this->addColumn('{{%v2_comments}}', 'author_id', $this->integer()->notNull());
2929
$this->dropColumn('{{%v2_comments}}', 'user_id');
30-
$this->addForeignKey('fk_v2_comments_author_id_v2_users_id', '{{%v2_comments}}', 'author_id', 'itt_v2_users', 'id');
3130
$this->addForeignKey('fk_v2_comments_post_id_v2_posts_uid', '{{%v2_comments}}', 'post_id', 'itt_v2_posts', 'uid');
31+
$this->addForeignKey('fk_v2_comments_author_id_v2_users_id', '{{%v2_comments}}', 'author_id', 'itt_v2_users', 'id');
3232
}
3333
}

tests/specs/blog_v2/migrations_pgsql_db/m200000_000004_change_table_v2_users.php renamed to tests/specs/blog_v2/migrations_pgsql_db/m200000_000000_change_table_v2_users.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for User
55
*/
6-
class m200000_000004_change_table_v2_users extends \yii\db\Migration
6+
class m200000_000000_change_table_v2_users extends \yii\db\Migration
77
{
88
public function safeUp()
99
{

tests/specs/blog_v2/migrations_pgsql_db/m200000_000003_change_table_v2_categories.php renamed to tests/specs/blog_v2/migrations_pgsql_db/m200000_000001_change_table_v2_categories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Category
55
*/
6-
class m200000_000003_change_table_v2_categories extends \yii\db\Migration
6+
class m200000_000001_change_table_v2_categories extends \yii\db\Migration
77
{
88
public function safeUp()
99
{

tests/specs/blog_v2/migrations_pgsql_db/m200000_000000_change_table_v2_posts.php renamed to tests/specs/blog_v2/migrations_pgsql_db/m200000_000002_change_table_v2_posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Post
55
*/
6-
class m200000_000000_change_table_v2_posts extends \yii\db\Migration
6+
class m200000_000002_change_table_v2_posts extends \yii\db\Migration
77
{
88
public function safeUp()
99
{

tests/specs/blog_v2/migrations_pgsql_db/m200000_000001_create_table_v2_tags.php renamed to tests/specs/blog_v2/migrations_pgsql_db/m200000_000003_create_table_v2_tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Tag
55
*/
6-
class m200000_000001_create_table_v2_tags extends \yii\db\Migration
6+
class m200000_000003_create_table_v2_tags extends \yii\db\Migration
77
{
88
public function safeUp()
99
{

tests/specs/blog_v2/migrations_pgsql_db/m200000_000002_create_table_posts2tags.php renamed to tests/specs/blog_v2/migrations_pgsql_db/m200000_000004_create_table_posts2tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Table for Posts2Tags
55
*/
6-
class m200000_000002_create_table_posts2tags extends \yii\db\Migration
6+
class m200000_000004_create_table_posts2tags extends \yii\db\Migration
77
{
88
public function safeUp()
99
{

0 commit comments

Comments
 (0)