Skip to content

Commit 3d34231

Browse files
committed
Test cleanup.
1 parent 5b6e80a commit 3d34231

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

tests/comparisons/Diff/decimalChange/mysql/the_diff_decimal_change_mysql.php

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,20 @@ class TheDiffDecimalChangeMysql extends BaseMigration
1515
*/
1616
public function up(): void
1717
{
18+
1819
$this->table('test_decimal_types')
20+
->changeColumn('id', 'integer', [
21+
'default' => null,
22+
'length' => null,
23+
'limit' => null,
24+
'null' => false,
25+
'signed' => false,
26+
])
1927
->changeColumn('amount', 'decimal', [
2028
'default' => null,
2129
'null' => false,
22-
'precision' => 10,
23-
'scale' => 2,
24-
'signed' => true,
30+
'precision' => 5,
31+
'scale' => 5,
2532
])
2633
->update();
2734
}
@@ -36,13 +43,19 @@ public function up(): void
3643
*/
3744
public function down(): void
3845
{
46+
3947
$this->table('test_decimal_types')
48+
->changeColumn('id', 'integer', [
49+
'autoIncrement' => true,
50+
'default' => null,
51+
'length' => 11,
52+
'null' => false,
53+
])
4054
->changeColumn('amount', 'decimal', [
4155
'default' => null,
4256
'null' => false,
43-
'precision' => 5,
57+
'precision' => 10,
4458
'scale' => 2,
45-
'signed' => true,
4659
])
4760
->update();
4861
}
Binary file not shown.

0 commit comments

Comments
 (0)