From ed5bb79bb5a5eb6beb364df3a6fc6423cce34217 Mon Sep 17 00:00:00 2001 From: Tofandel Date: Mon, 28 Aug 2023 20:15:32 +0200 Subject: [PATCH] Fix type and revert added test line --- tests/Platforms/SQLServerPlatformTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Platforms/SQLServerPlatformTest.php b/tests/Platforms/SQLServerPlatformTest.php index d4812718cd4..dcca3bc3e5e 100644 --- a/tests/Platforms/SQLServerPlatformTest.php +++ b/tests/Platforms/SQLServerPlatformTest.php @@ -994,7 +994,7 @@ public function testGeneratesAlterTableSQLWithColumnComments(): void 'comment_with_string_literal_char', new Column('comment_with_string_literal_char', Type::getType(Types::STRING), ['comment' => "'"]), ['comment'], - new Column('comment_with_string_literal_char', Type::getType(Types::ARRAY), ['comment' => "O'Reilly"]), + new Column('comment_with_string_literal_char', Type::getType(Types::STRING), ['comment' => "O'Reilly"]), ); $tableDiff->removedColumns['comment_integer_0'] @@ -1025,7 +1025,6 @@ public function testGeneratesAlterTableSQLWithColumnComments(): void 'ALTER TABLE mytable ALTER COLUMN [comment_quoted] VARCHAR(MAX) NOT NULL', 'ALTER TABLE mytable ALTER COLUMN [create] VARCHAR(MAX) NOT NULL', 'ALTER TABLE mytable ALTER COLUMN commented_type INT NOT NULL', - 'ALTER TABLE mytable ALTER COLUMN comment_with_string_literal_char NVARCHAR(255) NOT NULL', // Added columns. "EXEC sp_addextendedproperty N'MS_Description', N'0', " . "N'SCHEMA', 'dbo', N'TABLE', 'mytable', N'COLUMN', added_comment_integer_0",