Skip to content

Commit

Permalink
DEBUG, needs more changes in DBAL
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Feb 23, 2024
1 parent 3684b3e commit 989e432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Schema/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ protected function stripDatabaseFromTableName(string $tableName): string
$currentDatabase = $this->getConnection()->dsql()
->field($this->getConnection()->expr('{{}}', [$this->getDatabasePlatform()->getCurrentDatabaseExpression(true)])) // @phpstan-ignore-line
->getOne();
} elseif ($platform instanceof SQLitePlatform) {
$currentDatabase = 'main';
} else {
$currentDatabase = $this->getConnection()->getConnection()->getDatabase();
}
Expand Down
1 change: 1 addition & 0 deletions tests/RandomTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ public function testTableWithSchema(): void

$this->createMigrator($user)->create();
$this->createMigrator($doc)->create();
$this->debug = true;
$this->createMigrator()->createForeignKey($doc->getReference('user_id'));

$user->createEntity()
Expand Down

0 comments on commit 989e432

Please sign in to comment.