src\Migrations\Version20230313130934.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20230313130934 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->abortIf(
  19.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  20.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  21.         );
  22.         $this->addSql('CREATE TABLE admin_status (id INT AUTO_INCREMENT NOT NULL, color VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, title VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  23.         $this->abortIf(
  24.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  25.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  26.         );
  27.         $this->addSql('CREATE TABLE article (id INT AUTO_INCREMENT NOT NULL, category VARCHAR(20) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, title VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, subtitle LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, content LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, is_active TINYINT(1) DEFAULT NULL, is_on_home TINYINT(1) DEFAULT NULL, display_order INT DEFAULT NULL, date_create DATETIME NOT NULL, image VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, date_update DATETIME DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  28.         $this->abortIf(
  29.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  30.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  31.         );
  32.         $this->addSql('CREATE TABLE ch_cookieconsent_log (id INT AUTO_INCREMENT NOT NULL, ip_address VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, cookie_consent_key VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, cookie_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, cookie_value VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, timestamp DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  33.         $this->abortIf(
  34.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  35.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  36.         );
  37.         $this->addSql('CREATE TABLE `change` (id INT AUTO_INCREMENT NOT NULL, currency_from_id INT NOT NULL, currency_to_id INT NOT NULL, year VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, rate DOUBLE PRECISION NOT NULL, specific_rate DOUBLE PRECISION DEFAULT NULL, INDEX IDX_4057FE2067D74803 (currency_to_id), INDEX IDX_4057FE20A56723E4 (currency_from_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  38.         $this->abortIf(
  39.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  40.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  41.         );
  42.         $this->addSql('CREATE TABLE `condition` (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, symbol VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, is_operator TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  43.         $this->abortIf(
  44.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  45.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  46.         );
  47.         $this->addSql('CREATE TABLE currency (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, symbol VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  48.         $this->abortIf(
  49.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  50.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  51.         );
  52.         $this->addSql('CREATE TABLE discount (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, type VARCHAR(20) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(20) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, discount NUMERIC(6, 3) NOT NULL, discount_type VARCHAR(3) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, is_active TINYINT(1) NOT NULL, date_create DATETIME NOT NULL, date_valid DATETIME DEFAULT NULL, nb_times_used INT DEFAULT NULL, nb_counted INT DEFAULT NULL, INDEX IDX_E1E0B40EA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  53.         $this->abortIf(
  54.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  55.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  56.         );
  57.         $this->addSql('CREATE TABLE document (id INT AUTO_INCREMENT NOT NULL, document_group_id INT DEFAULT NULL, getax_document_group_id INT DEFAULT NULL, display_regroup_information_id INT DEFAULT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, priority INT DEFAULT NULL, code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, getax_order INT DEFAULT NULL, information_is_summable TINYINT(1) DEFAULT 1 NOT NULL, split_by_currency TINYINT(1) NOT NULL, INDEX IDX_D8698A767195281E (document_group_id), INDEX IDX_D8698A76D17DB7A3 (getax_document_group_id), INDEX IDX_D8698A76E974974C (display_regroup_information_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  58.         $this->abortIf(
  59.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  60.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  61.         );
  62.         $this->addSql('CREATE TABLE document_group (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, condition_has_children TINYINT(1) DEFAULT NULL, condition_is_owner TINYINT(1) DEFAULT NULL, condition_is_rented_estates TINYINT(1) DEFAULT NULL, code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, priority INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  63.         $this->abortIf(
  64.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  65.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  66.         );
  67.         $this->addSql('CREATE TABLE document_information (id INT AUTO_INCREMENT NOT NULL, document_id INT NOT NULL, information_id INT NOT NULL, priority INT NOT NULL, INDEX IDX_ABD02FE92EF03101 (information_id), INDEX IDX_ABD02FE9C33F7837 (document_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  68.         $this->abortIf(
  69.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  70.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  71.         );
  72.         $this->addSql('CREATE TABLE document_information_getax_mc (document_information_id INT NOT NULL, getax_mc_id INT NOT NULL, INDEX IDX_DFFB201754BDC40D (document_information_id), INDEX IDX_DFFB201767C61CC2 (getax_mc_id), PRIMARY KEY(document_information_id, getax_mc_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  73.         $this->abortIf(
  74.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  75.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  76.         );
  77.         $this->addSql('CREATE TABLE entities (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, class_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  78.         $this->abortIf(
  79.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  80.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  81.         );
  82.         $this->addSql('CREATE TABLE getax_document_group (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  83.         $this->abortIf(
  84.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  85.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  86.         );
  87.         $this->addSql('CREATE TABLE getax_mc (id INT AUTO_INCREMENT NOT NULL, regroup_information_id INT DEFAULT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, summable TINYINT(1) DEFAULT 1 NOT NULL, mc VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_9FE0C0553AFD0FD7 (regroup_information_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  88.         $this->abortIf(
  89.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  90.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  91.         );
  92.         $this->addSql('CREATE TABLE information (id INT AUTO_INCREMENT NOT NULL, information_type_id INT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, multiple TINYINT(1) NOT NULL, INDEX IDX_29791883D87D2C02 (information_type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  93.         $this->abortIf(
  94.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  95.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  96.         );
  97.         $this->addSql('CREATE TABLE information_type (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, type VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  98.         $this->abortIf(
  99.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  100.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  101.         );
  102.         $this->addSql('CREATE TABLE invoice (id INT AUTO_INCREMENT NOT NULL, order_id INT DEFAULT NULL, reference VARCHAR(30) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, date DATETIME NOT NULL, excl_tax_amount NUMERIC(6, 3) NOT NULL, vat_percent NUMERIC(4, 2) NOT NULL, vat_amount NUMERIC(6, 3) NOT NULL, incl_tax_amount NUMERIC(6, 3) NOT NULL, incl_tax_discount NUMERIC(6, 3) NOT NULL, incl_tax_total_amount NUMERIC(6, 3) NOT NULL, currency VARCHAR(3) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, date_add DATETIME DEFAULT NULL, date_update DATETIME DEFAULT NULL, hashed_id VARCHAR(32) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, order_reference VARCHAR(30) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, UNIQUE INDEX UNIQ_906517448D9F6D38 (order_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  103.         $this->abortIf(
  104.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  105.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  106.         );
  107.         $this->addSql('CREATE TABLE log_action (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  108.         $this->abortIf(
  109.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  110.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  111.         );
  112.         $this->addSql('CREATE TABLE log_history (id INT AUTO_INCREMENT NOT NULL, entity_id INT NOT NULL, user_id INT DEFAULT NULL, log_action_id INT NOT NULL, value LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, object_id INT NOT NULL, created_at DATETIME NOT NULL, INDEX IDX_1F7748DC81257D5D (entity_id), INDEX IDX_1F7748DC8B306CBB (log_action_id), INDEX IDX_1F7748DCA76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  113.         $this->abortIf(
  114.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  115.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  116.         );
  117.         $this->addSql('CREATE TABLE mode (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  118.         $this->abortIf(
  119.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  120.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  121.         );
  122.         $this->addSql('CREATE TABLE notification (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, user_survey_id INT NOT NULL, title VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, content LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, type VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_admin_only TINYINT(1) DEFAULT NULL, is_read TINYINT(1) DEFAULT NULL, is_mailed TINYINT(1) DEFAULT NULL, date_add DATETIME NOT NULL, INDEX IDX_BF5476CAA76ED395 (user_id), INDEX IDX_BF5476CAB31EDD79 (user_survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  123.         $this->abortIf(
  124.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  125.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  126.         );
  127.         $this->addSql('CREATE TABLE `order` (id INT AUTO_INCREMENT NOT NULL, user_survey_id INT DEFAULT NULL, payment_id INT DEFAULT NULL, amount NUMERIC(6, 3) NOT NULL, currency VARCHAR(3) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, state SMALLINT NOT NULL, is_legal_notice_validated TINYINT(1) NOT NULL, date_legal_notice_validated DATETIME DEFAULT NULL, date_payment DATETIME DEFAULT NULL, date_add DATETIME DEFAULT NULL, date_update DATETIME DEFAULT NULL, date_cancel DATETIME DEFAULT NULL, reference VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, payment_mode SMALLINT DEFAULT NULL, payment_provider VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, payment_status VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_completed_once TINYINT(1) DEFAULT NULL, discount_amount NUMERIC(6, 3) NOT NULL, amount_no_discount NUMERIC(6, 3) NOT NULL, bexio_invoice_id INT DEFAULT NULL, UNIQUE INDEX UNIQ_F52993984C3A3BB (payment_id), UNIQUE INDEX UNIQ_F5299398B31EDD79 (user_survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  128.         $this->abortIf(
  129.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  130.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  131.         );
  132.         $this->addSql('CREATE TABLE order_discount (order_id INT NOT NULL, discount_id INT NOT NULL, INDEX IDX_1856BF4C7C611F (discount_id), INDEX IDX_1856BF8D9F6D38 (order_id), PRIMARY KEY(order_id, discount_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  133.         $this->abortIf(
  134.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  135.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  136.         );
  137.         $this->addSql('CREATE TABLE payment (id INT AUTO_INCREMENT NOT NULL, number VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, description VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, client_email VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, client_id VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, total_amount INT DEFAULT NULL, currency_code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, details JSON NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  138.         $this->abortIf(
  139.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  140.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  141.         );
  142.         $this->addSql('CREATE TABLE payment_token (hash VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, details LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:object)\', after_url LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, target_url LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, gateway_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(hash)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  143.         $this->abortIf(
  144.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  145.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  146.         );
  147.         $this->addSql('CREATE TABLE question (id INT AUTO_INCREMENT NOT NULL, question_type_code VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, question_group_id INT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, available_answers LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\', default_value VARCHAR(150) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, note LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, required TINYINT(1) DEFAULT 0 NOT NULL, visible TINYINT(1) DEFAULT 1 NOT NULL, priority SMALLINT DEFAULT NULL, get_tax_code VARCHAR(25) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, get_tax_priority SMALLINT DEFAULT NULL, image_helper VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, image_helper_label VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_B6F7494E9D5C694B (question_group_id), INDEX IDX_B6F7494EA9CFB10B (question_type_code), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  148.         $this->abortIf(
  149.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  150.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  151.         );
  152.         $this->addSql('CREATE TABLE question_group (id INT AUTO_INCREMENT NOT NULL, parent_id INT DEFAULT NULL, name VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, price_for_old_customer NUMERIC(6, 3) DEFAULT NULL, price_for_new_customer NUMERIC(6, 3) DEFAULT NULL, is_repeatable TINYINT(1) NOT NULL, is_skipable TINYINT(1) NOT NULL, skipable_field VARCHAR(100) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, skipable_values VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, helper LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_multiple TINYINT(1) DEFAULT NULL, multiple_label VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, image_helper VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, image_helper_label VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, step SMALLINT DEFAULT NULL, is_post_payment TINYINT(1) DEFAULT NULL, is_in_getax_xml TINYINT(1) DEFAULT NULL, getax_xml_label VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, route VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_money_field TINYINT(1) NOT NULL, code VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, UNIQUE INDEX UNIQ_5D2B55C1727ACA70 (parent_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  153.         $this->abortIf(
  154.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  155.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  156.         );
  157.         $this->addSql('CREATE TABLE slider (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, subtitle VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, content LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, image VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_active TINYINT(1) DEFAULT NULL, display_order INT DEFAULT NULL, date_create DATETIME NOT NULL, date_update DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  158.         $this->abortIf(
  159.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  160.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  161.         );
  162.         $this->addSql('CREATE TABLE step (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, template VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, entity VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_collection TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  163.         $this->abortIf(
  164.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  165.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  166.         );
  167.         $this->addSql('CREATE TABLE step_field (id INT AUTO_INCREMENT NOT NULL, step_id INT NOT NULL, parent_id INT DEFAULT NULL, step_field_form_type_id INT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, label VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, form_options LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_extra_data TINYINT(1) NOT NULL, is_object TINYINT(1) DEFAULT 0 NOT NULL, helper LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_47D7B2A72CBC021 (step_field_form_type_id), INDEX IDX_47D7B2A7727ACA70 (parent_id), INDEX IDX_47D7B2A773B21E9C (step_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  168.         $this->abortIf(
  169.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  170.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  171.         );
  172.         $this->addSql('CREATE TABLE step_field_answer (id INT AUTO_INCREMENT NOT NULL, label VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, value VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  173.         $this->abortIf(
  174.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  175.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  176.         );
  177.         $this->addSql('CREATE TABLE step_field_answer_step_field (step_field_answer_id INT NOT NULL, step_field_id INT NOT NULL, INDEX IDX_9919818647CD245B (step_field_answer_id), INDEX IDX_99198186743205DF (step_field_id), PRIMARY KEY(step_field_answer_id, step_field_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  178.         $this->abortIf(
  179.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  180.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  181.         );
  182.         $this->addSql('CREATE TABLE step_field_form_type (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, class VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  183.         $this->abortIf(
  184.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  185.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  186.         );
  187.         $this->addSql('CREATE TABLE survey (id INT AUTO_INCREMENT NOT NULL, survey_category_id INT DEFAULT NULL, name VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, is_active TINYINT(1) DEFAULT NULL, code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, description LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, important_message LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_AD5F9BFCAABE42E7 (survey_category_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  188.         $this->abortIf(
  189.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  190.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  191.         );
  192.         $this->addSql('CREATE TABLE survey_category (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, display_on_website TINYINT(1) NOT NULL, display_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  193.         $this->abortIf(
  194.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  195.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  196.         );
  197.         $this->addSql('CREATE TABLE survey_document (id INT AUTO_INCREMENT NOT NULL, survey_id INT NOT NULL, document_id INT NOT NULL, subject_survey_step_field_id INT DEFAULT NULL, survey_mode_id INT DEFAULT NULL, display_order INT NOT NULL, INDEX IDX_849ECC5133C9A6F1 (survey_mode_id), INDEX IDX_849ECC517161E9DC (subject_survey_step_field_id), INDEX IDX_849ECC51B3FE509D (survey_id), INDEX IDX_849ECC51C33F7837 (document_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  198.         $this->abortIf(
  199.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  200.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  201.         );
  202.         $this->addSql('CREATE TABLE survey_document_condition (id INT AUTO_INCREMENT NOT NULL, survey_document_id INT NOT NULL, condition_operator_id INT NOT NULL, condition_join_id INT DEFAULT NULL, survey_step_field_id INT DEFAULT NULL, step_field_answer_id INT DEFAULT NULL, value VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_BE3C5C561F298627 (survey_step_field_id), INDEX IDX_BE3C5C5647CD245B (step_field_answer_id), INDEX IDX_BE3C5C5667034343 (condition_operator_id), INDEX IDX_BE3C5C567BC7A732 (survey_document_id), INDEX IDX_BE3C5C56D9404B05 (condition_join_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  203.         $this->abortIf(
  204.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  205.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  206.         );
  207.         $this->addSql('CREATE TABLE survey_group (id INT AUTO_INCREMENT NOT NULL, question_group_id INT NOT NULL, survey_id INT NOT NULL, priority INT DEFAULT NULL, INDEX IDX_61B0B6FD9D5C694B (question_group_id), INDEX IDX_61B0B6FDB3FE509D (survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  208.         $this->abortIf(
  209.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  210.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  211.         );
  212.         $this->addSql('CREATE TABLE survey_mode (id INT AUTO_INCREMENT NOT NULL, mode_id INT DEFAULT NULL, survey_id INT NOT NULL, open_date DATETIME NOT NULL, close_date DATETIME NOT NULL, is_active TINYINT(1) NOT NULL, INDEX IDX_5123476077E5854A (mode_id), INDEX IDX_51234760B3FE509D (survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  213.         $this->abortIf(
  214.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  215.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  216.         );
  217.         $this->addSql('CREATE TABLE survey_product (id INT AUTO_INCREMENT NOT NULL, survey_id INT NOT NULL, counted_survey_step_field_id INT DEFAULT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_multiple TINYINT(1) NOT NULL, min_quantity INT DEFAULT NULL, counting_type VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_97662716188F3BD5 (counted_survey_step_field_id), INDEX IDX_97662716B3FE509D (survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  218.         $this->abortIf(
  219.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  220.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  221.         );
  222.         $this->addSql('CREATE TABLE survey_product_rules (id INT AUTO_INCREMENT NOT NULL, survey_product_id INT NOT NULL, condition_operator_id INT NOT NULL, condition_join_id INT DEFAULT NULL, survey_step_field_id INT DEFAULT NULL, step_field_answer_id INT DEFAULT NULL, value VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_43DD61981F298627 (survey_step_field_id), INDEX IDX_43DD619847CD245B (step_field_answer_id), INDEX IDX_43DD619867034343 (condition_operator_id), INDEX IDX_43DD6198D9404B05 (condition_join_id), INDEX IDX_43DD6198FE6C6D (survey_product_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  223.         $this->abortIf(
  224.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  225.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  226.         );
  227.         $this->addSql('CREATE TABLE survey_rate (id INT AUTO_INCREMENT NOT NULL, survey_mode_id INT NOT NULL, survey_product_id INT DEFAULT NULL, price DOUBLE PRECISION DEFAULT NULL, bexio_article_id INT DEFAULT NULL, INDEX IDX_19053FF233C9A6F1 (survey_mode_id), INDEX IDX_19053FF2FE6C6D (survey_product_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  228.         $this->abortIf(
  229.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  230.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  231.         );
  232.         $this->addSql('CREATE TABLE survey_step (id INT AUTO_INCREMENT NOT NULL, survey_id INT NOT NULL, step_id INT NOT NULL, survey_mode_id INT DEFAULT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, display_order INT NOT NULL, validation_group VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_8550FEF733C9A6F1 (survey_mode_id), INDEX IDX_8550FEF773B21E9C (step_id), INDEX IDX_8550FEF7B3FE509D (survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  233.         $this->abortIf(
  234.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  235.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  236.         );
  237.         $this->addSql('CREATE TABLE survey_step_condition (id INT AUTO_INCREMENT NOT NULL, survey_step_id INT NOT NULL, condition_operator_id INT NOT NULL, condition_join_id INT DEFAULT NULL, survey_step_field_id INT DEFAULT NULL, step_field_answer_id INT DEFAULT NULL, value VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_D3E690251F298627 (survey_step_field_id), INDEX IDX_D3E69025379E3D27 (survey_step_id), INDEX IDX_D3E6902547CD245B (step_field_answer_id), INDEX IDX_D3E6902567034343 (condition_operator_id), INDEX IDX_D3E69025D9404B05 (condition_join_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  238.         $this->abortIf(
  239.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  240.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  241.         );
  242.         $this->addSql('CREATE TABLE survey_step_field (id INT AUTO_INCREMENT NOT NULL, step_field_id INT NOT NULL, survey_step_id INT NOT NULL, position INT NOT NULL, required TINYINT(1) NOT NULL, is_active TINYINT(1) NOT NULL, INDEX IDX_2ADB890379E3D27 (survey_step_id), INDEX IDX_2ADB890743205DF (step_field_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  243.         $this->abortIf(
  244.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  245.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  246.         );
  247.         $this->addSql('CREATE TABLE tax_rectification_request (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  248.         $this->abortIf(
  249.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  250.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  251.         );
  252.         $this->addSql('CREATE TABLE type (code VARCHAR(10) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, type VARCHAR(20) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, name VARCHAR(20) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, PRIMARY KEY(code)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  253.         $this->abortIf(
  254.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  255.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  256.         );
  257.         $this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, source_user_file_id INT DEFAULT NULL, name VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, lastname VARCHAR(50) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, email VARCHAR(78) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, recovery_password VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, password VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, roles LONGTEXT CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\', civil_state VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_children TINYINT(1) DEFAULT NULL, nb_children SMALLINT DEFAULT NULL, is_owner TINYINT(1) DEFAULT NULL, nb_used_estates SMALLINT DEFAULT NULL, nb_rented_estates SMALLINT DEFAULT NULL, has_renovations TINYINT(1) DEFAULT NULL, is_used_estates TINYINT(1) DEFAULT NULL, is_rented_estates TINYINT(1) DEFAULT NULL, is_active TINYINT(1) DEFAULT NULL, phone VARCHAR(20) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, auth_code VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, recommandation LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, bexio_contact_id INT DEFAULT NULL, ringover_contact_id INT DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D6491D2CBBDE (source_user_file_id), UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  258.         $this->abortIf(
  259.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  260.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  261.         );
  262.         $this->addSql('CREATE TABLE user_cmu (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, date_add DATETIME NOT NULL, last_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, first_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, num_fisc VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, password_fisc VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, num_soc VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, password_soc VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, num_soc_partner VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, password_soc_partner VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_AEFA5DB9A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  263.         $this->abortIf(
  264.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  265.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  266.         );
  267.         $this->addSql('CREATE TABLE user_file (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, iban VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, civil_state VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_children TINYINT(1) DEFAULT NULL, is_owner TINYINT(1) DEFAULT NULL, is_active TINYINT(1) DEFAULT NULL, has_investments TINYINT(1) DEFAULT NULL, has_credits TINYINT(1) DEFAULT NULL, residence VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, swiss_residence_type VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_cloned TINYINT(1) DEFAULT NULL, is_original TINYINT(1) DEFAULT NULL, original_user_file INT DEFAULT NULL, comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_appointment_taken TINYINT(1) DEFAULT NULL, appointment_comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_capital_gain TINYINT(1) DEFAULT NULL, capital_gain_amount NUMERIC(10, 2) DEFAULT NULL, capital_gain_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_F61E7AD9A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  268.         $this->abortIf(
  269.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  270.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  271.         );
  272.         $this->addSql('CREATE TABLE user_file_answer (id INT AUTO_INCREMENT NOT NULL, user_file_id INT NOT NULL, user_file_person_id INT DEFAULT NULL, user_file_person_revenue_id INT DEFAULT NULL, user_file_property_id INT DEFAULT NULL, user_file_property_renovation_id INT DEFAULT NULL, user_file_property_credit_id INT DEFAULT NULL, user_file_credit_id INT DEFAULT NULL, user_file_investment_id INT DEFAULT NULL, survey_step_field_id INT NOT NULL, step_field_answer_id INT DEFAULT NULL, value VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_CBD1A50F1F298627 (survey_step_field_id), INDEX IDX_CBD1A50F2B8C4FD6 (user_file_credit_id), INDEX IDX_CBD1A50F47CD245B (step_field_answer_id), INDEX IDX_CBD1A50F58A5FF00 (user_file_property_credit_id), INDEX IDX_CBD1A50F5C7D0F8E (user_file_property_renovation_id), INDEX IDX_CBD1A50FB3CAF53 (user_file_property_id), INDEX IDX_CBD1A50FC4F1DB68 (user_file_person_id), INDEX IDX_CBD1A50FCBC66766 (user_file_id), INDEX IDX_CBD1A50FCF915DAB (user_file_investment_id), INDEX IDX_CBD1A50FE00338F0 (user_file_person_revenue_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  273.         $this->abortIf(
  274.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  275.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  276.         );
  277.         $this->addSql('CREATE TABLE user_file_credit (id INT AUTO_INCREMENT NOT NULL, user_file_id INT NOT NULL, entity VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, contract_date DATE DEFAULT NULL, credit_type VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, amount NUMERIC(10, 2) DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, interest NUMERIC(10, 2) DEFAULT NULL, amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, interest_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_DCD81D4CBC66766 (user_file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  278.         $this->abortIf(
  279.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  280.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  281.         );
  282.         $this->addSql('CREATE TABLE user_file_document (id INT AUTO_INCREMENT NOT NULL, document_group_id INT NOT NULL, file_name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, valid_state SMALLINT DEFAULT NULL, valid_comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, is_archived TINYINT(1) DEFAULT NULL, is_slice TINYINT(1) DEFAULT 0 NOT NULL, INDEX IDX_87B7A8BB7195281E (document_group_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  283.         $this->abortIf(
  284.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  285.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  286.         );
  287.         $this->addSql('CREATE TABLE user_file_document_group (id INT AUTO_INCREMENT NOT NULL, user_file_id INT NOT NULL, document_id INT NOT NULL, user_file_person_id INT DEFAULT NULL, user_file_person_revenue_id INT DEFAULT NULL, user_file_property_id INT DEFAULT NULL, user_file_investment_id INT DEFAULT NULL, user_file_credit_id INT DEFAULT NULL, user_file_property_credit_id INT DEFAULT NULL, user_file_missing_file_id INT DEFAULT NULL, INDEX IDX_B37DE49E2B8C4FD6 (user_file_credit_id), INDEX IDX_B37DE49E393B4FE (user_file_missing_file_id), INDEX IDX_B37DE49E58A5FF00 (user_file_property_credit_id), INDEX IDX_B37DE49EB3CAF53 (user_file_property_id), INDEX IDX_B37DE49EC33F7837 (document_id), INDEX IDX_B37DE49EC4F1DB68 (user_file_person_id), INDEX IDX_B37DE49ECBC66766 (user_file_id), INDEX IDX_B37DE49ECF915DAB (user_file_investment_id), INDEX IDX_B37DE49EE00338F0 (user_file_person_revenue_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  288.         $this->abortIf(
  289.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  290.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  291.         );
  292.         $this->addSql('CREATE TABLE user_file_document_information (id INT AUTO_INCREMENT NOT NULL, user_file_document_id INT NOT NULL, currency_id INT DEFAULT NULL, document_information_id INT NOT NULL, value VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_5718F15C38248176 (currency_id), INDEX IDX_5718F15C54BDC40D (document_information_id), INDEX IDX_5718F15C9C91C488 (user_file_document_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  293.         $this->abortIf(
  294.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  295.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  296.         );
  297.         $this->addSql('CREATE TABLE user_file_investment (id INT AUTO_INCREMENT NOT NULL, user_file_id INT NOT NULL, investment_type VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, amount NUMERIC(10, 2) DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_E8FEBDEFCBC66766 (user_file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  298.         $this->abortIf(
  299.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  300.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  301.         );
  302.         $this->addSql('CREATE TABLE user_file_missing_files (id INT AUTO_INCREMENT NOT NULL, user_file_id INT DEFAULT NULL, document_id INT DEFAULT NULL, user_file_person_id INT DEFAULT NULL, user_file_person_revenue_id INT DEFAULT NULL, user_file_property_id INT DEFAULT NULL, user_file_investment_id INT DEFAULT NULL, user_file_credit_id INT DEFAULT NULL, user_file_property_credit_id INT DEFAULT NULL, user_file_document_group_id INT DEFAULT NULL, INDEX IDX_6E1B48572B8C4FD6 (user_file_credit_id), INDEX IDX_6E1B485758A5FF00 (user_file_property_credit_id), INDEX IDX_6E1B4857856A6B10 (user_file_document_group_id), INDEX IDX_6E1B4857B3CAF53 (user_file_property_id), INDEX IDX_6E1B4857C33F7837 (document_id), INDEX IDX_6E1B4857C4F1DB68 (user_file_person_id), INDEX IDX_6E1B4857CBC66766 (user_file_id), INDEX IDX_6E1B4857CF915DAB (user_file_investment_id), INDEX IDX_6E1B4857E00338F0 (user_file_person_revenue_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  303.         $this->abortIf(
  304.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  305.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  306.         );
  307.         $this->addSql('CREATE TABLE user_file_person (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT NULL, partner_id INT DEFAULT NULL, child_id INT DEFAULT NULL, parent_id INT DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, firstname VARCHAR(150) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, lastname VARCHAR(150) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, email VARCHAR(150) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, phone VARCHAR(20) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_same_address TINYINT(1) DEFAULT NULL, address VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, health_care VARCHAR(25) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_complementary_health TINYINT(1) DEFAULT NULL, has_uncovered_medical_care TINYINT(1) DEFAULT NULL, has_swiss_donation TINYINT(1) DEFAULT NULL, disability_care TINYINT(1) DEFAULT NULL, has_swiss_politic_donation TINYINT(1) DEFAULT NULL, relation_type VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, relation_date DATE DEFAULT NULL, is_student TINYINT(1) DEFAULT NULL, has_revenue TINYINT(1) DEFAULT NULL, alimony_way VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, alimony_amount NUMERIC(10, 2) DEFAULT NULL, has_rht TINYINT(1) DEFAULT NULL, rht_duration INT DEFAULT NULL, has_covid TINYINT(1) DEFAULT NULL, has_covid_covered TINYINT(1) DEFAULT NULL, covid_cover_duration INT DEFAULT NULL, has_work_at_home TINYINT(1) DEFAULT NULL, work_at_home_duration INT DEFAULT NULL, country VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, iban VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, city VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, zipcode VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, relation_current_year TINYINT(1) DEFAULT NULL, health_care_amount NUMERIC(10, 2) DEFAULT NULL, complementary_health_amount NUMERIC(10, 2) DEFAULT NULL, uncovered_medical_careh_amount NUMERIC(10, 2) DEFAULT NULL, swiss_donation_amount NUMERIC(10, 2) DEFAULT NULL, disability_care_amount NUMERIC(10, 2) DEFAULT NULL, swiss_politic_donation_amount NUMERIC(10, 2) DEFAULT NULL, study_duration INT DEFAULT NULL, revenue_range VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, street_number VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, street VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, birthday_date DATE DEFAULT NULL, has_alimony TINYINT(1) DEFAULT NULL, nationality VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, profession VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_previous_address TINYINT(1) DEFAULT NULL, previous_address VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previous_street_number VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previous_street VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previous_city VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previous_zipcode VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previous_country VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, nursering_amount NUMERIC(10, 2) DEFAULT NULL, health_care_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, complementary_health_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, uncovered_medical_careh_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, swiss_donation_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, disability_care_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, swiss_politic_donation_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, alimony_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, nursering_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, has_care_expenses TINYINT(1) DEFAULT NULL, INDEX IDX_25D03E5C727ACA70 (parent_id), INDEX IDX_25D03E5C9393F8FE (partner_id), INDEX IDX_25D03E5CDD62C21B (child_id), UNIQUE INDEX UNIQ_25D03E5C7E3C61F9 (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  308.         $this->abortIf(
  309.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  310.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  311.         );
  312.         $this->addSql('CREATE TABLE user_file_person_revenue (id INT AUTO_INCREMENT NOT NULL, person_id INT DEFAULT NULL, entity VARCHAR(150) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, revenue_type VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, revenue NUMERIC(10, 2) DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, address VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, street_number VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, street VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, city VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, zipcode VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, country VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_7C930925217BBB47 (person_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  313.         $this->abortIf(
  314.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  315.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  316.         );
  317.         $this->addSql('CREATE TABLE user_file_property (id INT AUTO_INCREMENT NOT NULL, user_file_id INT NOT NULL, in_progress TINYINT(1) DEFAULT NULL, address VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, purchase_date DATE DEFAULT NULL, owner_percent NUMERIC(10, 2) DEFAULT NULL, construction_date VARCHAR(5) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_rented TINYINT(1) DEFAULT NULL, is_rented_lmnp TINYINT(1) DEFAULT NULL, annual_gross_revenue NUMERIC(10, 2) DEFAULT NULL, has_renovation TINYINT(1) DEFAULT NULL, has_loan TINYINT(1) DEFAULT NULL, has_loan_insurance TINYINT(1) DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, previous_rent_gross_amount NUMERIC(10, 2) DEFAULT NULL, has_land_deficit TINYINT(1) DEFAULT NULL, previousloan_interest NUMERIC(10, 2) DEFAULT NULL, loan_insurance_amount NUMERIC(10, 2) DEFAULT NULL, actual_rent_gross_amount NUMERIC(10, 2) DEFAULT NULL, street_number VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, street VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, city VARCHAR(100) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, zipcode VARCHAR(10) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, country VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previous_rent_gross_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, annual_gross_revenue_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, actual_rent_gross_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, previousloan_interest_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, loan_insurance_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, residence_type VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, property_taxes_amount DOUBLE PRECISION DEFAULT NULL, home_insurance_amount DOUBLE PRECISION DEFAULT NULL, condominium_charge_amount DOUBLE PRECISION DEFAULT NULL, is_sold_current_year TINYINT(1) DEFAULT NULL, sell_date DATE DEFAULT NULL, INDEX IDX_D42C3E13CBC66766 (user_file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  318.         $this->abortIf(
  319.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  320.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  321.         );
  322.         $this->addSql('CREATE TABLE user_file_property_credit (id INT AUTO_INCREMENT NOT NULL, user_file_property_id INT NOT NULL, bank VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, loan_date DATE DEFAULT NULL, loan_amount NUMERIC(10, 2) DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, loan_interest NUMERIC(10, 2) DEFAULT NULL, loan_amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, loan_interest_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_20B38538B3CAF53 (user_file_property_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  323.         $this->abortIf(
  324.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  325.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  326.         );
  327.         $this->addSql('CREATE TABLE user_file_property_renovation (id INT AUTO_INCREMENT NOT NULL, user_file_property_id INT NOT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, contractor VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, renovation_type VARCHAR(255) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, renovation_date DATE DEFAULT NULL, amount NUMERIC(10, 2) DEFAULT NULL, amount_currency VARCHAR(3) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_taxes TINYINT(1) DEFAULT NULL, INDEX IDX_E9B7D2A7B3CAF53 (user_file_property_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  328.         $this->abortIf(
  329.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  330.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  331.         );
  332.         $this->addSql('CREATE TABLE user_survey (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, survey_id INT NOT NULL, parent_id INT DEFAULT NULL, user_file_id INT DEFAULT NULL, admin_status_id INT DEFAULT NULL, tax_rectification_request_id INT DEFAULT NULL, user_survey_status_id INT NOT NULL, survey_product_id INT DEFAULT NULL, survey_step_id INT DEFAULT NULL, survey_mode_object_id INT DEFAULT NULL, result_survey_id INT DEFAULT NULL, creator_id INT DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, step SMALLINT DEFAULT NULL, covered_step LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\', payment_status VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, price DOUBLE PRECISION DEFAULT NULL, result_code VARCHAR(50) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, result_comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, result_is NUMERIC(10, 2) DEFAULT NULL, result_qr NUMERIC(10, 2) DEFAULT NULL, result_rs NUMERIC(10, 2) DEFAULT NULL, missing_files LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\', date_finish DATETIME DEFAULT NULL, date_afc DATETIME DEFAULT NULL, result_afc NUMERIC(10, 2) DEFAULT NULL, result_afccomment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, order_reference VARCHAR(30) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, result_presta NUMERIC(10, 2) DEFAULT NULL, result_presta_comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, survey_mode SMALLINT DEFAULT NULL, is_clone TINYINT(1) DEFAULT NULL, is_edited TINYINT(1) DEFAULT NULL, is_third_party TINYINT(1) DEFAULT NULL, status_date_update DATETIME NOT NULL, date_limit DATETIME DEFAULT NULL, has_afcrequested TINYINT(1) DEFAULT NULL, is_archived TINYINT(1) DEFAULT NULL, display_doc_notif TINYINT(1) DEFAULT 1, internal_alert_date DATE DEFAULT NULL, no_afcresult TINYINT(1) DEFAULT NULL, INDEX IDX_C80D80C125A363A8 (tax_rectification_request_id), INDEX IDX_C80D80C1379E3D27 (survey_step_id), INDEX IDX_C80D80C161220EA6 (creator_id), INDEX IDX_C80D80C1727ACA70 (parent_id), INDEX IDX_C80D80C18200058F (admin_status_id), INDEX IDX_C80D80C18A5AE640 (result_survey_id), INDEX IDX_C80D80C1A76ED395 (user_id), INDEX IDX_C80D80C1B3B4004D (user_survey_status_id), INDEX IDX_C80D80C1B3FE509D (survey_id), INDEX IDX_C80D80C1CBC66766 (user_file_id), INDEX IDX_C80D80C1F7FE1A3E (survey_mode_object_id), INDEX IDX_C80D80C1FE6C6D (survey_product_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  333.         $this->abortIf(
  334.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  335.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  336.         );
  337.         $this->addSql('CREATE TABLE user_survey_bexio_article (id INT AUTO_INCREMENT NOT NULL, user_survey_id INT NOT NULL, bexio_article_id INT NOT NULL, quantity INT NOT NULL, price DOUBLE PRECISION NOT NULL, INDEX IDX_FD898003B31EDD79 (user_survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  338.         $this->abortIf(
  339.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  340.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  341.         );
  342.         $this->addSql('CREATE TABLE user_survey_comment (id INT AUTO_INCREMENT NOT NULL, user_id INT NOT NULL, user_survey_id INT NOT NULL, reply_to_id INT DEFAULT NULL, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, comment VARCHAR(5000) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, is_archived TINYINT(1) NOT NULL, INDEX IDX_BBDDAE8EA76ED395 (user_id), INDEX IDX_BBDDAE8EB31EDD79 (user_survey_id), INDEX IDX_BBDDAE8EFFDF7169 (reply_to_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  343.         $this->abortIf(
  344.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  345.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  346.         );
  347.         $this->addSql('CREATE TABLE user_survey_question (id INT AUTO_INCREMENT NOT NULL, user_survey_id INT NOT NULL, question_id INT NOT NULL, question_group_id INT DEFAULT NULL, value LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, date_add DATETIME NOT NULL, date_update DATETIME NOT NULL, iteration INT DEFAULT NULL, valid_state SMALLINT DEFAULT NULL, valid_comment LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_F8DC63E61E27F6BF (question_id), INDEX IDX_F8DC63E69D5C694B (question_group_id), INDEX IDX_F8DC63E6B31EDD79 (user_survey_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  348.         $this->abortIf(
  349.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  350.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  351.         );
  352.         $this->addSql('CREATE TABLE user_survey_status (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, code VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, badge_color VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, graph_color VARCHAR(255) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, is_todo TINYINT(1) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
  353.     }
  354.     public function down(Schema $schema): void
  355.     {
  356.         // this down() migration is auto-generated, please modify it to your needs
  357.         $this->abortIf(
  358.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  359.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  360.         );
  361.         $this->addSql('DROP TABLE admin_status');
  362.         $this->abortIf(
  363.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  364.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  365.         );
  366.         $this->addSql('DROP TABLE article');
  367.         $this->abortIf(
  368.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  369.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  370.         );
  371.         $this->addSql('DROP TABLE ch_cookieconsent_log');
  372.         $this->abortIf(
  373.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  374.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  375.         );
  376.         $this->addSql('DROP TABLE `change`');
  377.         $this->abortIf(
  378.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  379.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  380.         );
  381.         $this->addSql('DROP TABLE `condition`');
  382.         $this->abortIf(
  383.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  384.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  385.         );
  386.         $this->addSql('DROP TABLE currency');
  387.         $this->abortIf(
  388.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  389.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  390.         );
  391.         $this->addSql('DROP TABLE discount');
  392.         $this->abortIf(
  393.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  394.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  395.         );
  396.         $this->addSql('DROP TABLE document');
  397.         $this->abortIf(
  398.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  399.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  400.         );
  401.         $this->addSql('DROP TABLE document_group');
  402.         $this->abortIf(
  403.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  404.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  405.         );
  406.         $this->addSql('DROP TABLE document_information');
  407.         $this->abortIf(
  408.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  409.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  410.         );
  411.         $this->addSql('DROP TABLE document_information_getax_mc');
  412.         $this->abortIf(
  413.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  414.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  415.         );
  416.         $this->addSql('DROP TABLE entities');
  417.         $this->abortIf(
  418.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  419.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  420.         );
  421.         $this->addSql('DROP TABLE getax_document_group');
  422.         $this->abortIf(
  423.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  424.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  425.         );
  426.         $this->addSql('DROP TABLE getax_mc');
  427.         $this->abortIf(
  428.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  429.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  430.         );
  431.         $this->addSql('DROP TABLE information');
  432.         $this->abortIf(
  433.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  434.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  435.         );
  436.         $this->addSql('DROP TABLE information_type');
  437.         $this->abortIf(
  438.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  439.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  440.         );
  441.         $this->addSql('DROP TABLE invoice');
  442.         $this->abortIf(
  443.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  444.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  445.         );
  446.         $this->addSql('DROP TABLE log_action');
  447.         $this->abortIf(
  448.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  449.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  450.         );
  451.         $this->addSql('DROP TABLE log_history');
  452.         $this->abortIf(
  453.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  454.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  455.         );
  456.         $this->addSql('DROP TABLE mode');
  457.         $this->abortIf(
  458.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  459.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  460.         );
  461.         $this->addSql('DROP TABLE notification');
  462.         $this->abortIf(
  463.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  464.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  465.         );
  466.         $this->addSql('DROP TABLE `order`');
  467.         $this->abortIf(
  468.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  469.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  470.         );
  471.         $this->addSql('DROP TABLE order_discount');
  472.         $this->abortIf(
  473.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  474.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  475.         );
  476.         $this->addSql('DROP TABLE payment');
  477.         $this->abortIf(
  478.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  479.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  480.         );
  481.         $this->addSql('DROP TABLE payment_token');
  482.         $this->abortIf(
  483.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  484.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  485.         );
  486.         $this->addSql('DROP TABLE question');
  487.         $this->abortIf(
  488.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  489.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  490.         );
  491.         $this->addSql('DROP TABLE question_group');
  492.         $this->abortIf(
  493.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  494.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  495.         );
  496.         $this->addSql('DROP TABLE slider');
  497.         $this->abortIf(
  498.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  499.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  500.         );
  501.         $this->addSql('DROP TABLE step');
  502.         $this->abortIf(
  503.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  504.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  505.         );
  506.         $this->addSql('DROP TABLE step_field');
  507.         $this->abortIf(
  508.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  509.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  510.         );
  511.         $this->addSql('DROP TABLE step_field_answer');
  512.         $this->abortIf(
  513.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  514.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  515.         );
  516.         $this->addSql('DROP TABLE step_field_answer_step_field');
  517.         $this->abortIf(
  518.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  519.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  520.         );
  521.         $this->addSql('DROP TABLE step_field_form_type');
  522.         $this->abortIf(
  523.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  524.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  525.         );
  526.         $this->addSql('DROP TABLE survey');
  527.         $this->abortIf(
  528.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  529.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  530.         );
  531.         $this->addSql('DROP TABLE survey_category');
  532.         $this->abortIf(
  533.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  534.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  535.         );
  536.         $this->addSql('DROP TABLE survey_document');
  537.         $this->abortIf(
  538.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  539.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  540.         );
  541.         $this->addSql('DROP TABLE survey_document_condition');
  542.         $this->abortIf(
  543.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  544.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  545.         );
  546.         $this->addSql('DROP TABLE survey_group');
  547.         $this->abortIf(
  548.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  549.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  550.         );
  551.         $this->addSql('DROP TABLE survey_mode');
  552.         $this->abortIf(
  553.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  554.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  555.         );
  556.         $this->addSql('DROP TABLE survey_product');
  557.         $this->abortIf(
  558.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  559.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  560.         );
  561.         $this->addSql('DROP TABLE survey_product_rules');
  562.         $this->abortIf(
  563.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  564.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  565.         );
  566.         $this->addSql('DROP TABLE survey_rate');
  567.         $this->abortIf(
  568.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  569.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  570.         );
  571.         $this->addSql('DROP TABLE survey_step');
  572.         $this->abortIf(
  573.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  574.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  575.         );
  576.         $this->addSql('DROP TABLE survey_step_condition');
  577.         $this->abortIf(
  578.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  579.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  580.         );
  581.         $this->addSql('DROP TABLE survey_step_field');
  582.         $this->abortIf(
  583.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  584.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  585.         );
  586.         $this->addSql('DROP TABLE tax_rectification_request');
  587.         $this->abortIf(
  588.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  589.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  590.         );
  591.         $this->addSql('DROP TABLE type');
  592.         $this->abortIf(
  593.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  594.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  595.         );
  596.         $this->addSql('DROP TABLE user');
  597.         $this->abortIf(
  598.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  599.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  600.         );
  601.         $this->addSql('DROP TABLE user_cmu');
  602.         $this->abortIf(
  603.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  604.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  605.         );
  606.         $this->addSql('DROP TABLE user_file');
  607.         $this->abortIf(
  608.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  609.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  610.         );
  611.         $this->addSql('DROP TABLE user_file_answer');
  612.         $this->abortIf(
  613.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  614.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  615.         );
  616.         $this->addSql('DROP TABLE user_file_credit');
  617.         $this->abortIf(
  618.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  619.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  620.         );
  621.         $this->addSql('DROP TABLE user_file_document');
  622.         $this->abortIf(
  623.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  624.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  625.         );
  626.         $this->addSql('DROP TABLE user_file_document_group');
  627.         $this->abortIf(
  628.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  629.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  630.         );
  631.         $this->addSql('DROP TABLE user_file_document_information');
  632.         $this->abortIf(
  633.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  634.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  635.         );
  636.         $this->addSql('DROP TABLE user_file_investment');
  637.         $this->abortIf(
  638.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  639.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  640.         );
  641.         $this->addSql('DROP TABLE user_file_missing_files');
  642.         $this->abortIf(
  643.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  644.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  645.         );
  646.         $this->addSql('DROP TABLE user_file_person');
  647.         $this->abortIf(
  648.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  649.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  650.         );
  651.         $this->addSql('DROP TABLE user_file_person_revenue');
  652.         $this->abortIf(
  653.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  654.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  655.         );
  656.         $this->addSql('DROP TABLE user_file_property');
  657.         $this->abortIf(
  658.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  659.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  660.         );
  661.         $this->addSql('DROP TABLE user_file_property_credit');
  662.         $this->abortIf(
  663.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  664.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  665.         );
  666.         $this->addSql('DROP TABLE user_file_property_renovation');
  667.         $this->abortIf(
  668.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  669.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  670.         );
  671.         $this->addSql('DROP TABLE user_survey');
  672.         $this->abortIf(
  673.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  674.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  675.         );
  676.         $this->addSql('DROP TABLE user_survey_bexio_article');
  677.         $this->abortIf(
  678.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  679.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  680.         );
  681.         $this->addSql('DROP TABLE user_survey_comment');
  682.         $this->abortIf(
  683.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  684.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  685.         );
  686.         $this->addSql('DROP TABLE user_survey_question');
  687.         $this->abortIf(
  688.             !$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
  689.             "Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
  690.         );
  691.         $this->addSql('DROP TABLE user_survey_status');
  692.     }
  693. }