<?php
declare(strict_types=1);
namespace Application\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200616144251 extends AbstractMigration
{
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE _join_table_staff_request_and_member_order_line DROP FOREIGN KEY FK_BF4D409BBB01DC09');
$this->addSql('ALTER TABLE legal_entity_member_company RENAME INDEX uniq_f04bbedb77153098 TO UNIQ_BD38A77177153098');
$this->addSql('ALTER TABLE legal_entity_member_company RENAME INDEX idx_f04bbedba76ed395 TO IDX_BD38A771A76ED395');
$this->addSql('ALTER TABLE legal_entity RENAME INDEX idx_e21e9e13979b1ad6 TO IDX_E21E9E137CD5043F');
$this->addSql('ALTER TABLE legal_entity_member_company_remark RENAME INDEX idx_38b865fff675f31b TO IDX_28B6A073F675F31B');
$this->addSql('ALTER TABLE legal_entity_member_company_remark RENAME INDEX idx_38b865ff979b1ad6 TO IDX_28B6A073979B1AD6');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_987bee988d9f6d38 TO IDX_A7674C6F8D9F6D38');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_987bee986dec420c TO IDX_A7674C6F6DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_987bee981c696f7a TO IDX_A7674C6F1C696F7A');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_987bee981bfc7547 TO IDX_A7674C6F1BFC7547');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_987bee986bc64adb TO IDX_A7674C6F6BC64ADB');
$this->addSql('ALTER TABLE legal_entity_order RENAME INDEX idx_66af4eee6dec420c TO IDX_8EC5B2226DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX idx_819d44216dec420c TO IDX_B22FDFF66DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX idx_819d44218d9f6d38 TO IDX_B22FDFF68D9F6D38');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX uniq_819d4421c707e018 TO UNIQ_B22FDFF6C707E018');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX uniq_819d4421651855e8 TO UNIQ_B22FDFF6651855E8');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX uniq_819d44215cf11f99 TO UNIQ_B22FDFF65CF11F99');
$this->addSql('ALTER TABLE legal_entity_cart_line RENAME INDEX idx_f12b10df27634bef TO IDX_40AD22B227634BEF');
$this->addSql('ALTER TABLE legal_entity_cart_line RENAME INDEX idx_f12b10df6dec420c TO IDX_40AD22B26DEC420C');
$this->addSql('ALTER TABLE legal_entity DROP INDEX IDX_E21E9E13F446DB3');
$this->addSql('ALTER TABLE legal_entity_active_definition DROP FOREIGN KEY FK_5E2DCB3B27634BEF');
$this->addSql('ALTER TABLE legal_entity_active_definition DROP INDEX idx_5e2dcb3b27634bef');
$this->addSql('TRUNCATE TABLE legal_entity_active_definition');
$this->addSql('ALTER TABLE legal_entity ADD CONSTRAINT FK_E21E9E13F446DB3 FOREIGN KEY (active_definition_id) REFERENCES legal_entity_active_definition (id)');
$this->addSql('ALTER TABLE legal_entity_active_definition ADD FOREIGN KEY (ec_id) REFERENCES substance_ec(id)');
$this->addSql('ALTER TABLE legal_entity_active_definition ADD INDEX IDX_CF711C4B27634BEF (ec_id)');
$this->addSql('ALTER TABLE legal_entity ADD UNIQUE INDEX UNIQ_E21E9E13F446DB3 (active_definition_id)');
$this->addSql('ALTER TABLE legal_entity_license_agreement RENAME INDEX uniq_819b29af6dec420c TO UNIQ_10C7FEDF6DEC420C');
$this->addSql('ALTER TABLE legal_entity_license_agreement RENAME INDEX idx_819b29af8d9f6d38 TO IDX_10C7FEDF8D9F6D38');
$this->addSql('ALTER TABLE legal_entity_license_agreement RENAME INDEX idx_819b29af20f699d9 TO IDX_10C7FEDF20F699D9');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_89bea16f6dec420c TO IDX_465E8546DEC420C');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_89bea16f8d9f6d38 TO IDX_465E8548D9F6D38');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_89bea16f20f699d9 TO IDX_465E85420F699D9');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_89bea16fa42ca874 TO IDX_465E854A42CA874');
$this->addSql('ALTER TABLE legal_entity_order_line_status RENAME INDEX idx_343ca32896dbbde TO IDX_921F1D42896DBBDE');
$this->addSql('ALTER TABLE legal_entity_order_line_status RENAME INDEX idx_343ca32bb01dc09 TO IDX_921F1D42BB01DC09');
$this->addSql('ALTER TABLE legal_entity_order_line_status RENAME INDEX idx_343ca326dec420c TO IDX_921F1D426DEC420C');
$this->addSql('ALTER TABLE legal_entity_billing_company RENAME INDEX uniq_71fa31d58910b08d TO UNIQ_12DFBB778910B08D');
$this->addSql('ALTER TABLE legal_entity_billing_company RENAME INDEX uniq_71fa31d5e7a1254a TO UNIQ_12DFBB77E7A1254A');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers RENAME INDEX idx_eee0edf2ee0306a4 TO IDX_D968422FEE0306A4');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers RENAME INDEX idx_eee0edf227c382c7 TO IDX_D968422F27C382C7');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers RENAME INDEX idx_eee0edf236d3fba2 TO IDX_D968422F36D3FBA2');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers_pending RENAME INDEX idx_fe042d18651855e8 TO IDX_331D1F71651855E8');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers_pending RENAME INDEX idx_fe042d1873445366 TO IDX_331D1F7173445366');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item RENAME INDEX idx_74d4887c2989f1fd TO IDX_2440A5972989F1FD');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item RENAME INDEX idx_74d4887cbb01dc09 TO IDX_2440A597BB01DC09');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item RENAME INDEX idx_74d4887c4bbc2705 TO IDX_2440A5974BBC2705');
$this->addSql('ALTER TABLE legal_entity_order_invoice_reminder RENAME INDEX idx_96bacdaa2989f1fd TO IDX_D917C0CA2989F1FD');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual RENAME INDEX uniq_ef77037b6dec420c TO UNIQ_172225BD6DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual_item RENAME INDEX idx_56d1bac32989f1fd TO IDX_3CFD0B42989F1FD');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual_item RENAME INDEX idx_56d1bac3c707e018 TO IDX_3CFD0B4C707E018');
$this->addSql('ALTER TABLE legal_entity_order_reinvoicing_line CHANGE reason reason VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE legal_entity_order_reinvoicing_line RENAME INDEX idx_d1770c79bb01dc09 TO IDX_9EDA0119BB01DC09');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf('mysql' !== $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('CREATE TABLE _join_table_staff_request_and_member_order_line (staff_request_id INT NOT NULL, order_line_id INT NOT NULL, UNIQUE INDEX UNIQ_BF4D409BBB01DC09 (order_line_id), INDEX IDX_BF4D409BA42CA874 (staff_request_id), PRIMARY KEY(staff_request_id, order_line_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('CREATE TABLE member_active_definition (id INT AUTO_INCREMENT NOT NULL, ec_id INT DEFAULT NULL, petroleum_origin TINYINT(1) DEFAULT NULL, ec_description_matches TINYINT(1) DEFAULT NULL, from_refinery_stream TINYINT(1) DEFAULT NULL, match_boundary_sips TINYINT(1) DEFAULT NULL, uses_listed_in_map TINYINT(1) DEFAULT NULL, tonnage_band INT DEFAULT NULL, cin VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, uscc TINYINT(1) DEFAULT NULL, clp_completed TINYINT(1) DEFAULT NULL, sip_completed TINYINT(1) DEFAULT NULL, importer TINYINT(1) DEFAULT NULL, manufacturer TINYINT(1) DEFAULT NULL, lead_registrant TINYINT(1) DEFAULT NULL, solvent_use TINYINT(1) DEFAULT NULL, INDEX IDX_CBED1027634BEF (ec_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('CREATE TABLE member_cart_line (id INT AUTO_INCREMENT NOT NULL, ec_id INT DEFAULT NULL, legal_entity_id INT DEFAULT NULL, petroleum_origin TINYINT(1) DEFAULT NULL, ec_description_matches TINYINT(1) DEFAULT NULL, from_refinery_stream TINYINT(1) DEFAULT NULL, match_boundary_sips TINYINT(1) DEFAULT NULL, uses_listed_in_map TINYINT(1) DEFAULT NULL, tonnage_band INT DEFAULT NULL, cin VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, uscc TINYINT(1) DEFAULT NULL, clp_completed TINYINT(1) DEFAULT NULL, sip_completed TINYINT(1) DEFAULT NULL, importer TINYINT(1) DEFAULT NULL, manufacturer TINYINT(1) DEFAULT NULL, lead_registrant TINYINT(1) DEFAULT NULL, solvent_use TINYINT(1) DEFAULT NULL, INDEX IDX_7ED9620A27634BEF (ec_id), INDEX IDX_7ED9620A6DEC420C (legal_entity_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('CREATE TABLE member_order_line (id INT AUTO_INCREMENT NOT NULL, legal_entity_id INT DEFAULT NULL, substance_id INT DEFAULT NULL, dossier_id INT DEFAULT NULL, status VARCHAR(255) NOT NULL COLLATE utf8mb4_unicode_ci, created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', UNIQUE INDEX UNIQ_77AB9008C707E018 (substance_id), INDEX IDX_77AB9008611C0C56 (dossier_id), INDEX IDX_77AB90086DEC420C (legal_entity_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE _join_table_staff_request_and_member_order_line ADD CONSTRAINT FK_BF4D409BA42CA874 FOREIGN KEY (staff_request_id) REFERENCES legal_entity_staff_request (id)');
$this->addSql('ALTER TABLE _join_table_staff_request_and_member_order_line ADD CONSTRAINT FK_BF4D409BBB01DC09 FOREIGN KEY (order_line_id) REFERENCES member_order_line (id)');
$this->addSql('ALTER TABLE member_active_definition ADD CONSTRAINT FK_CBED1027634BEF FOREIGN KEY (ec_id) REFERENCES substance_ec (id)');
$this->addSql('ALTER TABLE member_cart_line ADD CONSTRAINT FK_7ED9620A27634BEF FOREIGN KEY (ec_id) REFERENCES substance_ec (id)');
$this->addSql('ALTER TABLE member_cart_line ADD CONSTRAINT FK_7ED9620A6DEC420C FOREIGN KEY (legal_entity_id) REFERENCES legal_entity (id)');
$this->addSql('ALTER TABLE client_entity_folder CHANGE published_ts published_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE client_entity_folder_file CHANGE published_ts published_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE client_entity_news_message CHANGE published_ts published_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE attachment_timestamp attachment_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE contract_signatory CHANGE since since DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE iuclid_date iuclid_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE lead_registrant_agreement CHANGE accepted_at accepted_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE notification_sent notification_sent DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_dossier_update CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE submission_date submission_date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE acceptance_confirmation_date acceptance_confirmation_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_revision_acceptance CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_token CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE expiry_date expiry_date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity DROP INDEX UNIQ_E21E9E13F446DB3, ADD INDEX IDX_E21E9E13F446DB3 (active_definition_id)');
$this->addSql('ALTER TABLE legal_entity DROP FOREIGN KEY FK_E21E9E13F446DB3');
$this->addSql('ALTER TABLE legal_entity CHANGE member member TINYINT(1) DEFAULT NULL, CHANGE invited_ts invited_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE status_at status_at DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE updates_blocked updates_blocked TINYINT(1) DEFAULT NULL, CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE licensing_company_name licensing_company_name VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_only_representative licensing_only_representative TINYINT(1) DEFAULT NULL, CHANGE licensing_address_street1 licensing_address_street1 VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_address_city licensing_address_city VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_address_country licensing_address_country VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_licensee_first_name licensing_licensee_first_name VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_licensee_sur_name licensing_licensee_sur_name VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_licensee_job_title licensing_licensee_job_title VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_licensee_email licensing_licensee_email VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_contact_person_first_name licensing_contact_person_first_name VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_contact_person_sur_name licensing_contact_person_sur_name VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_contact_person_email licensing_contact_person_email VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_postal_address_street1 licensing_postal_address_street1 VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_postal_address_city licensing_postal_address_city VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE licensing_postal_address_country licensing_postal_address_country VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci, CHANGE validation_info_timestamp validation_info_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity RENAME INDEX idx_e21e9e137cd5043f TO IDX_E21E9E13979B1AD6');
$this->addSql('ALTER TABLE legal_entity_active_definition RENAME INDEX idx_cf711c4b27634bef TO IDX_5E2DCB3B27634BEF');
$this->addSql('ALTER TABLE legal_entity_billing_company CHANGE alpha_last_attempt alpha_last_attempt DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE postal_address_alpha_last_attempt postal_address_alpha_last_attempt DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_billing_company RENAME INDEX uniq_12dfbb77e7a1254a TO UNIQ_71FA31D5E7A1254A');
$this->addSql('ALTER TABLE legal_entity_billing_company RENAME INDEX uniq_12dfbb778910b08d TO UNIQ_71FA31D58910B08D');
$this->addSql('ALTER TABLE legal_entity_billing_contact_person CHANGE alpha_last_attempt alpha_last_attempt DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_cart_line RENAME INDEX idx_40ad22b26dec420c TO IDX_F12B10DF6DEC420C');
$this->addSql('ALTER TABLE legal_entity_cart_line RENAME INDEX idx_40ad22b227634bef TO IDX_F12B10DF27634BEF');
$this->addSql('ALTER TABLE legal_entity_contract CHANGE acceptance_notification_sent acceptance_notification_sent DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE accepted_at accepted_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE check_date check_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_465e8548d9f6d38 TO IDX_89BEA16F8D9F6D38');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_465e854a42ca874 TO IDX_89BEA16FA42CA874');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_465e8546dec420c TO IDX_89BEA16F6DEC420C');
$this->addSql('ALTER TABLE legal_entity_contract RENAME INDEX idx_465e85420f699d9 TO IDX_89BEA16F20F699D9');
$this->addSql('ALTER TABLE legal_entity_license_agreement CHANGE document_date document_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE acceptance_notification_sent acceptance_notification_sent DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE accepted_at accepted_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE legacy_file_timestamp legacy_file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_license_agreement RENAME INDEX uniq_10c7fedf6dec420c TO UNIQ_819B29AF6DEC420C');
$this->addSql('ALTER TABLE legal_entity_license_agreement RENAME INDEX idx_10c7fedf20f699d9 TO IDX_819B29AF20F699D9');
$this->addSql('ALTER TABLE legal_entity_license_agreement RENAME INDEX idx_10c7fedf8d9f6d38 TO IDX_819B29AF8D9F6D38');
$this->addSql('ALTER TABLE legal_entity_member_company CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_member_company RENAME INDEX uniq_bd38a77177153098 TO UNIQ_F04BBEDB77153098');
$this->addSql('ALTER TABLE legal_entity_member_company RENAME INDEX idx_bd38a771a76ed395 TO IDX_F04BBEDBA76ED395');
$this->addSql('ALTER TABLE legal_entity_member_company_remark CHANGE date date DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_member_company_remark RENAME INDEX idx_28b6a073f675f31b TO IDX_38B865FFF675F31B');
$this->addSql('ALTER TABLE legal_entity_member_company_remark RENAME INDEX idx_28b6a073979b1ad6 TO IDX_38B865FF979B1AD6');
$this->addSql('ALTER TABLE legal_entity_news_recipient CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE confirmation_timestamp confirmation_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order RENAME INDEX idx_8ec5b2226dec420c TO IDX_66AF4EEE6DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_invoice CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE sent_date sent_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE payment_date payment_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE cancellation_date cancellation_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE alpha_last_attempt alpha_last_attempt DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_a7674c6f8d9f6d38 TO IDX_987BEE988D9F6D38');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_a7674c6f1c696f7a TO IDX_987BEE981C696F7A');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_a7674c6f6bc64adb TO IDX_987BEE986BC64ADB');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_a7674c6f6dec420c TO IDX_987BEE986DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_invoice RENAME INDEX idx_a7674c6f1bfc7547 TO IDX_987BEE981BFC7547');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item RENAME INDEX idx_2440a5972989f1fd TO IDX_74D4887C2989F1FD');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item RENAME INDEX idx_2440a5974bbc2705 TO IDX_74D4887C4BBC2705');
$this->addSql('ALTER TABLE legal_entity_order_invoice_item RENAME INDEX idx_2440a597bb01dc09 TO IDX_74D4887CBB01DC09');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE sent_date sent_date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE payment_date payment_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE reminder1 reminder1 DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE reminder2 reminder2 DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual RENAME INDEX uniq_172225bd6dec420c TO UNIQ_EF77037B6DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual_item CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual_item RENAME INDEX idx_3cfd0b42989f1fd TO IDX_56D1BAC32989F1FD');
$this->addSql('ALTER TABLE legal_entity_order_invoice_manual_item RENAME INDEX idx_3cfd0b4c707e018 TO IDX_56D1BAC3C707E018');
$this->addSql('ALTER TABLE legal_entity_order_invoice_reminder CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_invoice_reminder RENAME INDEX idx_d917c0ca2989f1fd TO IDX_96BACDAA2989F1FD');
$this->addSql('ALTER TABLE legal_entity_order_line CHANGE cancellation_date cancellation_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX uniq_b22fdff6c707e018 TO UNIQ_819D4421C707E018');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX uniq_b22fdff65cf11f99 TO UNIQ_819D44215CF11F99');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX idx_b22fdff68d9f6d38 TO IDX_819D44218D9F6D38');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX uniq_b22fdff6651855e8 TO UNIQ_819D4421651855E8');
$this->addSql('ALTER TABLE legal_entity_order_line RENAME INDEX idx_b22fdff66dec420c TO IDX_819D44216DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers RENAME INDEX idx_d968422fee0306a4 TO IDX_EEE0EDF2EE0306A4');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers RENAME INDEX idx_d968422f36d3fba2 TO IDX_EEE0EDF236D3FBA2');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers RENAME INDEX idx_d968422f27c382c7 TO IDX_EEE0EDF227C382C7');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers_pending RENAME INDEX idx_331d1f7173445366 TO IDX_FE042D1873445366');
$this->addSql('ALTER TABLE legal_entity_order_line_dossiers_pending RENAME INDEX idx_331d1f71651855e8 TO IDX_FE042D18651855E8');
$this->addSql('ALTER TABLE legal_entity_order_line_status CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_order_line_status RENAME INDEX idx_921f1d42896dbbde TO IDX_343CA32896DBBDE');
$this->addSql('ALTER TABLE legal_entity_order_line_status RENAME INDEX idx_921f1d426dec420c TO IDX_343CA326DEC420C');
$this->addSql('ALTER TABLE legal_entity_order_line_status RENAME INDEX idx_921f1d42bb01dc09 TO IDX_343CA32BB01DC09');
$this->addSql('ALTER TABLE legal_entity_order_reinvoicing_line CHANGE reason reason VARCHAR(255) DEFAULT NULL COLLATE utf8mb4_unicode_ci');
$this->addSql('ALTER TABLE legal_entity_order_reinvoicing_line RENAME INDEX idx_9eda0119bb01dc09 TO IDX_D1770C79BB01DC09');
$this->addSql('ALTER TABLE legal_entity_remark CHANGE date date DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_staff_request CHANGE handled_at handled_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE assigned_at assigned_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE mail_archive_message CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE mail_archive_message_attachment CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE mail_archive_message_recipient CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE messaging_request CHANGE deadline deadline DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE messaging_request_message CHANGE read_timestamp read_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE messaging_request_message_attachment CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE security_group CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE security_user CHANGE invited invited DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE token_expires token_expires DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE security_user_mail_archive_message CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE security_user_notification CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE security_user_profile CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE security_user_sign_in_history CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_category CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_definition CHANGE cease_of_manufacturer_ts cease_of_manufacturer_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE tonnage_band_proof_approved_at tonnage_band_proof_approved_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE tonnage_band_proof_timestamp tonnage_band_proof_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_dossier CHANGE valid_from_ts valid_from_ts DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_ec CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_inventory CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_email CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_help_document CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_timestamp file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_settings CHANGE sip_profiles_timestamp sip_profiles_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE uses_map_timestamp uses_map_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE pricing_list_timestamp pricing_list_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_staff_member CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE image_timestamp image_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_template CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
}
}