Fixup SQLite tests for primary key and autoincrement handling changes

parent c93fdf13
...@@ -16,7 +16,7 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -16,7 +16,7 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
public function getGenerateTableSql() public function getGenerateTableSql()
{ {
return 'CREATE TABLE test (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, test VARCHAR(255) DEFAULT NULL)'; return 'CREATE TABLE test (id INTEGER NOT NULL, test VARCHAR(255) DEFAULT NULL, PRIMARY KEY("id"))';
} }
public function getGenerateTableWithMultiColumnUniqueIndexSql() public function getGenerateTableWithMultiColumnUniqueIndexSql()
...@@ -66,11 +66,11 @@ class SqlitePlatformTest extends AbstractPlatformTestCase ...@@ -66,11 +66,11 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
$this->_platform->getIntegerTypeDeclarationSQL(array()) $this->_platform->getIntegerTypeDeclarationSQL(array())
); );
$this->assertEquals( $this->assertEquals(
'INTEGER AUTOINCREMENT', 'INTEGER',
$this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true)) $this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true))
); );
$this->assertEquals( $this->assertEquals(
'INTEGER PRIMARY KEY AUTOINCREMENT', 'INTEGER',
$this->_platform->getIntegerTypeDeclarationSQL( $this->_platform->getIntegerTypeDeclarationSQL(
array('autoincrement' => true, 'primary' => true)) array('autoincrement' => true, 'primary' => true))
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment