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 Jul 21, 2022
1 parent 4f7c4fe commit 4382e0e
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 @@ -208,6 +208,8 @@ protected function stripDatabaseFromTableName(string $tableName): string
$currentDatabase = $this->getConnection()->dsql()
->field(new Expression($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 @@ -596,6 +596,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 4382e0e

Please sign in to comment.