From c485bb5db77f6a6eb2c6c63ad32cd06a90895d62 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:30:12 +0100 Subject: [PATCH] TASK: Followup #4236 remove legacy core migration the package Neos.ContentRepository does not exist in Neos 9 In #4240 we removed all ContentRepository migrations so this is to be removed as well. --- .../Mysql/Version20230430183156.php | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 Neos.ContentRepository/Migrations/Mysql/Version20230430183156.php diff --git a/Neos.ContentRepository/Migrations/Mysql/Version20230430183156.php b/Neos.ContentRepository/Migrations/Mysql/Version20230430183156.php deleted file mode 100644 index 20c16dcad6..0000000000 --- a/Neos.ContentRepository/Migrations/Mysql/Version20230430183156.php +++ /dev/null @@ -1,48 +0,0 @@ -abortIf( - !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MysqlPlatform, - "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MysqlPlatform'." - ); - - $this->skipIf(!$schema->getTable('neos_contentrepository_domain_model_nodedata')->hasIndex('IDX_CE6515692D45FE4D') - && $schema->getTable('neos_contentrepository_domain_model_nodedata')->hasIndex('UNIQ_CE6515692D45FE4D'), - "Skipped index renaming because they are already named properly" - ); - - $this->addSql('ALTER TABLE neos_contentrepository_domain_model_nodedata DROP INDEX IDX_CE6515692D45FE4D, ADD UNIQUE INDEX UNIQ_CE6515692D45FE4D (movedto)'); - } - - public function down(Schema $schema): void - { - $this->abortIf( - !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MysqlPlatform, - "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MysqlPlatform'." - ); - - $this->skipIf($schema->getTable('neos_contentrepository_domain_model_nodedata')->hasIndex('IDX_CE6515692D45FE4D') - && !$schema->getTable('neos_contentrepository_domain_model_nodedata')->hasIndex('UNIQ_CE6515692D45FE4D'), - "Skipped index renaming because they are already named properly" - ); - - $this->addSql('ALTER TABLE neos_contentrepository_domain_model_nodedata DROP INDEX UNIQ_CE6515692D45FE4D, ADD INDEX IDX_CE6515692D45FE4D (movedto)'); - } -}