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 4aa1cb0 commit 4b1541d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Functional/Schema/SchemaManagerFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,8 @@ public function testCommentStringsAreQuoted(): void
self::markTestSkipped('Database does not support column comments.');
}

$this->dropTableIfExists('my_table');

$table = new Table('my_table');
$table->addColumn('id', 'integer', ['comment' => "It's a comment with a quote"]);
$table->setPrimaryKey(['id']);
Expand All @@ -1273,6 +1275,8 @@ public function testCommentNotDuplicated(): void
self::markTestSkipped('Database does not support column comments.');
}

$this->dropTableIfExists('my_table');

$options = [
'type' => Type::getType('integer'),
'default' => 0,
Expand Down

0 comments on commit 4b1541d

Please sign in to comment.