Skip to content

Commit

Permalink
Fix type and revert added test line
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Aug 28, 2023
1 parent d2f97f8 commit ed5bb79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Platforms/SQLServerPlatformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ed5bb79

Please sign in to comment.