From 99c24dde816ec5d7b320251dc3fdd580e9799799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 30 Sep 2026 13:30:11 +0200 Subject: [PATCH 1/3] IBX-11939: Replaced SqlPlatform with doctrine-schema's DatabasePlatformName ibexa/doctrine-migrations is dropping SqlPlatform in favour of DatabasePlatformName (IBX-12043). --- src/bundle/Migration/InstallSchemaMigration.php | 4 ++-- src/bundle/Migration/RenameSchemaTo5_0Migration.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bundle/Migration/InstallSchemaMigration.php b/src/bundle/Migration/InstallSchemaMigration.php index fcae31e0..e36b49fc 100644 --- a/src/bundle/Migration/InstallSchemaMigration.php +++ b/src/bundle/Migration/InstallSchemaMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ($schema->hasTable('ibexa_user_invitation')) { return; diff --git a/src/bundle/Migration/RenameSchemaTo5_0Migration.php b/src/bundle/Migration/RenameSchemaTo5_0Migration.php index dcd7e6cf..f99bc946 100644 --- a/src/bundle/Migration/RenameSchemaTo5_0Migration.php +++ b/src/bundle/Migration/RenameSchemaTo5_0Migration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class RenameSchemaTo5_0Migration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ($schema->hasTable('ibexa_user_invitation')) { return; From 154365d8163d8d32f3703e2bcd07c2b23771490e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 30 Sep 2026 13:30:12 +0200 Subject: [PATCH 2/3] TEMPORARY: Added dependencies.json to test against ibexa/doctrine-migrations without SqlPlatform Points CI at the IBX-12043-replace-sql-platform-with-database-platform-name-5.0 branch, which removes SqlPlatform, so this PR's tests can run before that change merges. Must be removed before merging. --- dependencies.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dependencies.json diff --git a/dependencies.json b/dependencies.json new file mode 100644 index 00000000..cd5ad014 --- /dev/null +++ b/dependencies.json @@ -0,0 +1,11 @@ +{ + "recipesEndpoint": "", + "packages": [ + { + "requirement": "dev-IBX-12043-replace-sql-platform-with-database-platform-name-5.0 as 5.0.x-dev", + "repositoryUrl": "https://github.com/ibexa/doctrine-migrations.git", + "package": "ibexa/doctrine-migrations", + "shouldBeAddedAsVCS": false + } + ] +} From 31e3048b4ed242476c7560ac0d008a7a5e651321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 30 Sep 2026 14:51:09 +0200 Subject: [PATCH 3/3] Removed temporary dependencies.json --- dependencies.json | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 dependencies.json diff --git a/dependencies.json b/dependencies.json deleted file mode 100644 index cd5ad014..00000000 --- a/dependencies.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "recipesEndpoint": "", - "packages": [ - { - "requirement": "dev-IBX-12043-replace-sql-platform-with-database-platform-name-5.0 as 5.0.x-dev", - "repositoryUrl": "https://github.com/ibexa/doctrine-migrations.git", - "package": "ibexa/doctrine-migrations", - "shouldBeAddedAsVCS": false - } - ] -}