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 Jun 11, 2023
1 parent 404080d commit 6b35f1c
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 @@ -209,6 +209,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 @@ -545,6 +545,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 6b35f1c

Please sign in to comment.