File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ public function getCreatedTableNames(): array
136136
137137 public function create (): self
138138 {
139+ $ this ->dropIfExists (true );
139140 $ this ->createSchemaManager ()->createTable ($ this ->table );
140141 $ this ->createdTableNames [] = $ this ->table ->getName ();
141142
Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ public function testCreate(): void
4949 ])->executeStatement ();
5050 }
5151
52- public function testCreateTwiceException (): void
53- {
54- $ this ->createDemoMigrator ('user ' )->create ();
55- $ this ->assertTrue ($ this ->createMigrator ()->isTableExists ('user ' ));
56-
57- $ this ->expectException (TableExistsException::class);
58- $ this ->createDemoMigrator ('user ' )->create ();
59- }
52+ // public function testCreateTwiceException(): void
53+ // {
54+ // $this->createDemoMigrator('user')->create();
55+ // $this->assertTrue($this->createMigrator()->isTableExists('user'));
56+ //
57+ // $this->expectException(TableExistsException::class);
58+ // $this->createDemoMigrator('user')->create();
59+ // }
6060
6161 public function testDrop (): void
6262 {
You can’t perform that action at this time.
0 commit comments