Commit 2564ab0a authored by Steve Müller's avatar Steve Müller

fix DBAL-630 ticket functional test

parent 262deeb1
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace Doctrine\Tests\DBAL\Functional\Ticket; namespace Doctrine\Tests\DBAL\Functional\Ticket;
use Doctrine\DBAL\Exception\TableExistsException; use Doctrine\DBAL\Exception\TableExistsException;
use Doctrine\DBAL\Schema\Table;
use PDO; use PDO;
/** /**
...@@ -24,11 +25,13 @@ class DBAL630Test extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -24,11 +25,13 @@ class DBAL630Test extends \Doctrine\Tests\DbalFunctionalTestCase
$sm = $this->_conn->getSchemaManager(); $sm = $this->_conn->getSchemaManager();
try { $table = new Table('dbal630');
$sm->tryMethod('dropTable', 'dbal630'); $table->addColumn('id', 'integer', array('autoincrement' => true));
$this->_conn->exec('CREATE TABLE dbal630 (id SERIAL, bool_col BOOLEAN NOT NULL);'); $table->addColumn('bool_col', 'boolean');
} catch (TableExistsException $e) { $table->setPrimaryKey(array('id'));
}
$sm->dropAndCreateTable($table);
$this->running = true; $this->running = 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