Commit f7acb858 authored by Steve Müller's avatar Steve Müller

fix partial index test case

parent ad908512
...@@ -354,7 +354,7 @@ class PostgreSqlSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -354,7 +354,7 @@ class PostgreSqlSchemaManagerTest extends SchemaManagerFunctionalTestCase
$offlineTable->addColumn('name', 'string'); $offlineTable->addColumn('name', 'string');
$offlineTable->addColumn('email', 'string'); $offlineTable->addColumn('email', 'string');
$offlineTable->addUniqueIndex(array('id', 'name'), 'simple_partial_index', array('where' => '(id IS NULL)')); $offlineTable->addUniqueIndex(array('id', 'name'), 'simple_partial_index', array('where' => '(id IS NULL)'));
$offlineTable->addIndex(array('id', 'name'), 'complex_partial_index', array('where' => '(((id IS NOT NULL) AND (name IS NULL)) AND (email IS NULL))')); $offlineTable->addIndex(array('id', 'name'), 'complex_partial_index', array(), array('where' => '(((id IS NOT NULL) AND (name IS NULL)) AND (email IS NULL))'));
$this->_sm->dropAndCreateTable($offlineTable); $this->_sm->dropAndCreateTable($offlineTable);
......
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