Skip to content

Commit

Permalink
Fix issue generating the postgres schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Miu committed Dec 5, 2020
1 parent 8934c4d commit 88df30b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace Sirius\Orm\Tests;

use Doctrine\DBAL\Platforms\MySQL80Platform;
use Doctrine\DBAL\Platforms\PostgreSQL92Platform;
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Doctrine\DBAL\Schema\Schema;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -66,6 +67,10 @@ public function createTables()
switch ($this->dbEngine) {
case 'mysql':
$platform = new MySQL80Platform();
break;
case 'postgres':
$platform = new PostgreSQL92Platform();
break;
}
/** @var Schema $schema */
$schema = include(__DIR__ . "/resources/schema.php");
Expand Down

0 comments on commit 88df30b

Please sign in to comment.