From 590282cb495a75436feefd8686e5a21a53c3410b Mon Sep 17 00:00:00 2001 From: Rostislav Vitek Date: Thu, 13 Jun 2024 23:19:11 +0200 Subject: [PATCH] cleanup DB schema - remove outdated indexes and constraints - as suggested by doctrine:schema:update console command --- src/Migrations/Version20240613231000.php | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/Migrations/Version20240613231000.php diff --git a/src/Migrations/Version20240613231000.php b/src/Migrations/Version20240613231000.php new file mode 100644 index 0000000000..0bf737d91d --- /dev/null +++ b/src/Migrations/Version20240613231000.php @@ -0,0 +1,34 @@ +sql('DROP INDEX idx_bf6e22b08b8e8428'); + $this->sql('ALTER TABLE navigation_item_categories DROP CONSTRAINT fk_b2a413d84f43d067'); + $this->sql('ALTER TABLE navigation_item_categories DROP CONSTRAINT fk_b2a413d812469de2'); + $this->sql('ALTER TABLE parameter_translations DROP CONSTRAINT fk_16f42d262c2ac5d3'); + $this->sql('ALTER TABLE unit_translations DROP CONSTRAINT fk_15c4c1de2c2ac5d3'); + $this->sql('ALTER TABLE flag_translations DROP CONSTRAINT fk_23d1ba1a2c2ac5d3'); + $this->sql('ALTER TABLE cart_promo_codes DROP CONSTRAINT fk_5de6e36c1ad5cdbf'); + $this->sql('ALTER TABLE cart_promo_codes DROP CONSTRAINT fk_5de6e36c2fae4625'); + $this->sql('ALTER TABLE delivery_addresses DROP CONSTRAINT fk_2baf3984e76aa954'); + } + + /** + * @param \Doctrine\DBAL\Schema\Schema $schema + */ + public function down(Schema $schema): void + { + } +}