Skip to content

Commit 68aae78

Browse files
committed
Add missiong migration adaptions
1 parent d93b6b0 commit 68aae78

10 files changed

+20
-20
lines changed

Neos.Flow/Migrations/Mysql/Version20141015125841.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Version20141015125841 extends AbstractMigration
2424
*/
2525
public function up(Schema $schema): void
2626
{
27-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql');
27+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform));
2828

2929
$this->addSql('ALTER TABLE typo3_flow_resource_resource DROP FOREIGN KEY FK_B4D45B32A4A851AF');
3030
$this->addSql('ALTER TABLE typo3_flow_resource_resource DROP FOREIGN KEY typo3_flow_resource_resource_ibfk_1');
@@ -86,7 +86,7 @@ public function postUp(Schema $schema): void
8686
*/
8787
public function down(Schema $schema): void
8888
{
89-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql');
89+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform));
9090
$this->addSql('CREATE TABLE typo3_flow_resource_resourcepointer (hash VARCHAR(255) NOT NULL, PRIMARY KEY(hash)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');
9191

9292
$this->addSql('ALTER TABLE typo3_flow_resource_resource ADD publishingconfiguration VARCHAR(40) DEFAULT NULL, CHANGE sha1 resourcepointer VARCHAR(255) NOT NULL, DROP md5, DROP collectionname, DROP mediatype, DROP relativepublicationpath, DROP filesize, ADD fileextension VARCHAR(255) NOT NULL');

Neos.Flow/Migrations/Mysql/Version20151110113650.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Version20151110113650 extends AbstractMigration
1818
*/
1919
public function up(Schema $schema): void
2020
{
21-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql');
21+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform));
2222

2323
$this->addSql('ALTER TABLE typo3_flow_security_account ADD lastsuccessfulauthenticationdate DATETIME DEFAULT NULL, ADD failedauthenticationcount INT DEFAULT 0');
2424
}
@@ -29,7 +29,7 @@ public function up(Schema $schema): void
2929
*/
3030
public function down(Schema $schema): void
3131
{
32-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql');
32+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform));
3333

3434
$this->addSql('ALTER TABLE typo3_flow_security_account DROP lastsuccessfulauthenticationdate, DROP failedauthenticationcount');
3535
}

Neos.Flow/Migrations/Mysql/Version20160601164332.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Version20160601164332 extends AbstractMigration
1717
*/
1818
public function up(Schema $schema): void
1919
{
20-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
20+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
2121

2222
$this->addSql('ALTER TABLE typo3_flow_security_account CHANGE failedauthenticationcount failedauthenticationcount INT DEFAULT NULL');
2323
}
@@ -28,7 +28,7 @@ public function up(Schema $schema): void
2828
*/
2929
public function down(Schema $schema): void
3030
{
31-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
31+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
3232

3333
$this->addSql('ALTER TABLE typo3_flow_security_account CHANGE failedauthenticationcount failedauthenticationcount INT DEFAULT 0');
3434
}

Neos.Flow/Migrations/Mysql/Version20161115142022.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function getDescription(): string
2424
*/
2525
public function up(Schema $schema): void
2626
{
27-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
27+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
2828

2929
$this->addSql('RENAME TABLE typo3_flow_resource_resource TO typo3_flow_resourcemanagement_persistentresource');
3030
}
@@ -35,7 +35,7 @@ public function up(Schema $schema): void
3535
*/
3636
public function down(Schema $schema): void
3737
{
38-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
38+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
3939

4040
$this->addSql('RENAME TABLE typo3_flow_resourcemanagement_persistentresource TO typo3_flow_resource_resource');
4141
}

