Skip to content

Commit 1e7102e

Browse files
authored
Merge pull request #7 from hphoeksma/postgres
2 parents d5c4cb3 + b520746 commit 1e7102e

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Neos\Flow\Persistence\Doctrine\Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
/**
11+
*
12+
*/
13+
final class Version20230919135533 extends AbstractMigration
14+
{
15+
public function getDescription(): string
16+
{
17+
return '';
18+
}
19+
20+
public function up(Schema $schema): void
21+
{
22+
$this->abortIf(
23+
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\PostgreSQL100Platform,
24+
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\PostgreSQL100Platform'."
25+
);
26+
27+
$this->addSql('CREATE TABLE netlogix_neos_asyncworkspaceactions_domain_model_job (identifier CHAR(36) NOT NULL, feedback JSON NOT NULL, status VARCHAR(255) NOT NULL, PRIMARY KEY(identifier))');
28+
}
29+
30+
public function down(Schema $schema): void
31+
{
32+
$this->abortIf(
33+
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\PostgreSQL100Platform,
34+
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\PostgreSQL100Platform'."
35+
);
36+
37+
$this->addSql('DROP TABLE netlogix_neos_asyncworkspaceactions_domain_model_job');
38+
}
39+
}

0 commit comments

Comments
 (0)