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)']);