migrations/Version20230731162607.php line 1
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230731162607 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE step_type ADD CONSTRAINT FK_C248CA78D60322AC FOREIGN KEY (role_id) REFERENCES role (id)');
$this->addSql('ALTER TABLE step_type_city ADD CONSTRAINT FK_2769BEF775B10A7C FOREIGN KEY (step_type_id) REFERENCES step_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE step_type_city ADD CONSTRAINT FK_2769BEF78BAC62AF FOREIGN KEY (city_id) REFERENCES city (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE store ADD CONSTRAINT FK_FF5758778BAC62AF FOREIGN KEY (city_id) REFERENCES city (id)');
$this->addSql('ALTER TABLE store ADD CONSTRAINT FK_FF575877A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE store ADD CONSTRAINT FK_FF5758773C721D40 FOREIGN KEY (city_region_id) REFERENCES city_region (id)');
$this->addSql('ALTER TABLE tracking_step ADD CONSTRAINT FK_11966CF97BE036FC FOREIGN KEY (shipment_id) REFERENCES shipment (id)');
$this->addSql('ALTER TABLE tracking_step ADD CONSTRAINT FK_11966CF975B10A7C FOREIGN KEY (step_type_id) REFERENCES step_type (id)');
$this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D1EAFC2947 FOREIGN KEY (cash_box_id) REFERENCES cash_box (id)');
$this->addSql('ALTER TABLE transaction ADD CONSTRAINT FK_723705D14B042A69 FOREIGN KEY (transaction_list_id) REFERENCES transaction_list (id)');
$this->addSql('ALTER TABLE vendor ADD CONSTRAINT FK_F52233F6A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE visit DROP FOREIGN KEY FK_437EE9399395C3F3');
$this->addSql('ALTER TABLE visit DROP FOREIGN KEY FK_437EE939B092A811');
$this->addSql('DROP TABLE visit');
$this->addSql('ALTER TABLE attribut_value DROP FOREIGN KEY FK_BE5BA86C4584665A');
$this->addSql('ALTER TABLE cash_box DROP FOREIGN KEY FK_56F5F25FB092A811');
$this->addSql('ALTER TABLE cash_on_delivery DROP FOREIGN KEY FK_78AC5D187BE036FC');
$this->addSql('ALTER TABLE cash_on_delivery DROP FOREIGN KEY FK_78AC5D18EAFC2947');
$this->addSql('ALTER TABLE cash_on_delivery DROP FOREIGN KEY FK_78AC5D189395C3F3');
$this->addSql('ALTER TABLE cash_on_delivery DROP FOREIGN KEY FK_78AC5D1841D79DD3');
$this->addSql('ALTER TABLE city_region DROP FOREIGN KEY FK_FA2EBF868BAC62AF');
$this->addSql('ALTER TABLE city_region DROP FOREIGN KEY FK_FA2EBF86F603EE73');
$this->addSql('ALTER TABLE complaint DROP FOREIGN KEY FK_5F2732B59395C3F3');
$this->addSql('ALTER TABLE complaint DROP FOREIGN KEY FK_5F2732B54939A23B');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E09D2919A68');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E09A76ED395');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E09F603EE73');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E093C721D40');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E09B092A811');
$this->addSql('ALTER TABLE customer_address DROP FOREIGN KEY FK_1193CB3F9395C3F3');
$this->addSql('ALTER TABLE customer_address DROP FOREIGN KEY FK_1193CB3F8BAC62AF');
$this->addSql('ALTER TABLE customer_address DROP FOREIGN KEY FK_1193CB3FCCF9E01E');
$this->addSql('ALTER TABLE customer_wallet_point DROP FOREIGN KEY FK_C97A56479395C3F3');
$this->addSql('ALTER TABLE customer_wallet_point DROP FOREIGN KEY FK_C97A5647BE2907C8');
$this->addSql('ALTER TABLE customer_wallet_point DROP FOREIGN KEY FK_C97A56479052ABB0');
$this->addSql('ALTER TABLE departement DROP FOREIGN KEY FK_C1765B638BAC62AF');
$this->addSql('ALTER TABLE financial_period DROP FOREIGN KEY FK_6E18427D1202BCCD');
$this->addSql('ALTER TABLE flexy_shop_import_data DROP FOREIGN KEY FK_7A27406EF603EE73');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_906517449395C3F3');
$this->addSql('ALTER TABLE invoice DROP FOREIGN KEY FK_906517445AA1164F');
$this->addSql('ALTER TABLE journal_entry_item DROP FOREIGN KEY FK_265947196A86E4FB');
$this->addSql('ALTER TABLE mission DROP FOREIGN KEY FK_9067F23C2B1C2395');
$this->addSql('ALTER TABLE mission DROP FOREIGN KEY FK_9067F23C34A1A620');
$this->addSql('ALTER TABLE mission DROP FOREIGN KEY FK_9067F23C7BE036FC');
$this->addSql('ALTER TABLE offer DROP FOREIGN KEY FK_29D6873EE4BCF095');
$this->addSql('ALTER TABLE pack_engagement DROP FOREIGN KEY FK_FA0789571919B217');
$this->addSql('ALTER TABLE pack_engagement DROP FOREIGN KEY FK_FA0789579395C3F3');
$this->addSql('ALTER TABLE payment DROP FOREIGN KEY FK_6D28840D5AA1164F');
$this->addSql('ALTER TABLE payment DROP FOREIGN KEY FK_6D28840D2B1C2395');
$this->addSql('ALTER TABLE reservation DROP FOREIGN KEY FK_42C8495553C674EE');
$this->addSql('ALTER TABLE reservation DROP FOREIGN KEY FK_42C849559395C3F3');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC19883967');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DCCB121EE5');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC6DE4646B');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC7614F9A0');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC24509F82');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC935945C1');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DCC807DE4F');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC5F7D6850');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC940A1485');
$this->addSql('ALTER TABLE shipment DROP FOREIGN KEY FK_2CB20DC49EE48A9');
$this->addSql('ALTER TABLE shipment_collect_money DROP FOREIGN KEY FK_40F5516C7BE036FC');
$this->addSql('ALTER TABLE shipment_collect_money DROP FOREIGN KEY FK_40F5516CEAFC2947');
$this->addSql('ALTER TABLE shipment_item DROP FOREIGN KEY FK_1C5734049EE48A9');
$this->addSql('ALTER TABLE shipment_item DROP FOREIGN KEY FK_1C57340940A1485');
$this->addSql('ALTER TABLE shipment_item DROP FOREIGN KEY FK_1C573407BE036FC');
$this->addSql('ALTER TABLE shipment_item DROP FOREIGN KEY FK_1C57340395CC302');
$this->addSql('ALTER TABLE shipment_item_child DROP FOREIGN KEY FK_59F05CC5F9C754FB');
$this->addSql('ALTER TABLE shipment_item_child_tracking_step DROP FOREIGN KEY FK_2CE1D9965A967186');
$this->addSql('ALTER TABLE shipment_item_child_tracking_step DROP FOREIGN KEY FK_2CE1D996C709FA4');
$this->addSql('ALTER TABLE shipment_paper DROP FOREIGN KEY FK_C2D7C2B37BE036FC');
$this->addSql('ALTER TABLE shipment_paper DROP FOREIGN KEY FK_C2D7C2B3EAFC2947');
$this->addSql('ALTER TABLE shipping_calculation_method DROP FOREIGN KEY FK_3968FBEB5F7D6850');
$this->addSql('ALTER TABLE shipping_method DROP FOREIGN KEY FK_7503FF2F39C1775');
$this->addSql('ALTER TABLE shipping_method DROP FOREIGN KEY FK_7503FF2FD2919A68');
$this->addSql('ALTER TABLE shipping_method DROP FOREIGN KEY FK_7503FF2FF96C50C0');
$this->addSql('ALTER TABLE shipping_method DROP FOREIGN KEY FK_7503FF2F99F2E197');
$this->addSql('ALTER TABLE shipping_method_city_region DROP FOREIGN KEY FK_850EE7C25F7D6850');
$this->addSql('ALTER TABLE shipping_method_city_region DROP FOREIGN KEY FK_850EE7C23C721D40');
$this->addSql('ALTER TABLE shipping_rule DROP FOREIGN KEY FK_D7643ACE5F7D6850');
$this->addSql('ALTER TABLE step_type DROP FOREIGN KEY FK_C248CA78D60322AC');
$this->addSql('ALTER TABLE step_type_city DROP FOREIGN KEY FK_2769BEF775B10A7C');
$this->addSql('ALTER TABLE step_type_city DROP FOREIGN KEY FK_2769BEF78BAC62AF');
$this->addSql('ALTER TABLE store DROP FOREIGN KEY FK_FF5758778BAC62AF');
$this->addSql('ALTER TABLE store DROP FOREIGN KEY FK_FF575877A76ED395');
$this->addSql('ALTER TABLE store DROP FOREIGN KEY FK_FF5758773C721D40');
$this->addSql('ALTER TABLE tracking_step DROP FOREIGN KEY FK_11966CF97BE036FC');
$this->addSql('ALTER TABLE tracking_step DROP FOREIGN KEY FK_11966CF975B10A7C');
$this->addSql('ALTER TABLE transaction DROP FOREIGN KEY FK_723705D1EAFC2947');
$this->addSql('ALTER TABLE transaction DROP FOREIGN KEY FK_723705D14B042A69');
$this->addSql('ALTER TABLE vendor DROP FOREIGN KEY FK_F52233F6A76ED395');
}
}