Neos.Flow/Migrations/Mysql/Version20161124185047.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Version20161124185047 extends AbstractMigration
1616
*/
1717
public function up(Schema $schema): void
1818
{
19-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
19+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
2020

2121
$this->addSql('RENAME TABLE typo3_flow_mvc_routing_objectpathmapping TO neos_flow_mvc_routing_objectpathmapping');
2222
$this->addSql('RENAME TABLE typo3_flow_resourcemanagement_persistentresource TO neos_flow_resourcemanagement_persistentresource');
@@ -29,7 +29,7 @@ public function up(Schema $schema): void
2929
*/
3030
public function down(Schema $schema): void
3131
{
32-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
32+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
3333

3434
$this->addSql('RENAME TABLE neos_flow_mvc_routing_objectpathmapping TO typo3_flow_mvc_routing_objectpathmapping');
3535
$this->addSql('RENAME TABLE neos_flow_resourcemanagement_persistentresource TO typo3_flow_resourcemanagement_persistentresource');

Neos.Flow/Migrations/Mysql/Version20161125121218.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Version20161125121218 extends AbstractMigration
1616
*/
1717
public function up(Schema $schema): void
1818
{
19-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
19+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
2020

2121
$this->addSql("UPDATE neos_flow_security_account SET roleidentifiers=REPLACE(roleidentifiers, 'TYPO3.Flow:', 'Neos.Flow:')");
2222
$this->addSql("UPDATE neos_flow_security_account SET roleidentifiers=REPLACE(roleidentifiers, 'TYPO3.Neos:', 'Neos.Neos:')");
@@ -30,7 +30,7 @@ public function up(Schema $schema): void
3030
*/
3131
public function down(Schema $schema): void
3232
{
33-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
33+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
3434

3535
$this->addSql("UPDATE neos_flow_security_account SET roleidentifiers=REPLACE(roleidentifiers, 'Neos.Flow:', 'TYPO3.Flow:')");
3636
$this->addSql("UPDATE neos_flow_security_account SET roleidentifiers=REPLACE(roleidentifiers, 'Neos.Neos:', 'TYPO3.Neos:')");

Neos.Flow/Migrations/Mysql/Version20170110130149.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getDescription(): string
2323
*/
2424
public function up(Schema $schema): void
2525
{
26-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
26+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
2727

2828
// Renaming of indexes is only possible with MySQL version 5.7+
2929
if ($this->connection->getDatabasePlatform() instanceof MySQL57Platform) {
@@ -40,7 +40,7 @@ public function up(Schema $schema): void
4040
*/
4141
public function down(Schema $schema): void
4242
{
43-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
43+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
4444

4545
// Renaming of indexes is only possible with MySQL version 5.7+
4646
if ($this->connection->getDatabasePlatform() instanceof MySQL57Platform) {

Neos.Flow/Migrations/Mysql/Version20180622074421.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getDescription(): string
2222
*/
2323
public function up(Schema $schema): void
2424
{
25-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
25+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
2626

2727
if (array_key_exists('typo3_flow_resource_resource', $this->sm->listTableNames()) !== false
2828
&& array_key_exists(strtolower('IDX_35DC14F03332102A'), $this->sm->listTableIndexes('typo3_flow_resource_resource')) === false) {
@@ -39,7 +39,7 @@ public function up(Schema $schema): void
3939
*/
4040
public function down(Schema $schema): void
4141
{
42-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
42+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
4343

4444
if (array_key_exists('typo3_flow_resource_resource', $this->sm->listTableNames()) !== false
4545
&& array_key_exists(strtolower('IDX_35DC14F03332102A'), $this->sm->listTableIndexes('typo3_flow_resource_resource')) !== false) {

Neos.Flow/Migrations/Mysql/Version20180827132710.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getDescription(): string
2626
*/
2727
public function up(Schema $schema): void
2828
{
29-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
29+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
3030

3131
$this->addSql('CREATE INDEX IDX_535A651E772E836ADCCB5599802C8F9D ON neos_flow_mvc_routing_objectpathmapping (identifier, uripattern, pathsegment)');
3232
}
@@ -38,7 +38,7 @@ public function up(Schema $schema): void
3838
*/
3939
public function down(Schema $schema): void
4040
{
41-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
41+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
4242

4343
$this->addSql('DROP INDEX IDX_535A651E772E836ADCCB5599802C8F9D ON neos_flow_mvc_routing_objectpathmapping');
4444
}

Neos.Flow/Migrations/Mysql/Version20200908155620.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function getDescription(): string
2727
*/
2828
public function up(Schema $schema): void
2929
{
30-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
30+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
3131

3232
$this->addSql('ALTER TABLE neos_flow_resourcemanagement_persistentresource DROP md5');
3333
}
@@ -40,7 +40,7 @@ public function up(Schema $schema): void
4040
*/
4141
public function down(Schema $schema): void
4242
{
43-
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on "mysql".');
43+
$this->abortIf(!($this->connection->getDatabasePlatform() instanceof MySQLPlatform), 'Migration can only be executed safely on "mysql".');
4444

4545
$this->addSql('ALTER TABLE neos_flow_resourcemanagement_persistentresource ADD md5 VARCHAR(32) NOT NULL');
4646
}

0 commit comments

Comments
 (0)