Permalink
Browse files

Fixed test case to reflect proper nullability of columns

  • Loading branch information...
1 parent 336441a commit 90ff8205be8340b0cbe745810874210768e978a6 David Desberg committed Nov 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/Doctrine/Tests/DBAL/Platforms/SQLServerPlatformTest.php
@@ -14,21 +14,21 @@ public function createPlatform()
public function getGenerateTableSql()
{
- return 'CREATE TABLE test (id INT IDENTITY NOT NULL, test NVARCHAR(255) DEFAULT NULL, PRIMARY KEY (id))';
+ return 'CREATE TABLE test (id INT IDENTITY NOT NULL, test NVARCHAR(255) NULL, PRIMARY KEY (id))';
}
public function getGenerateTableWithMultiColumnUniqueIndexSql()
{
return array(
- 'CREATE TABLE test (foo NVARCHAR(255) DEFAULT NULL, bar NVARCHAR(255) DEFAULT NULL)',
+ 'CREATE TABLE test (foo NVARCHAR(255) NULL, bar NVARCHAR(255) NULL)',
'CREATE UNIQUE INDEX UNIQ_D87F7E0C8C73652176FF8CAA ON test (foo, bar) WHERE foo IS NOT NULL AND bar IS NOT NULL'
);
}
public function getGenerateAlterTableSql()
{
return array(
- 'ALTER TABLE mytable ADD quota INT DEFAULT NULL',
+ 'ALTER TABLE mytable ADD quota INT NULL',
'ALTER TABLE mytable DROP COLUMN foo',
'ALTER TABLE mytable ALTER COLUMN baz NVARCHAR(255) DEFAULT \'def\' NOT NULL',
'ALTER TABLE mytable ALTER COLUMN bloo BIT DEFAULT \'0\' NOT NULL',

0 comments on commit 90ff820

Please sign in to comment.