Skip to content

Commit 6b35f1c

Browse files
committed
DEBUG, needs more changes in DBAL
1 parent 404080d commit 6b35f1c

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
@@ -209,6 +209,8 @@ protected function stripDatabaseFromTableName(string $tableName): string
209209
$currentDatabase = $this->getConnection()->dsql()
210210
->field($this->getConnection()->expr('{{}}', [$this->getDatabasePlatform()->getCurrentDatabaseExpression(true)])) // @phpstan-ignore-line
211211
->getOne();
212+
} elseif ($platform instanceof SqlitePlatform) {
213+
$currentDatabase = 'main';
212214
} else {
213215
$currentDatabase = $this->getConnection()->getConnection()->getDatabase();
214216
}

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)