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 Oct 16, 2022
1 parent 2c1a4e6 commit edbe910
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 @@ -542,6 +542,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 edbe910

Please sign in to comment.