<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230313130934 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$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 = \'\' ');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE admin_status');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE article');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE ch_cookieconsent_log');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE `change`');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE `condition`');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE currency');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE discount');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE document');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE document_group');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE document_information');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE document_information_getax_mc');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE entities');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE getax_document_group');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE getax_mc');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE information');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE information_type');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE invoice');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE log_action');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE log_history');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE mode');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE notification');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE `order`');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE order_discount');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE payment');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE payment_token');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE question');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE question_group');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE slider');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE step');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE step_field');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE step_field_answer');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE step_field_answer_step_field');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE step_field_form_type');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_category');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_document');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_document_condition');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_group');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_mode');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_product');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_product_rules');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_rate');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_step');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_step_condition');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE survey_step_field');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE tax_rectification_request');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE type');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_cmu');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_answer');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_credit');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_document');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_document_group');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_document_information');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_investment');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_missing_files');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_person');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_person_revenue');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_property');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_property_credit');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_file_property_renovation');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_survey');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_survey_bexio_article');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_survey_comment');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_survey_question');
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySQL57Platform,
"Migration can only be executed safely on '\Doctrine\DBAL\Platforms\MySQL57Platform'."
);
$this->addSql('DROP TABLE user_survey_status');
}
}