Skip to content

Commit aa682bd

Browse files
committed
DEBUG, needs more changes in DBAL
1 parent 3d126f9 commit aa682bd

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/Schema/Migrator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ protected function stripDatabaseFromTableName(string $tableName): string
205205
$currentDatabase = $this->getConnection()->dsql()
206206
->field($this->getConnection()->expr('{{}}', [$this->getDatabasePlatform()->getCurrentDatabaseExpression(true)])) // @phpstan-ignore-line
207207
->getOne();
208+
} elseif ($platform instanceof SqlitePlatform) {
209+
$currentDatabase = 'main';
208210
} else {
209211
$currentDatabase = $this->getConnection()->getConnection()->getDatabase();
210212
}

tests/RandomTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ public function testTableWithSchema(): void
545545

546546
$this->createMigrator($user)->create();
547547
$this->createMigrator($doc)->create();
548+
$this->debug = true;
548549
$this->createMigrator()->createForeignKey($doc->getReference('user_id'));
549550

550551
$user->createEntity()

0 commit comments

Comments
 (0)