Skip to content

Commit f1bba1e

Browse files
committed
Change lot of tests 5 - Fix failing tests
1 parent 039af2b commit f1bba1e

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

tests/specs/x_db_type/fresh/maria/app/migrations_maria_db/m200000_000001_create_table_editcolumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function up()
1010
$this->createTable('{{%editcolumns}}', [
1111
'id' => $this->primaryKey(),
1212
0 => 'name varchar(255) NOT NULL DEFAULT \'Horse-2\'',
13-
'tag' => $this->text()->notNull(),
13+
'tag' => $this->text()->null()->defaultValue(null),
1414
1 => 'first_name varchar(255) NOT NULL',
1515
'string_col' => $this->text()->null()->defaultValue(null),
1616
2 => 'dec_col decimal(12,2) NOT NULL DEFAULT 3.14',

tests/specs/x_db_type/fresh/mysql/app/migrations_mysql_db/m200000_000001_create_table_editcolumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function up()
1010
$this->createTable('{{%editcolumns}}', [
1111
'id' => $this->primaryKey(),
1212
0 => 'name varchar(255) NOT NULL DEFAULT \'Horse-2\'',
13-
'tag' => $this->text()->notNull(),
13+
'tag' => $this->text()->null(),
1414
1 => 'first_name varchar(255) NOT NULL',
1515
'string_col' => $this->text()->null(),
1616
2 => 'dec_col decimal(12,2) NOT NULL DEFAULT 3.14',

tests/specs/x_db_type/fresh/pgsql/app/migrations_pgsql_db/m200000_000001_create_table_editcolumns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public function safeUp()
1010
$this->createTable('{{%editcolumns}}', [
1111
'id' => $this->primaryKey(),
1212
0 => '"name" varchar(254) NOT NULL DEFAULT \'Horse-2\'',
13-
'tag' => $this->text()->notNull(),
13+
'tag' => $this->text()->null()->defaultValue(null),
1414
1 => '"first_name" varchar NOT NULL',
1515
'string_col' => $this->text()->null()->defaultValue(null),
16-
2 => '"dec_col" decimal(12,2) NOT NULL DEFAULT 3.14',
16+
2 => '"dec_col" decimal(12,2) NULL DEFAULT 3.14',
1717
3 => '"str_col_def" varchar NOT NULL',
1818
4 => '"json_col" text NOT NULL DEFAULT \'fox jumps over dog\'',
1919
5 => '"json_col_2" jsonb NOT NULL DEFAULT \'[]\'',

tests/specs/x_db_type/new_column/maria/app/migrations_maria_db/m200000_000001_create_table_editcolumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function up()
1010
$this->createTable('{{%editcolumns}}', [
1111
'id' => $this->primaryKey(),
1212
0 => 'name varchar(255) NOT NULL DEFAULT \'Horse-2\'',
13-
'tag' => $this->text()->notNull(),
13+
'tag' => $this->text()->null()->defaultValue(null),
1414
1 => 'first_name varchar(255) NOT NULL',
1515
'string_col' => $this->text()->null()->defaultValue(null),
1616
2 => 'dec_col decimal(12,2) NOT NULL DEFAULT 3.14',

tests/specs/x_db_type/new_column/mysql/app/migrations_mysql_db/m200000_000001_create_table_editcolumns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function up()
1010
$this->createTable('{{%editcolumns}}', [
1111
'id' => $this->primaryKey(),
1212
0 => 'name varchar(255) NOT NULL DEFAULT \'Horse-2\'',
13-
'tag' => $this->text()->notNull(),
13+
'tag' => $this->text()->null(),
1414
1 => 'first_name varchar(255) NOT NULL',
1515
'string_col' => $this->text()->null(),
1616
2 => 'dec_col decimal(12,2) NOT NULL DEFAULT 3.14',

tests/specs/x_db_type/new_column/pgsql/app/migrations_pgsql_db/m200000_000001_create_table_editcolumns.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ public function safeUp()
1010
$this->createTable('{{%editcolumns}}', [
1111
'id' => $this->primaryKey(),
1212
0 => '"name" varchar(254) NOT NULL DEFAULT \'Horse-2\'',
13-
'tag' => $this->text()->notNull(),
13+
'tag' => $this->text()->null()->defaultValue(null),
1414
1 => '"first_name" varchar NOT NULL',
1515
'string_col' => $this->text()->null()->defaultValue(null),
16-
2 => '"dec_col" decimal(12,2) NOT NULL DEFAULT 3.14',
16+
2 => '"dec_col" decimal(12,2) NULL DEFAULT 3.14',
1717
3 => '"str_col_def" varchar NOT NULL',
1818
4 => '"json_col" text NOT NULL DEFAULT \'fox jumps over dog\'',
1919
5 => '"json_col_2" jsonb NOT NULL DEFAULT \'[]\'',

0 commit comments

Comments
 (0)