Skip to content

Commit c51ad0f

Browse files
committed
wip
1 parent 0d2bec8 commit c51ad0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Database/DatabaseSqlServerSchemaGrammarTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function testDropConstrainedForeignId()
184184

185185
$this->assertCount(2, $statements);
186186
$this->assertSame('alter table "users" drop constraint "users_foo_foreign"', $statements[0]);
187-
$this->assertSame('DECLARE @sql NVARCHAR(MAX) = \'\';SELECT @sql += \'ALTER TABLE [dbo].[users] DROP CONSTRAINT \' + OBJECT_NAME([default_object_id]) + \';\' FROM SYS.COLUMNS WHERE [object_id] = OBJECT_ID(\'[dbo].[users]\') AND [name] in (\'foo\') AND [default_object_id] <> 0;EXEC(@sql);alter table "users" drop column "foo"', $statements[1]);
187+
$this->assertSame('DECLARE @sql NVARCHAR(MAX) = \'\';SELECT @sql += \'ALTER TABLE [dbo].[users] DROP CONSTRAINT \' + OBJECT_NAME([default_object_id]) + \';\' FROM sys.columns WHERE [object_id] = OBJECT_ID(\'[dbo].[users]\') AND [name] in (\'foo\') AND [default_object_id] <> 0;EXEC(@sql);alter table "users" drop column "foo"', $statements[1]);
188188
}
189189

190190
public function testDropTimestamps()

0 commit comments

Comments
 (0)