|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Auto-generated Migration: Please modify to your needs! |
|
|
* Auto-generated Migration: Please modify to your needs! |
|
|
*/ |
|
|
*/ |
|
|
final class Version20210511094837 extends AbstractMigration |
|
|
|
|
|
|
|
|
final class Version20210604092848 extends AbstractMigration |
|
|
{ |
|
|
{ |
|
|
public function getDescription(): string |
|
|
public function getDescription(): string |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
$this->addSql('CREATE TABLE credit_config (id INT AUTO_INCREMENT NOT NULL, active TINYINT(1) NOT NULL, limit_amount DOUBLE PRECISION DEFAULT NULL, limit_reminder DOUBLE PRECISION DEFAULT NULL, behavior VARCHAR(31) DEFAULT NULL, process_order_checked_default TINYINT(1) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE credit_config (id INT AUTO_INCREMENT NOT NULL, active TINYINT(1) NOT NULL, limit_amount DOUBLE PRECISION DEFAULT NULL, limit_reminder DOUBLE PRECISION DEFAULT NULL, behavior VARCHAR(31) DEFAULT NULL, process_order_checked_default TINYINT(1) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE credit_history (id INT AUTO_INCREMENT NOT NULL, user_merchant_id INT NOT NULL, order_payment_id INT DEFAULT NULL, order_refund_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, amount DOUBLE PRECISION DEFAULT NULL, type VARCHAR(31) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mean_payment VARCHAR(255) DEFAULT NULL, reference LONGTEXT DEFAULT NULL, paid_at DATETIME DEFAULT NULL, comment LONGTEXT DEFAULT NULL, INDEX IDX_1D3E1764CE8D1CC1 (user_merchant_id), UNIQUE INDEX UNIQ_1D3E1764B7195EEE (order_payment_id), UNIQUE INDEX UNIQ_1D3E1764A41F7A2D (order_refund_id), INDEX IDX_1D3E1764B03A8386 (created_by_id), INDEX IDX_1D3E1764896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE credit_history (id INT AUTO_INCREMENT NOT NULL, user_merchant_id INT NOT NULL, order_payment_id INT DEFAULT NULL, order_refund_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, amount DOUBLE PRECISION DEFAULT NULL, type VARCHAR(31) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, mean_payment VARCHAR(255) DEFAULT NULL, reference LONGTEXT DEFAULT NULL, paid_at DATETIME DEFAULT NULL, comment LONGTEXT DEFAULT NULL, INDEX IDX_1D3E1764CE8D1CC1 (user_merchant_id), UNIQUE INDEX UNIQ_1D3E1764B7195EEE (order_payment_id), UNIQUE INDEX UNIQ_1D3E1764A41F7A2D (order_refund_id), INDEX IDX_1D3E1764B03A8386 (created_by_id), INDEX IDX_1D3E1764896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE document (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, merchant_address_id INT NOT NULL, buyer_address_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, type VARCHAR(64) NOT NULL, reference VARCHAR(128) DEFAULT NULL, logo VARCHAR(255) DEFAULT NULL, merchant_address_text LONGTEXT NOT NULL, buyer_address_text LONGTEXT DEFAULT NULL, delivery_address_text LONGTEXT DEFAULT NULL, is_sent TINYINT(1) DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_D8698A766796D554 (merchant_id), INDEX IDX_D8698A7697D868A5 (merchant_address_id), INDEX IDX_D8698A7656E5354 (buyer_address_id), INDEX IDX_D8698A76B03A8386 (created_by_id), INDEX IDX_D8698A76896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE document (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, merchant_address_id INT NOT NULL, buyer_address_id INT DEFAULT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, type VARCHAR(64) NOT NULL, reference VARCHAR(128) DEFAULT NULL, logo VARCHAR(255) DEFAULT NULL, merchant_address_text LONGTEXT NOT NULL, buyer_address_text LONGTEXT DEFAULT NULL, delivery_address_text LONGTEXT DEFAULT NULL, is_sent TINYINT(1) DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_D8698A766796D554 (merchant_id), INDEX IDX_D8698A7697D868A5 (merchant_address_id), INDEX IDX_D8698A7656E5354 (buyer_address_id), INDEX IDX_D8698A76B03A8386 (created_by_id), INDEX IDX_D8698A76896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
$this->addSql('CREATE TABLE file (id INT AUTO_INCREMENT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, path VARCHAR(255) DEFAULT NULL, legend VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, locales_enabled LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', position DOUBLE PRECISION NOT NULL, INDEX IDX_8C9F3610B03A8386 (created_by_id), INDEX IDX_8C9F3610896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE group_user (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_A4C98D396796D554 (merchant_id), INDEX IDX_A4C98D39B03A8386 (created_by_id), INDEX IDX_A4C98D39896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE group_user (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_A4C98D396796D554 (merchant_id), INDEX IDX_A4C98D39B03A8386 (created_by_id), INDEX IDX_A4C98D39896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE merchant (id INT AUTO_INCREMENT NOT NULL, credit_config_id INT DEFAULT NULL, tax_rate_id INT NOT NULL, address_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_74AB25E1E511F091 (credit_config_id), INDEX IDX_74AB25E1FDD13F95 (tax_rate_id), UNIQUE INDEX UNIQ_74AB25E1F5B7AF75 (address_id), INDEX IDX_74AB25E1B03A8386 (created_by_id), INDEX IDX_74AB25E1896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE merchant (id INT AUTO_INCREMENT NOT NULL, credit_config_id INT DEFAULT NULL, tax_rate_id INT NOT NULL, address_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_74AB25E1E511F091 (credit_config_id), INDEX IDX_74AB25E1FDD13F95 (tax_rate_id), UNIQUE INDEX UNIQ_74AB25E1F5B7AF75 (address_id), INDEX IDX_74AB25E1B03A8386 (created_by_id), INDEX IDX_74AB25E1896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE merchant_config (id INT AUTO_INCREMENT NOT NULL, credit_config_id INT DEFAULT NULL, tax_rate_id INT NOT NULL, address_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_3CA56895E511F091 (credit_config_id), INDEX IDX_3CA56895FDD13F95 (tax_rate_id), UNIQUE INDEX UNIQ_3CA56895F5B7AF75 (address_id), INDEX IDX_3CA56895B03A8386 (created_by_id), INDEX IDX_3CA56895896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE merchant_config (id INT AUTO_INCREMENT NOT NULL, credit_config_id INT DEFAULT NULL, tax_rate_id INT NOT NULL, address_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_3CA56895E511F091 (credit_config_id), INDEX IDX_3CA56895FDD13F95 (tax_rate_id), UNIQUE INDEX UNIQ_3CA56895F5B7AF75 (address_id), INDEX IDX_3CA56895B03A8386 (created_by_id), INDEX IDX_3CA56895896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
|
|
|
$this->addSql('CREATE TABLE order_status (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, alias VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE order_status (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, alias VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE order_status_order_status_interface (order_status_id INT NOT NULL, order_status_interface_id INT NOT NULL, INDEX IDX_31CB58CAD7707B45 (order_status_id), INDEX IDX_31CB58CAAEF3C90F (order_status_interface_id), PRIMARY KEY(order_status_id, order_status_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE order_status_order_status_interface (order_status_id INT NOT NULL, order_status_interface_id INT NOT NULL, INDEX IDX_31CB58CAD7707B45 (order_status_id), INDEX IDX_31CB58CAAEF3C90F (order_status_interface_id), PRIMARY KEY(order_status_id, order_status_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE order_status_history (id INT AUTO_INCREMENT NOT NULL, order_shop_id INT NOT NULL, order_status_id INT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, origin VARCHAR(31) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_471AD77EBB6C6D96 (order_shop_id), INDEX IDX_471AD77ED7707B45 (order_status_id), INDEX IDX_471AD77EB03A8386 (created_by_id), INDEX IDX_471AD77E896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE order_status_history (id INT AUTO_INCREMENT NOT NULL, order_shop_id INT NOT NULL, order_status_id INT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, origin VARCHAR(31) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_471AD77EBB6C6D96 (order_shop_id), INDEX IDX_471AD77ED7707B45 (order_status_id), INDEX IDX_471AD77EB03A8386 (created_by_id), INDEX IDX_471AD77E896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
$this->addSql('CREATE TABLE page (id INT AUTO_INCREMENT NOT NULL, image_id INT DEFAULT NULL, merchant_id INT NOT NULL, section_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, content LONGTEXT DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_140AB6203DA5256D (image_id), INDEX IDX_140AB6206796D554 (merchant_id), INDEX IDX_140AB620D823E37A (section_id), INDEX IDX_140AB620B03A8386 (created_by_id), INDEX IDX_140AB620896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
$this->addSql('CREATE TABLE page_file (page_id INT NOT NULL, file_id INT NOT NULL, INDEX IDX_B5B2ACAC4663E4 (page_id), INDEX IDX_B5B2ACA93CB796C (file_id), PRIMARY KEY(page_id, file_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE point_sale (id INT AUTO_INCREMENT NOT NULL, address_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, code VARCHAR(63) DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, order_amount_min DOUBLE PRECISION NOT NULL, UNIQUE INDEX UNIQ_6CCB2767F5B7AF75 (address_id), INDEX IDX_6CCB2767B03A8386 (created_by_id), INDEX IDX_6CCB2767896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE point_sale (id INT AUTO_INCREMENT NOT NULL, address_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, code VARCHAR(63) DEFAULT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, order_amount_min DOUBLE PRECISION NOT NULL, UNIQUE INDEX UNIQ_6CCB2767F5B7AF75 (address_id), INDEX IDX_6CCB2767B03A8386 (created_by_id), INDEX IDX_6CCB2767896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE point_sale_merchant_interface (point_sale_id INT NOT NULL, merchant_interface_id INT NOT NULL, INDEX IDX_7711E325FDAAB1A4 (point_sale_id), INDEX IDX_7711E3252F3319E1 (merchant_interface_id), PRIMARY KEY(point_sale_id, merchant_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE point_sale_merchant_interface (point_sale_id INT NOT NULL, merchant_interface_id INT NOT NULL, INDEX IDX_7711E325FDAAB1A4 (point_sale_id), INDEX IDX_7711E3252F3319E1 (merchant_interface_id), PRIMARY KEY(point_sale_id, merchant_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE point_sale_day_info (id INT AUTO_INCREMENT NOT NULL, point_sale_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, active TINYINT(1) NOT NULL, day SMALLINT NOT NULL, description LONGTEXT DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_34BC1A33FDAAB1A4 (point_sale_id), INDEX IDX_34BC1A33B03A8386 (created_by_id), INDEX IDX_34BC1A33896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE point_sale_day_info (id INT AUTO_INCREMENT NOT NULL, point_sale_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, active TINYINT(1) NOT NULL, day SMALLINT NOT NULL, description LONGTEXT DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_34BC1A33FDAAB1A4 (point_sale_id), INDEX IDX_34BC1A33B03A8386 (created_by_id), INDEX IDX_34BC1A33896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
|
|
|
$this->addSql('CREATE TABLE reduction_credit_user_interface (reduction_credit_id INT NOT NULL, user_interface_id INT NOT NULL, INDEX IDX_1E04D3826103B276 (reduction_credit_id), INDEX IDX_1E04D3822BC79580 (user_interface_id), PRIMARY KEY(reduction_credit_id, user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE reduction_credit_user_interface (reduction_credit_id INT NOT NULL, user_interface_id INT NOT NULL, INDEX IDX_1E04D3826103B276 (reduction_credit_id), INDEX IDX_1E04D3822BC79580 (user_interface_id), PRIMARY KEY(reduction_credit_id, user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE reminder (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, entity_name VARCHAR(255) DEFAULT NULL, entity_id INT DEFAULT NULL, entity_action VARCHAR(255) DEFAULT NULL, date_reminder DATE DEFAULT NULL, done TINYINT(1) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_40374F406796D554 (merchant_id), INDEX IDX_40374F40B03A8386 (created_by_id), INDEX IDX_40374F40896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE reminder (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, entity_name VARCHAR(255) DEFAULT NULL, entity_id INT DEFAULT NULL, entity_action VARCHAR(255) DEFAULT NULL, date_reminder DATE DEFAULT NULL, done TINYINT(1) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_40374F406796D554 (merchant_id), INDEX IDX_40374F40B03A8386 (created_by_id), INDEX IDX_40374F40896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE reminder_user_interface (reminder_id INT NOT NULL, user_interface_id INT NOT NULL, INDEX IDX_7FD2584BD987BE75 (reminder_id), INDEX IDX_7FD2584B2BC79580 (user_interface_id), PRIMARY KEY(reminder_id, user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE reminder_user_interface (reminder_id INT NOT NULL, user_interface_id INT NOT NULL, INDEX IDX_7FD2584BD987BE75 (reminder_id), INDEX IDX_7FD2584B2BC79580 (user_interface_id), PRIMARY KEY(reminder_id, user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE section (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, cycle VARCHAR(32) NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_2D737AEF6796D554 (merchant_id), INDEX IDX_2D737AEFB03A8386 (created_by_id), INDEX IDX_2D737AEF896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
|
|
|
$this->addSql('CREATE TABLE section (id INT AUTO_INCREMENT NOT NULL, merchant_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, cycle VARCHAR(32) NOT NULL, is_default TINYINT(1) DEFAULT NULL, color VARCHAR(32) NOT NULL, title VARCHAR(255) NOT NULL, description LONGTEXT DEFAULT NULL, meta_title VARCHAR(255) DEFAULT NULL, meta_description LONGTEXT DEFAULT NULL, old_urls LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', slug VARCHAR(255) NOT NULL, position DOUBLE PRECISION NOT NULL, status DOUBLE PRECISION NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, INDEX IDX_2D737AEF6796D554 (merchant_id), INDEX IDX_2D737AEFB03A8386 (created_by_id), INDEX IDX_2D737AEF896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE tax_rate (id INT AUTO_INCREMENT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, value DOUBLE PRECISION NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_C36330C1B03A8386 (created_by_id), INDEX IDX_C36330C1896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE tax_rate (id INT AUTO_INCREMENT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, title VARCHAR(255) NOT NULL, value DOUBLE PRECISION NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_C36330C1B03A8386 (created_by_id), INDEX IDX_C36330C1896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE ticket (id INT AUTO_INCREMENT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, merchant_id INT NOT NULL, order_shop_id INT DEFAULT NULL, user_id INT DEFAULT NULL, type VARCHAR(32) NOT NULL, status VARCHAR(32) NOT NULL, subject VARCHAR(255) NOT NULL, tags LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', visitor_firstname VARCHAR(64) DEFAULT NULL, visitor_lastname VARCHAR(64) DEFAULT NULL, visitor_email VARCHAR(128) DEFAULT NULL, visitor_token VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_97A0ADA3B03A8386 (created_by_id), INDEX IDX_97A0ADA3896DBBDE (updated_by_id), INDEX IDX_97A0ADA36796D554 (merchant_id), INDEX IDX_97A0ADA3BB6C6D96 (order_shop_id), INDEX IDX_97A0ADA3A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE ticket (id INT AUTO_INCREMENT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, merchant_id INT NOT NULL, order_shop_id INT DEFAULT NULL, user_id INT DEFAULT NULL, type VARCHAR(32) NOT NULL, status VARCHAR(32) NOT NULL, subject VARCHAR(255) NOT NULL, tags LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', visitor_firstname VARCHAR(64) DEFAULT NULL, visitor_lastname VARCHAR(64) DEFAULT NULL, visitor_email VARCHAR(128) DEFAULT NULL, visitor_token VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_97A0ADA3B03A8386 (created_by_id), INDEX IDX_97A0ADA3896DBBDE (updated_by_id), INDEX IDX_97A0ADA36796D554 (merchant_id), INDEX IDX_97A0ADA3BB6C6D96 (order_shop_id), INDEX IDX_97A0ADA3A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE ticket_message (id INT AUTO_INCREMENT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, ticket_id INT NOT NULL, message LONGTEXT NOT NULL, answer_by_admin TINYINT(1) DEFAULT NULL, image_filename VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_BA71692DB03A8386 (created_by_id), INDEX IDX_BA71692D896DBBDE (updated_by_id), INDEX IDX_BA71692D700047D2 (ticket_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE ticket_message (id INT AUTO_INCREMENT NOT NULL, created_by_id INT DEFAULT NULL, updated_by_id INT DEFAULT NULL, ticket_id INT NOT NULL, message LONGTEXT NOT NULL, answer_by_admin TINYINT(1) DEFAULT NULL, image_filename VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_BA71692DB03A8386 (created_by_id), INDEX IDX_BA71692D896DBBDE (updated_by_id), INDEX IDX_BA71692D700047D2 (ticket_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE unit (id INT AUTO_INCREMENT NOT NULL, unit_reference_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, unit VARCHAR(32) NOT NULL, wording VARCHAR(32) NOT NULL, wording_unit VARCHAR(32) NOT NULL, wording_short VARCHAR(32) NOT NULL, coefficient INT NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_DCBB0C53C4D33C3E (unit_reference_id), INDEX IDX_DCBB0C53B03A8386 (created_by_id), INDEX IDX_DCBB0C53896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE unit (id INT AUTO_INCREMENT NOT NULL, unit_reference_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, unit VARCHAR(32) NOT NULL, wording VARCHAR(32) NOT NULL, wording_unit VARCHAR(32) NOT NULL, wording_short VARCHAR(32) NOT NULL, coefficient INT NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_DCBB0C53C4D33C3E (unit_reference_id), INDEX IDX_DCBB0C53B03A8386 (created_by_id), INDEX IDX_DCBB0C53896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, favorite_merchant_id INT DEFAULT NULL, phone VARCHAR(20) DEFAULT NULL, behavior_display_price VARCHAR(64) DEFAULT NULL, firstname VARCHAR(64) DEFAULT NULL, lastname VARCHAR(64) DEFAULT NULL, gender TINYINT(1) DEFAULT NULL, ticket_types_notification LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', email VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, is_verified TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), INDEX IDX_8D93D649A4849017 (favorite_merchant_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_newsletter_interface (user_id INT NOT NULL, newsletter_interface_id INT NOT NULL, INDEX IDX_276FB522A76ED395 (user_id), INDEX IDX_276FB522A0E6D8FC (newsletter_interface_id), PRIMARY KEY(user_id, newsletter_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_newsletter_interface (user_id INT NOT NULL, newsletter_interface_id INT NOT NULL, INDEX IDX_276FB522A76ED395 (user_id), INDEX IDX_276FB522A0E6D8FC (newsletter_interface_id), PRIMARY KEY(user_id, newsletter_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_group_user_interface (user_id INT NOT NULL, group_user_interface_id INT NOT NULL, INDEX IDX_12B87B34A76ED395 (user_id), INDEX IDX_12B87B34F583BABC (group_user_interface_id), PRIMARY KEY(user_id, group_user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_group_user_interface (user_id INT NOT NULL, group_user_interface_id INT NOT NULL, INDEX IDX_12B87B34A76ED395 (user_id), INDEX IDX_12B87B34F583BABC (group_user_interface_id), PRIMARY KEY(user_id, group_user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_product_family_interface (user_id INT NOT NULL, product_family_interface_id INT NOT NULL, INDEX IDX_6F63A287A76ED395 (user_id), INDEX IDX_6F63A2874537D78D (product_family_interface_id), PRIMARY KEY(user_id, product_family_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_product_family_interface (user_id INT NOT NULL, product_family_interface_id INT NOT NULL, INDEX IDX_6F63A287A76ED395 (user_id), INDEX IDX_6F63A2874537D78D (product_family_interface_id), PRIMARY KEY(user_id, product_family_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_merchant (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, merchant_id INT NOT NULL, credit DOUBLE PRECISION DEFAULT NULL, credit_active TINYINT(1) NOT NULL, active TINYINT(1) NOT NULL, INDEX IDX_9426C1E1A76ED395 (user_id), INDEX IDX_9426C1E16796D554 (merchant_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
|
|
|
|
|
|
$this->addSql('CREATE TABLE user_merchant (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, merchant_id INT NOT NULL, current_admin_section_id INT DEFAULT NULL, credit DOUBLE PRECISION DEFAULT NULL, credit_active TINYINT(1) NOT NULL, active TINYINT(1) NOT NULL, INDEX IDX_9426C1E1A76ED395 (user_id), INDEX IDX_9426C1E16796D554 (merchant_id), INDEX IDX_9426C1E1FE54D809 (current_admin_section_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_point_sale (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, point_sale_id INT NOT NULL, comment LONGTEXT DEFAULT NULL, INDEX IDX_CBACE18BA76ED395 (user_id), INDEX IDX_CBACE18BFDAAB1A4 (point_sale_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE user_point_sale (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, point_sale_id INT NOT NULL, comment LONGTEXT DEFAULT NULL, INDEX IDX_CBACE18BA76ED395 (user_id), INDEX IDX_CBACE18BFDAAB1A4 (point_sale_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE visitor (id INT AUTO_INCREMENT NOT NULL, cookie VARCHAR(255) NOT NULL, last_access DATETIME NOT NULL, ip VARCHAR(255) NOT NULL, total_visit INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('CREATE TABLE visitor (id INT AUTO_INCREMENT NOT NULL, cookie VARCHAR(255) NOT NULL, last_access DATETIME NOT NULL, ip VARCHAR(255) NOT NULL, total_visit INT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); |
|
|
$this->addSql('ALTER TABLE address ADD CONSTRAINT FK_D4E6F81A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE address ADD CONSTRAINT FK_D4E6F81A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A7656E5354 FOREIGN KEY (buyer_address_id) REFERENCES address (id)'); |
|
|
$this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A7656E5354 FOREIGN KEY (buyer_address_id) REFERENCES address (id)'); |
|
|
$this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A76B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A76B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A76896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE document ADD CONSTRAINT FK_D8698A76896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE file ADD CONSTRAINT FK_8C9F3610B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE file ADD CONSTRAINT FK_8C9F3610896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D396796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)'); |
|
|
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D396796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)'); |
|
|
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE group_user ADD CONSTRAINT FK_A4C98D39896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE order_status_history ADD CONSTRAINT FK_471AD77ED7707B45 FOREIGN KEY (order_status_id) REFERENCES order_status (id)'); |
|
|
$this->addSql('ALTER TABLE order_status_history ADD CONSTRAINT FK_471AD77ED7707B45 FOREIGN KEY (order_status_id) REFERENCES order_status (id)'); |
|
|
$this->addSql('ALTER TABLE order_status_history ADD CONSTRAINT FK_471AD77EB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE order_status_history ADD CONSTRAINT FK_471AD77EB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE order_status_history ADD CONSTRAINT FK_471AD77E896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE order_status_history ADD CONSTRAINT FK_471AD77E896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB6203DA5256D FOREIGN KEY (image_id) REFERENCES file (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB6206796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620D823E37A FOREIGN KEY (section_id) REFERENCES section (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page ADD CONSTRAINT FK_140AB620896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page_file ADD CONSTRAINT FK_B5B2ACAC4663E4 FOREIGN KEY (page_id) REFERENCES page (id) ON DELETE CASCADE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page_file ADD CONSTRAINT FK_B5B2ACA93CB796C FOREIGN KEY (file_id) REFERENCES file (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE point_sale ADD CONSTRAINT FK_6CCB2767F5B7AF75 FOREIGN KEY (address_id) REFERENCES address (id)'); |
|
|
$this->addSql('ALTER TABLE point_sale ADD CONSTRAINT FK_6CCB2767F5B7AF75 FOREIGN KEY (address_id) REFERENCES address (id)'); |
|
|
$this->addSql('ALTER TABLE point_sale ADD CONSTRAINT FK_6CCB2767B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE point_sale ADD CONSTRAINT FK_6CCB2767B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE point_sale ADD CONSTRAINT FK_6CCB2767896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE point_sale ADD CONSTRAINT FK_6CCB2767896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE unit ADD CONSTRAINT FK_DCBB0C53C4D33C3E FOREIGN KEY (unit_reference_id) REFERENCES unit (id)'); |
|
|
$this->addSql('ALTER TABLE unit ADD CONSTRAINT FK_DCBB0C53C4D33C3E FOREIGN KEY (unit_reference_id) REFERENCES unit (id)'); |
|
|
$this->addSql('ALTER TABLE unit ADD CONSTRAINT FK_DCBB0C53B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE unit ADD CONSTRAINT FK_DCBB0C53B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE unit ADD CONSTRAINT FK_DCBB0C53896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE unit ADD CONSTRAINT FK_DCBB0C53896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D649A4849017 FOREIGN KEY (favorite_merchant_id) REFERENCES merchant (id)'); |
|
|
$this->addSql('ALTER TABLE user_newsletter_interface ADD CONSTRAINT FK_276FB522A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_newsletter_interface ADD CONSTRAINT FK_276FB522A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_newsletter_interface ADD CONSTRAINT FK_276FB522A0E6D8FC FOREIGN KEY (newsletter_interface_id) REFERENCES newsletter (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_newsletter_interface ADD CONSTRAINT FK_276FB522A0E6D8FC FOREIGN KEY (newsletter_interface_id) REFERENCES newsletter (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_group_user_interface ADD CONSTRAINT FK_12B87B34A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_group_user_interface ADD CONSTRAINT FK_12B87B34A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE user_product_family_interface ADD CONSTRAINT FK_6F63A2874537D78D FOREIGN KEY (product_family_interface_id) REFERENCES product_family (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_product_family_interface ADD CONSTRAINT FK_6F63A2874537D78D FOREIGN KEY (product_family_interface_id) REFERENCES product_family (id) ON DELETE CASCADE'); |
|
|
$this->addSql('ALTER TABLE user_merchant ADD CONSTRAINT FK_9426C1E1A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE user_merchant ADD CONSTRAINT FK_9426C1E1A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE user_merchant ADD CONSTRAINT FK_9426C1E16796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)'); |
|
|
$this->addSql('ALTER TABLE user_merchant ADD CONSTRAINT FK_9426C1E16796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_merchant ADD CONSTRAINT FK_9426C1E1FE54D809 FOREIGN KEY (current_admin_section_id) REFERENCES section (id)'); |
|
|
$this->addSql('ALTER TABLE user_point_sale ADD CONSTRAINT FK_CBACE18BA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE user_point_sale ADD CONSTRAINT FK_CBACE18BA76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); |
|
|
$this->addSql('ALTER TABLE user_point_sale ADD CONSTRAINT FK_CBACE18BFDAAB1A4 FOREIGN KEY (point_sale_id) REFERENCES point_sale (id)'); |
|
|
$this->addSql('ALTER TABLE user_point_sale ADD CONSTRAINT FK_CBACE18BFDAAB1A4 FOREIGN KEY (point_sale_id) REFERENCES point_sale (id)'); |
|
|
$this->addSql('DROP TABLE lc_translations_entity'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page DROP locales_enabled'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user ADD merchant_id INT DEFAULT NULL, ADD phone VARCHAR(20) DEFAULT NULL, ADD behavior_display_price VARCHAR(64) DEFAULT NULL, ADD gender TINYINT(1) DEFAULT NULL, ADD ticket_types_notification LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', CHANGE lastname lastname VARCHAR(64) DEFAULT NULL, CHANGE firstname firstname VARCHAR(64) DEFAULT NULL'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user ADD CONSTRAINT FK_8D93D6496796D554 FOREIGN KEY (merchant_id) REFERENCES merchant (id)'); |
|
|
|
|
|
$this->addSql('CREATE INDEX IDX_8D93D6496796D554 ON user (merchant_id)'); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function down(Schema $schema): void |
|
|
public function down(Schema $schema): void |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE merchant_config DROP FOREIGN KEY FK_3CA56895E511F091'); |
|
|
$this->addSql('ALTER TABLE merchant_config DROP FOREIGN KEY FK_3CA56895E511F091'); |
|
|
$this->addSql('ALTER TABLE order_refund DROP FOREIGN KEY FK_98A3048DC33F7837'); |
|
|
$this->addSql('ALTER TABLE order_refund DROP FOREIGN KEY FK_98A3048DC33F7837'); |
|
|
$this->addSql('ALTER TABLE order_shop_document_interface DROP FOREIGN KEY FK_3C004E66EEC8F3'); |
|
|
$this->addSql('ALTER TABLE order_shop_document_interface DROP FOREIGN KEY FK_3C004E66EEC8F3'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB6203DA5256D'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page_file DROP FOREIGN KEY FK_B5B2ACA93CB796C'); |
|
|
$this->addSql('ALTER TABLE reduction_cart_group_user_interface DROP FOREIGN KEY FK_16258520F583BABC'); |
|
|
$this->addSql('ALTER TABLE reduction_cart_group_user_interface DROP FOREIGN KEY FK_16258520F583BABC'); |
|
|
$this->addSql('ALTER TABLE reduction_catalog_group_user_interface DROP FOREIGN KEY FK_32F80FA3F583BABC'); |
|
|
$this->addSql('ALTER TABLE reduction_catalog_group_user_interface DROP FOREIGN KEY FK_32F80FA3F583BABC'); |
|
|
$this->addSql('ALTER TABLE user_group_user_interface DROP FOREIGN KEY FK_12B87B34F583BABC'); |
|
|
$this->addSql('ALTER TABLE user_group_user_interface DROP FOREIGN KEY FK_12B87B34F583BABC'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE news DROP FOREIGN KEY FK_1DD399506796D554'); |
|
|
$this->addSql('ALTER TABLE news DROP FOREIGN KEY FK_1DD399506796D554'); |
|
|
$this->addSql('ALTER TABLE newsletter DROP FOREIGN KEY FK_7E8585C86796D554'); |
|
|
$this->addSql('ALTER TABLE newsletter DROP FOREIGN KEY FK_7E8585C86796D554'); |
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B56796D554'); |
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B56796D554'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB6206796D554'); |
|
|
$this->addSql('ALTER TABLE point_sale_merchant_interface DROP FOREIGN KEY FK_7711E3252F3319E1'); |
|
|
$this->addSql('ALTER TABLE point_sale_merchant_interface DROP FOREIGN KEY FK_7711E3252F3319E1'); |
|
|
$this->addSql('ALTER TABLE product_category DROP FOREIGN KEY FK_CDFC73566796D554'); |
|
|
$this->addSql('ALTER TABLE product_category DROP FOREIGN KEY FK_CDFC73566796D554'); |
|
|
$this->addSql('ALTER TABLE product_family DROP FOREIGN KEY FK_C79A60FF6796D554'); |
|
|
$this->addSql('ALTER TABLE product_family DROP FOREIGN KEY FK_C79A60FF6796D554'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F406796D554'); |
|
|
$this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F406796D554'); |
|
|
$this->addSql('ALTER TABLE section DROP FOREIGN KEY FK_2D737AEF6796D554'); |
|
|
$this->addSql('ALTER TABLE section DROP FOREIGN KEY FK_2D737AEF6796D554'); |
|
|
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA36796D554'); |
|
|
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA36796D554'); |
|
|
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D6496796D554'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE user DROP FOREIGN KEY FK_8D93D649A4849017'); |
|
|
$this->addSql('ALTER TABLE user_merchant DROP FOREIGN KEY FK_9426C1E16796D554'); |
|
|
$this->addSql('ALTER TABLE user_merchant DROP FOREIGN KEY FK_9426C1E16796D554'); |
|
|
$this->addSql('ALTER TABLE user_newsletter_interface DROP FOREIGN KEY FK_276FB522A0E6D8FC'); |
|
|
$this->addSql('ALTER TABLE user_newsletter_interface DROP FOREIGN KEY FK_276FB522A0E6D8FC'); |
|
|
$this->addSql('ALTER TABLE credit_history DROP FOREIGN KEY FK_1D3E1764B7195EEE'); |
|
|
$this->addSql('ALTER TABLE credit_history DROP FOREIGN KEY FK_1D3E1764B7195EEE'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE order_status_order_status_interface DROP FOREIGN KEY FK_31CB58CAD7707B45'); |
|
|
$this->addSql('ALTER TABLE order_status_order_status_interface DROP FOREIGN KEY FK_31CB58CAD7707B45'); |
|
|
$this->addSql('ALTER TABLE order_status_order_status_interface DROP FOREIGN KEY FK_31CB58CAAEF3C90F'); |
|
|
$this->addSql('ALTER TABLE order_status_order_status_interface DROP FOREIGN KEY FK_31CB58CAAEF3C90F'); |
|
|
$this->addSql('ALTER TABLE order_status_history DROP FOREIGN KEY FK_471AD77ED7707B45'); |
|
|
$this->addSql('ALTER TABLE order_status_history DROP FOREIGN KEY FK_471AD77ED7707B45'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page_file DROP FOREIGN KEY FK_B5B2ACAC4663E4'); |
|
|
$this->addSql('ALTER TABLE point_sale_merchant_interface DROP FOREIGN KEY FK_7711E325FDAAB1A4'); |
|
|
$this->addSql('ALTER TABLE point_sale_merchant_interface DROP FOREIGN KEY FK_7711E325FDAAB1A4'); |
|
|
$this->addSql('ALTER TABLE point_sale_day_info DROP FOREIGN KEY FK_34BC1A33FDAAB1A4'); |
|
|
$this->addSql('ALTER TABLE point_sale_day_info DROP FOREIGN KEY FK_34BC1A33FDAAB1A4'); |
|
|
$this->addSql('ALTER TABLE reduction_cart_point_sale_interface DROP FOREIGN KEY FK_7DA5ED38A72A2A90'); |
|
|
$this->addSql('ALTER TABLE reduction_cart_point_sale_interface DROP FOREIGN KEY FK_7DA5ED38A72A2A90'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_credit_user_interface DROP FOREIGN KEY FK_1E04D3826103B276'); |
|
|
$this->addSql('ALTER TABLE reduction_credit_user_interface DROP FOREIGN KEY FK_1E04D3826103B276'); |
|
|
$this->addSql('ALTER TABLE reminder_user_interface DROP FOREIGN KEY FK_7FD2584BD987BE75'); |
|
|
$this->addSql('ALTER TABLE reminder_user_interface DROP FOREIGN KEY FK_7FD2584BD987BE75'); |
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B5D823E37A'); |
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B5D823E37A'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB620D823E37A'); |
|
|
$this->addSql('ALTER TABLE product_category DROP FOREIGN KEY FK_CDFC7356D823E37A'); |
|
|
$this->addSql('ALTER TABLE product_category DROP FOREIGN KEY FK_CDFC7356D823E37A'); |
|
|
$this->addSql('ALTER TABLE product_family_section_interface DROP FOREIGN KEY FK_2991468D6BA77450'); |
|
|
$this->addSql('ALTER TABLE product_family_section_interface DROP FOREIGN KEY FK_2991468D6BA77450'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_merchant DROP FOREIGN KEY FK_9426C1E1FE54D809'); |
|
|
$this->addSql('ALTER TABLE merchant DROP FOREIGN KEY FK_74AB25E1FDD13F95'); |
|
|
$this->addSql('ALTER TABLE merchant DROP FOREIGN KEY FK_74AB25E1FDD13F95'); |
|
|
$this->addSql('ALTER TABLE merchant_config DROP FOREIGN KEY FK_3CA56895FDD13F95'); |
|
|
$this->addSql('ALTER TABLE merchant_config DROP FOREIGN KEY FK_3CA56895FDD13F95'); |
|
|
$this->addSql('ALTER TABLE order_product DROP FOREIGN KEY FK_2530ADE6FDD13F95'); |
|
|
$this->addSql('ALTER TABLE order_product DROP FOREIGN KEY FK_2530ADE6FDD13F95'); |
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04ADF8BD700D'); |
|
|
$this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04ADF8BD700D'); |
|
|
$this->addSql('ALTER TABLE product_family DROP FOREIGN KEY FK_C79A60FFF8BD700D'); |
|
|
$this->addSql('ALTER TABLE product_family DROP FOREIGN KEY FK_C79A60FFF8BD700D'); |
|
|
$this->addSql('ALTER TABLE unit DROP FOREIGN KEY FK_DCBB0C53C4D33C3E'); |
|
|
$this->addSql('ALTER TABLE unit DROP FOREIGN KEY FK_DCBB0C53C4D33C3E'); |
|
|
|
|
|
$this->addSql('ALTER TABLE address DROP FOREIGN KEY FK_D4E6F81A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE address DROP FOREIGN KEY FK_D4E6F81B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE address DROP FOREIGN KEY FK_D4E6F81896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE credit_history DROP FOREIGN KEY FK_1D3E1764B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE credit_history DROP FOREIGN KEY FK_1D3E1764896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE document DROP FOREIGN KEY FK_D8698A76B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE document DROP FOREIGN KEY FK_D8698A76896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE file DROP FOREIGN KEY FK_8C9F3610B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE file DROP FOREIGN KEY FK_8C9F3610896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE group_user DROP FOREIGN KEY FK_A4C98D39B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE group_user DROP FOREIGN KEY FK_A4C98D39896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE merchant DROP FOREIGN KEY FK_74AB25E1B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE merchant DROP FOREIGN KEY FK_74AB25E1896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE merchant_config DROP FOREIGN KEY FK_3CA56895B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE merchant_config DROP FOREIGN KEY FK_3CA56895896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE news DROP FOREIGN KEY FK_1DD39950B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE news DROP FOREIGN KEY FK_1DD39950896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE newsletter DROP FOREIGN KEY FK_7E8585C8B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE newsletter DROP FOREIGN KEY FK_7E8585C8896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_payment DROP FOREIGN KEY FK_9B522D46B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_payment DROP FOREIGN KEY FK_9B522D46896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_refund DROP FOREIGN KEY FK_98A3048DB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_refund DROP FOREIGN KEY FK_98A3048D896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B5A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B5B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B5896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_status_history DROP FOREIGN KEY FK_471AD77EB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE order_status_history DROP FOREIGN KEY FK_471AD77E896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB620B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE page DROP FOREIGN KEY FK_140AB620896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE point_sale DROP FOREIGN KEY FK_6CCB2767B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE point_sale DROP FOREIGN KEY FK_6CCB2767896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE point_sale_day_info DROP FOREIGN KEY FK_34BC1A33B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE point_sale_day_info DROP FOREIGN KEY FK_34BC1A33896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04ADB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE product DROP FOREIGN KEY FK_D34A04AD896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE product_category DROP FOREIGN KEY FK_CDFC7356B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE product_category DROP FOREIGN KEY FK_CDFC7356896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE product_family DROP FOREIGN KEY FK_C79A60FFB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE product_family DROP FOREIGN KEY FK_C79A60FF896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_cart DROP FOREIGN KEY FK_EAD80509B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_cart DROP FOREIGN KEY FK_EAD80509896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_cart_user_interface DROP FOREIGN KEY FK_4BFD6F362BC79580'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_catalog DROP FOREIGN KEY FK_9D16AF0EB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_catalog DROP FOREIGN KEY FK_9D16AF0E896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_catalog_user_interface DROP FOREIGN KEY FK_FB0FFDFA2BC79580'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_credit DROP FOREIGN KEY FK_F58EF32E7E3C61F9'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_credit DROP FOREIGN KEY FK_F58EF32EB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_credit DROP FOREIGN KEY FK_F58EF32E896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reduction_credit_user_interface DROP FOREIGN KEY FK_1E04D3822BC79580'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F40B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F40896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE reminder_user_interface DROP FOREIGN KEY FK_7FD2584B2BC79580'); |
|
|
|
|
|
$this->addSql('ALTER TABLE section DROP FOREIGN KEY FK_2D737AEFB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE section DROP FOREIGN KEY FK_2D737AEF896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE tax_rate DROP FOREIGN KEY FK_C36330C1B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE tax_rate DROP FOREIGN KEY FK_C36330C1896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692DB03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692D896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE unit DROP FOREIGN KEY FK_DCBB0C53B03A8386'); |
|
|
|
|
|
$this->addSql('ALTER TABLE unit DROP FOREIGN KEY FK_DCBB0C53896DBBDE'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_newsletter_interface DROP FOREIGN KEY FK_276FB522A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_group_user_interface DROP FOREIGN KEY FK_12B87B34A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_product_family_interface DROP FOREIGN KEY FK_6F63A287A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_merchant DROP FOREIGN KEY FK_9426C1E1A76ED395'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user_point_sale DROP FOREIGN KEY FK_CBACE18BA76ED395'); |
|
|
$this->addSql('ALTER TABLE credit_history DROP FOREIGN KEY FK_1D3E1764CE8D1CC1'); |
|
|
$this->addSql('ALTER TABLE credit_history DROP FOREIGN KEY FK_1D3E1764CE8D1CC1'); |
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B570BEE6D'); |
|
|
$this->addSql('ALTER TABLE order_shop DROP FOREIGN KEY FK_E19B76B570BEE6D'); |
|
|
$this->addSql('CREATE TABLE lc_translations_entity (id INT AUTO_INCREMENT NOT NULL, locale VARCHAR(8) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, object_class VARCHAR(191) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, field VARCHAR(32) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, foreign_key VARCHAR(64) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, content LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX entity_translation_idx (locale, object_class, field, foreign_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB COMMENT = \'\' '); |
|
|
|
|
|
$this->addSql('DROP TABLE address'); |
|
|
$this->addSql('DROP TABLE address'); |
|
|
$this->addSql('DROP TABLE credit_config'); |
|
|
$this->addSql('DROP TABLE credit_config'); |
|
|
$this->addSql('DROP TABLE credit_history'); |
|
|
$this->addSql('DROP TABLE credit_history'); |
|
|
$this->addSql('DROP TABLE document'); |
|
|
$this->addSql('DROP TABLE document'); |
|
|
|
|
|
$this->addSql('DROP TABLE file'); |
|
|
$this->addSql('DROP TABLE group_user'); |
|
|
$this->addSql('DROP TABLE group_user'); |
|
|
$this->addSql('DROP TABLE merchant'); |
|
|
$this->addSql('DROP TABLE merchant'); |
|
|
$this->addSql('DROP TABLE merchant_config'); |
|
|
$this->addSql('DROP TABLE merchant_config'); |
|
|
|
|
|
|
|
|
$this->addSql('DROP TABLE order_status'); |
|
|
$this->addSql('DROP TABLE order_status'); |
|
|
$this->addSql('DROP TABLE order_status_order_status_interface'); |
|
|
$this->addSql('DROP TABLE order_status_order_status_interface'); |
|
|
$this->addSql('DROP TABLE order_status_history'); |
|
|
$this->addSql('DROP TABLE order_status_history'); |
|
|
|
|
|
$this->addSql('DROP TABLE page'); |
|
|
|
|
|
$this->addSql('DROP TABLE page_file'); |
|
|
$this->addSql('DROP TABLE point_sale'); |
|
|
$this->addSql('DROP TABLE point_sale'); |
|
|
$this->addSql('DROP TABLE point_sale_merchant_interface'); |
|
|
$this->addSql('DROP TABLE point_sale_merchant_interface'); |
|
|
$this->addSql('DROP TABLE point_sale_day_info'); |
|
|
$this->addSql('DROP TABLE point_sale_day_info'); |
|
|
|
|
|
|
|
|
$this->addSql('DROP TABLE ticket'); |
|
|
$this->addSql('DROP TABLE ticket'); |
|
|
$this->addSql('DROP TABLE ticket_message'); |
|
|
$this->addSql('DROP TABLE ticket_message'); |
|
|
$this->addSql('DROP TABLE unit'); |
|
|
$this->addSql('DROP TABLE unit'); |
|
|
|
|
|
$this->addSql('DROP TABLE user'); |
|
|
$this->addSql('DROP TABLE user_newsletter_interface'); |
|
|
$this->addSql('DROP TABLE user_newsletter_interface'); |
|
|
$this->addSql('DROP TABLE user_group_user_interface'); |
|
|
$this->addSql('DROP TABLE user_group_user_interface'); |
|
|
$this->addSql('DROP TABLE user_product_family_interface'); |
|
|
$this->addSql('DROP TABLE user_product_family_interface'); |
|
|
$this->addSql('DROP TABLE user_merchant'); |
|
|
$this->addSql('DROP TABLE user_merchant'); |
|
|
$this->addSql('DROP TABLE user_point_sale'); |
|
|
$this->addSql('DROP TABLE user_point_sale'); |
|
|
$this->addSql('DROP TABLE visitor'); |
|
|
$this->addSql('DROP TABLE visitor'); |
|
|
$this->addSql('ALTER TABLE page ADD locales_enabled LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\''); |
|
|
|
|
|
$this->addSql('DROP INDEX IDX_8D93D6496796D554 ON user'); |
|
|
|
|
|
$this->addSql('ALTER TABLE user DROP merchant_id, DROP phone, DROP behavior_display_price, DROP gender, DROP ticket_types_notification, CHANGE firstname firstname VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE lastname lastname VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`'); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |