From b66126faf83c205cfab42ca52fe1837e1f7e0456 Mon Sep 17 00:00:00 2001 From: Sebastian Riquelme Date: Tue, 16 Jun 2026 14:10:55 +0000 Subject: [PATCH] fix: replace removed DBAL4 'json_array' type in install migration DBAL 4 (shipped with OroCommerce 7.0 / Symfony 7) removed the 'json_array' column type (deprecated since DBAL 2.6, gone in DBAL 3). The bundle installer still declared serialized_data as 'json_array', so a fresh `oro:install` aborted with "Unknown column type 'json_array' requested" before the synolia_stock_alert table was created. This was invisible to the platform:update path (an existing migrated DB short-circuits getMigrationVersion and never runs the create), so it only surfaces on a from-scratch install (CI / clean environments). Use the native Types::JSON, which is the Oro 7.0 convention for the serialized_data column of extend entities; the stale legacy '(DC2Type:array)' comment and length=0 are dropped accordingly. --- .../Migrations/Schema/SynoliaStockAlertBundleInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Synolia/Bundle/StockAlertBundle/Migrations/Schema/SynoliaStockAlertBundleInstaller.php b/src/Synolia/Bundle/StockAlertBundle/Migrations/Schema/SynoliaStockAlertBundleInstaller.php index fa0bac1..e3d00cc 100644 --- a/src/Synolia/Bundle/StockAlertBundle/Migrations/Schema/SynoliaStockAlertBundleInstaller.php +++ b/src/Synolia/Bundle/StockAlertBundle/Migrations/Schema/SynoliaStockAlertBundleInstaller.php @@ -48,7 +48,7 @@ protected function createSynoliaStockAlertTable(Schema $schema): void ], ] ); - $table->addColumn('serialized_data', 'json_array', ['jsonb' => true, 'notnull' => false, 'length' => 0, 'comment' => '(DC2Type:array)']); + $table->addColumn('serialized_data', Types::JSON, ['notnull' => false]); $table->addColumn('expiration_date', 'datetime', ['notnull' => false, 'length' => 0, 'comment' => '(DC2Type:datetime)']); $table->addColumn('created_at', 'datetime', ['length' => 0, 'comment' => '(DC2Type:datetime)']); $table->addColumn('updated_at', 'datetime', ['length' => 0, 'comment' => '(DC2Type:datetime)']);