Skip to content

Commit

Permalink
Make sure table does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jongotlin committed May 21, 2022
1 parent 99d3b4d commit 4aa1cb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Functional/Schema/PostgreSQL/SchemaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public function testCreateTableWithSequenceInColumnDefinition(): void
self::markTestSkipped('Test is for PostgreSQL.');
}

$this->dropTableIfExists('my_table');

$options = ['default' => 'nextval(\'my_table_id_seq\'::regclass)'];
$table = new Table('my_table', [new Column('id', new IntegerType(), $options)]);
$sequence = new Sequence('my_table_id_seq');
Expand Down

0 comments on commit 4aa1cb0

Please sign in to comment.