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 19, 2022
1 parent ee8fc2c commit eccf430
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 eccf430

Please sign in to comment.