Skip to content

Commit

Permalink
CT-1169 test multiple changes in one go
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfejfar committed Feb 15, 2024
1 parent 87bae6c commit f74d392
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ public function provideGetColumnDefinitionUpdate(): Generator
/** @lang Snowflake */
'ALTER TABLE "testDb"."testTable" MODIFY COLUMN "testColumn" SET DATA TYPE NUMERIC(14, 8)',
];
yield 'full set of changes (increase precision, drop nullable, drop default)' => [
new Snowflake('NUMERIC', ['length' => '12,8', 'nullable' => true, 'default' => 'grunbread']),
new Snowflake('NUMERIC', ['length' => '14,8', 'nullable' => false, 'default' => '']),
/** @lang Snowflake */
'ALTER TABLE "testDb"."testTable" MODIFY COLUMN "testColumn" DROP DEFAULT, '
. 'COLUMN "testColumn" SET NOT NULL, COLUMN "testColumn" SET DATA TYPE NUMERIC(14, 8)',
];
}

public function provideInvalidGetColumnDefinitionUpdate(): Generator
Expand Down

0 comments on commit f74d392

Please sign in to comment.