Skip to content

Commit 37f2614

Browse files
authored
Use PostgreSQL100Platform
1 parent 29ed4ec commit 37f2614

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Migrations/Postgresql/Version20240111140935.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public function getDescription(): string
2020
public function up(Schema $schema): void
2121
{
2222
$this->abortIf(
23-
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\PostgreSQL94Platform,
24-
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\PostgreSQL94Platform'."
23+
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\PostgreSQL100Platform,
24+
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\PostgreSQL100Platform'."
2525
);
2626

2727
$this->addSql('CREATE TABLE flownative_oauth2_client_authorization (authorizationid VARCHAR(255) NOT NULL, servicename VARCHAR(255) NOT NULL, clientid VARCHAR(255) NOT NULL, granttype VARCHAR(255) NOT NULL, scope VARCHAR(255) NOT NULL, expires TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, serializedaccesstoken TEXT DEFAULT NULL, encryptedserializedaccesstoken TEXT DEFAULT NULL, metadata TEXT DEFAULT NULL, PRIMARY KEY(authorizationid))');
@@ -31,8 +31,8 @@ public function up(Schema $schema): void
3131
public function down(Schema $schema): void
3232
{
3333
$this->abortIf(
34-
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\PostgreSQL94Platform,
35-
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\PostgreSQL94Platform'."
34+
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\PostgreSQL100Platform,
35+
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\PostgreSQL100Platform'."
3636
);
3737

3838
$this->addSql('DROP TABLE flownative_oauth2_client_authorization');

0 commit comments

Comments
 (0)