<?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 Version20190204120329 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('CREATE TABLE _join_table_contract_and_invoice_item (contract_id INT NOT NULL, invoice_item_id INT NOT NULL, INDEX IDX_D392CBFC2576E0FD (contract_id), INDEX IDX_D392CBFCE0B6648D (invoice_item_id), PRIMARY KEY(contract_id, invoice_item_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');
$this->addSql('ALTER TABLE _join_table_contract_and_invoice_item ADD CONSTRAINT FK_D392CBFC2576E0FD FOREIGN KEY (contract_id) REFERENCES non_member_contract (id)');
$this->addSql('ALTER TABLE _join_table_contract_and_invoice_item ADD CONSTRAINT FK_D392CBFCE0B6648D FOREIGN KEY (invoice_item_id) REFERENCES non_member_order_invoice_item (id)');
$this->addSql('ALTER TABLE non_member_contract CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE accepted_by_id accepted_by_id INT DEFAULT NULL, CHANGE acceptance_notification_sent acceptance_notification_sent DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE accepted_ip accepted_ip VARCHAR(255) DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL, CHANGE type type VARCHAR(255) DEFAULT NULL, CHANGE check_date check_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE legal_entity_news_recipient CHANGE legal_entity_id legal_entity_id INT 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 confirmation_timestamp confirmation_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE confirmation_ip confirmation_ip VARCHAR(255) DEFAULT NULL, CHANGE confirmation_secret confirmation_secret VARCHAR(255) DEFAULT NULL, CHANGE confirmation_confirmed confirmation_confirmed TINYINT(1) DEFAULT NULL');
$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_name attachment_name VARCHAR(255) DEFAULT NULL, CHANGE attachment_path attachment_path VARCHAR(255) DEFAULT NULL, CHANGE attachment_mime_type attachment_mime_type VARCHAR(255) DEFAULT NULL, CHANGE attachment_size attachment_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE system_staff_member CHANGE phone phone VARCHAR(255) 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 image_name image_name VARCHAR(255) DEFAULT NULL, CHANGE image_path image_path VARCHAR(255) DEFAULT NULL, CHANGE image_mime_type image_mime_type VARCHAR(255) DEFAULT NULL, CHANGE image_size image_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE security_user_notification CHANGE user_id user_id INT DEFAULT NULL, CHANGE route route VARCHAR(255) DEFAULT NULL, CHANGE params params JSON DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE lead_registrant CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE user_id user_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE company_id company_id INT DEFAULT NULL, CHANGE legacy_email legacy_email VARCHAR(255) DEFAULT NULL, CHANGE jso_name jso_name VARCHAR(255) DEFAULT NULL, CHANGE status status VARCHAR(255) 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 iuclid_version iuclid_version VARCHAR(255) DEFAULT NULL, CHANGE iuclid_date iuclid_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE lead_registrant_dossier_update CHANGE submitted_by_id submitted_by_id INT DEFAULT NULL, CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, 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 NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE messaging_request CHANGE recipient_id recipient_id INT DEFAULT NULL, CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE latest_id latest_id INT DEFAULT NULL, CHANGE author_id author_id INT DEFAULT NULL, 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 request_id request_id INT DEFAULT NULL, CHANGE author_id author_id INT DEFAULT NULL, 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 message_id message_id INT 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 file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_license_agreement CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE accepted_by_id accepted_by_id INT DEFAULT NULL, CHANGE acceptance_notification_sent acceptance_notification_sent DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE accepted_ip accepted_ip VARCHAR(255) DEFAULT NULL, 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_name legacy_file_name VARCHAR(255) DEFAULT NULL, CHANGE legacy_file_path legacy_file_path VARCHAR(255) DEFAULT NULL, CHANGE legacy_file_mime_type legacy_file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE legacy_file_size legacy_file_size INT DEFAULT NULL, CHANGE file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL, CHANGE document_date document_date DATE DEFAULT NULL COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE non_member_order_invoice CHANGE order_id order_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE credit_note_id credit_note_id INT DEFAULT NULL, CHANGE number number VARCHAR(255) DEFAULT NULL, CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE purchase_order_number purchase_order_number VARCHAR(255) DEFAULT NULL, 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_code alpha_code VARCHAR(255) DEFAULT NULL, CHANGE file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_entity CHANGE user_id user_id INT DEFAULT NULL, CHANGE status_by_id status_by_id INT DEFAULT NULL, CHANGE company_id company_id INT DEFAULT NULL, CHANGE billing_company_id billing_company_id INT DEFAULT NULL, CHANGE echa_name echa_name VARCHAR(255) 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 created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE address_street2 address_street2 VARCHAR(255) DEFAULT NULL, CHANGE address_street3 address_street3 VARCHAR(255) DEFAULT NULL, CHANGE address_zip_code address_zip_code VARCHAR(255) DEFAULT NULL, CHANGE validation_info_timestamp validation_info_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE validation_info_ip validation_info_ip VARCHAR(255) DEFAULT NULL, CHANGE validation_info_user_agent validation_info_user_agent VARCHAR(255) DEFAULT NULL, CHANGE active_definition_id active_definition_id INT DEFAULT NULL, CHANGE licensing_company_name licensing_company_name VARCHAR(255) DEFAULT NULL, CHANGE licensing_only_representative licensing_only_representative TINYINT(1) DEFAULT NULL, CHANGE licensing_principal licensing_principal VARCHAR(255) DEFAULT NULL, CHANGE licensing_purchase_order_number licensing_purchase_order_number VARCHAR(255) DEFAULT NULL, CHANGE licensing_address_street1 licensing_address_street1 VARCHAR(255) DEFAULT NULL, CHANGE licensing_address_street2 licensing_address_street2 VARCHAR(255) DEFAULT NULL, CHANGE licensing_address_street3 licensing_address_street3 VARCHAR(255) DEFAULT NULL, CHANGE licensing_address_zip_code licensing_address_zip_code VARCHAR(255) DEFAULT NULL, CHANGE licensing_address_city licensing_address_city VARCHAR(255) DEFAULT NULL, CHANGE licensing_address_country licensing_address_country VARCHAR(255) DEFAULT NULL, CHANGE licensing_licensee_first_name licensing_licensee_first_name VARCHAR(255) DEFAULT NULL, CHANGE licensing_licensee_sur_name licensing_licensee_sur_name VARCHAR(255) DEFAULT NULL, CHANGE licensing_licensee_job_title licensing_licensee_job_title VARCHAR(255) DEFAULT NULL, CHANGE licensing_contact_person_job_title licensing_contact_person_job_title VARCHAR(255) DEFAULT NULL, CHANGE licensing_contact_person_phone_number licensing_contact_person_phone_number VARCHAR(255) DEFAULT NULL, CHANGE licensing_contact_person_first_name licensing_contact_person_first_name VARCHAR(255) DEFAULT NULL, CHANGE licensing_contact_person_sur_name licensing_contact_person_sur_name VARCHAR(255) DEFAULT NULL, CHANGE licensing_contact_person_email licensing_contact_person_email VARCHAR(255) DEFAULT NULL, CHANGE licensing_postal_address_street1 licensing_postal_address_street1 VARCHAR(255) DEFAULT NULL, CHANGE licensing_postal_address_street2 licensing_postal_address_street2 VARCHAR(255) DEFAULT NULL, CHANGE licensing_postal_address_street3 licensing_postal_address_street3 VARCHAR(255) DEFAULT NULL, CHANGE licensing_postal_address_zip_code licensing_postal_address_zip_code VARCHAR(255) DEFAULT NULL, CHANGE licensing_postal_address_city licensing_postal_address_city VARCHAR(255) DEFAULT NULL, CHANGE licensing_postal_address_country licensing_postal_address_country VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE member_cart_line CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT NULL, CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT NULL, CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT NULL, CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT NULL, CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT NULL, CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT NULL, CHANGE uscc uscc TINYINT(1) DEFAULT NULL, CHANGE clp_completed clp_completed TINYINT(1) DEFAULT NULL, CHANGE sip_completed sip_completed TINYINT(1) DEFAULT NULL, CHANGE importer importer TINYINT(1) DEFAULT NULL, CHANGE manufacturer manufacturer TINYINT(1) DEFAULT NULL, CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT NULL, CHANGE solvent_use solvent_use TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE member_order_line CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE substance_id substance_id INT DEFAULT NULL, CHANGE dossier_id dossier_id INT DEFAULT NULL, 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 non_member_cart_line CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT NULL, CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT NULL, CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT NULL, CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT NULL, CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT NULL, CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT NULL, CHANGE uscc uscc TINYINT(1) DEFAULT NULL, CHANGE clp_completed clp_completed TINYINT(1) DEFAULT NULL, CHANGE sip_completed sip_completed TINYINT(1) DEFAULT NULL, CHANGE importer importer TINYINT(1) DEFAULT NULL, CHANGE manufacturer manufacturer TINYINT(1) DEFAULT NULL, CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT NULL, CHANGE license license TINYINT(1) DEFAULT NULL, CHANGE subscription subscription TINYINT(1) DEFAULT NULL, CHANGE solvent_use solvent_use TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_line CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE substance_id substance_id INT DEFAULT NULL, CHANGE dossiers_id dossiers_id INT DEFAULT NULL, CHANGE status status VARCHAR(255) 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 pricing_license pricing_license INT DEFAULT NULL, CHANGE pricing_subscription pricing_subscription INT DEFAULT NULL');
$this->addSql('ALTER TABLE substance_dossier CHANGE category_id category_id INT DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$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 client_entity_folder_file CHANGE folder_id folder_id INT DEFAULT NULL, CHANGE published_ts published_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE comment comment VARCHAR(255) 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 file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE client_entity_folder CHANGE tree_root tree_root INT DEFAULT NULL, CHANGE tree_parent tree_parent INT DEFAULT NULL, 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 lead_registrant_token CHANGE uploaded_by_id uploaded_by_id INT DEFAULT NULL, CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE mail_archive_message CHANGE from_email from_email VARCHAR(255) DEFAULT NULL, CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_definition CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE token_id token_id INT DEFAULT NULL, CHANGE legacy_cas legacy_cas VARCHAR(255) DEFAULT NULL, CHANGE legacy_email legacy_email VARCHAR(255) DEFAULT NULL, CHANGE deadline deadline INT DEFAULT NULL, CHANGE cease_of_manufacturer_ts cease_of_manufacturer_ts DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE registered registered TINYINT(1) DEFAULT NULL, CHANGE registration_number registration_number VARCHAR(255) DEFAULT NULL, CHANGE clp_completed clp_completed TINYINT(1) DEFAULT NULL, CHANGE sip_completed sip_completed TINYINT(1) DEFAULT NULL, CHANGE legacy_id legacy_id INT DEFAULT NULL, 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 member_company CHANGE user_id user_id INT 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 address_street2 address_street2 VARCHAR(255) DEFAULT NULL, CHANGE address_street3 address_street3 VARCHAR(255) DEFAULT NULL, CHANGE address_zip_code address_zip_code VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE member_company_remark CHANGE author_id author_id INT DEFAULT NULL, CHANGE company_id company_id INT DEFAULT NULL, CHANGE date date DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE non_member_order_invoice_item CHANGE invoice_id invoice_id INT DEFAULT NULL, CHANGE order_line_id order_line_id INT DEFAULT NULL, CHANGE version_id version_id INT 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 year year INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_entity_remark CHANGE author_id author_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE date date DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_staff_request CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE handled_by_id handled_by_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE handled_at handled_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 system_template 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)\'');
$this->addSql('ALTER TABLE security_user_profile CHANGE user_id user_id INT DEFAULT NULL, CHANGE title title VARCHAR(255) DEFAULT NULL, CHANGE first_name first_name VARCHAR(255) DEFAULT NULL, CHANGE sur_name sur_name VARCHAR(255) DEFAULT NULL, 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 user_id user_id INT DEFAULT NULL, 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_group CHANGE description description VARCHAR(255) DEFAULT NULL, 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_mail_archive_message CHANGE user_id user_id INT DEFAULT NULL, 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 member_active_definition CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT NULL, CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT NULL, CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT NULL, CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT NULL, CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT NULL, CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT NULL, CHANGE uscc uscc TINYINT(1) DEFAULT NULL, CHANGE clp_completed clp_completed TINYINT(1) DEFAULT NULL, CHANGE sip_completed sip_completed TINYINT(1) DEFAULT NULL, CHANGE importer importer TINYINT(1) DEFAULT NULL, CHANGE manufacturer manufacturer TINYINT(1) DEFAULT NULL, CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT NULL, CHANGE solvent_use solvent_use TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE purchase_order_number purchase_order_number VARCHAR(255) 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 billing_contact_job_title billing_contact_job_title VARCHAR(255) DEFAULT NULL, CHANGE billing_contact_phone_number billing_contact_phone_number VARCHAR(255) DEFAULT NULL, CHANGE billing_address_street2 billing_address_street2 VARCHAR(255) DEFAULT NULL, CHANGE billing_address_street3 billing_address_street3 VARCHAR(255) DEFAULT NULL, CHANGE billing_address_zip_code billing_address_zip_code VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_active_definition CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT NULL, CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT NULL, CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT NULL, CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT NULL, CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT NULL, CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT NULL, CHANGE uscc uscc TINYINT(1) DEFAULT NULL, CHANGE clp_completed clp_completed TINYINT(1) DEFAULT NULL, CHANGE sip_completed sip_completed TINYINT(1) DEFAULT NULL, CHANGE importer importer TINYINT(1) DEFAULT NULL, CHANGE manufacturer manufacturer TINYINT(1) DEFAULT NULL, CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT NULL, CHANGE include_license include_license TINYINT(1) DEFAULT NULL, CHANGE solvent_use solvent_use TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_line_status CHANGE updated_by_id updated_by_id INT DEFAULT NULL, CHANGE order_line_id order_line_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, 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 non_member_billing_company CHANGE contact_id contact_id INT DEFAULT NULL, CHANGE street2 street2 VARCHAR(255) DEFAULT NULL, CHANGE street3 street3 VARCHAR(255) DEFAULT NULL, CHANGE zip_code zip_code VARCHAR(255) DEFAULT NULL, CHANGE alpha_code alpha_code VARCHAR(255) DEFAULT NULL, CHANGE postal_address_alpha_code postal_address_alpha_code VARCHAR(255) DEFAULT NULL, CHANGE vat_company_name vat_company_name VARCHAR(255) DEFAULT NULL, CHANGE vat_prefix vat_prefix VARCHAR(255) DEFAULT NULL, CHANGE vat_number vat_number VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE substance_ec CHANGE category_id category_id INT DEFAULT NULL, 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_agreement CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, CHANGE accepted_by_id accepted_by_id INT DEFAULT NULL, CHANGE accepted_ip accepted_ip VARCHAR(255) DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE lead_registrant_revision_acceptance CHANGE submitted_by_id submitted_by_id INT DEFAULT NULL, CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_alpha_country CHANGE vat_prefix vat_prefix VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE system_settings CHANGE sip_profiles_name sip_profiles_name VARCHAR(255) DEFAULT NULL, CHANGE sip_profiles_path sip_profiles_path VARCHAR(255) DEFAULT NULL, CHANGE sip_profiles_mime_type sip_profiles_mime_type VARCHAR(255) DEFAULT NULL, CHANGE sip_profiles_size sip_profiles_size INT DEFAULT NULL, CHANGE uses_map_name uses_map_name VARCHAR(255) DEFAULT NULL, CHANGE uses_map_path uses_map_path VARCHAR(255) DEFAULT NULL, CHANGE uses_map_mime_type uses_map_mime_type VARCHAR(255) DEFAULT NULL, CHANGE uses_map_size uses_map_size INT DEFAULT NULL, CHANGE pricing_list_name pricing_list_name VARCHAR(255) DEFAULT NULL, CHANGE pricing_list_path pricing_list_path VARCHAR(255) DEFAULT NULL, CHANGE pricing_list_mime_type pricing_list_mime_type VARCHAR(255) DEFAULT NULL, CHANGE pricing_list_size pricing_list_size INT DEFAULT NULL');
$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_inventory CHANGE working_version working_version INT 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 file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$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 mail_archive_message_attachment CHANGE message_id message_id INT 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 file_name file_name VARCHAR(255) DEFAULT NULL, CHANGE file_path file_path VARCHAR(255) DEFAULT NULL, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT NULL, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_billing_contact_person CHANGE job_title job_title VARCHAR(255) DEFAULT NULL, CHANGE phone_number phone_number VARCHAR(255) DEFAULT NULL, CHANGE alpha_code alpha_code VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_invoice_reminder CHANGE invoice_id invoice_id INT DEFAULT NULL, 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 non_member_order_line_dossiers CHANGE initial_id initial_id INT DEFAULT NULL, CHANGE active_id active_id INT DEFAULT NULL, CHANGE available_id available_id INT DEFAULT NULL, CHANGE update_fee update_fee INT DEFAULT NULL');
$this->addSql('ALTER TABLE system_worker CHANGE tracer_id tracer_id INT DEFAULT NULL, CHANGE tracer_type tracer_type VARCHAR(255) DEFAULT NULL, CHANGE tracer_pending_text tracer_pending_text VARCHAR(255) DEFAULT NULL, CHANGE tracer_running_text tracer_running_text VARCHAR(255) DEFAULT NULL');
}
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('DROP TABLE _join_table_contract_and_invoice_item');
$this->addSql('ALTER TABLE client_entity_folder CHANGE tree_root tree_root INT DEFAULT NULL, CHANGE tree_parent tree_parent INT DEFAULT NULL, 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 folder_id folder_id INT DEFAULT NULL, CHANGE published_ts published_ts DATETIME DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondatetime)\', CHANGE comment comment VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$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_name attachment_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE attachment_path attachment_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE attachment_mime_type attachment_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE attachment_size attachment_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE lead_registrant CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE user_id user_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE company_id company_id INT DEFAULT NULL, CHANGE legacy_email legacy_email VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE jso_name jso_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE status status VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE iuclid_version iuclid_version VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE iuclid_date iuclid_date DATE DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE lead_registrant_agreement CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, CHANGE accepted_by_id accepted_by_id INT DEFAULT NULL, CHANGE accepted_ip accepted_ip VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, 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_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE lead_registrant_dossier_update CHANGE submitted_by_id submitted_by_id INT DEFAULT NULL, CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, 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 NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE lead_registrant_revision_acceptance CHANGE submitted_by_id submitted_by_id INT DEFAULT NULL, CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_token CHANGE uploaded_by_id uploaded_by_id INT DEFAULT NULL, CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE lead_registrant_id lead_registrant_id INT DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE legal_entity CHANGE user_id user_id INT DEFAULT NULL, CHANGE status_by_id status_by_id INT DEFAULT NULL, CHANGE company_id company_id INT DEFAULT NULL, CHANGE billing_company_id billing_company_id INT DEFAULT NULL, CHANGE echa_name echa_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE invited_ts invited_ts DATETIME DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondatetime)\', CHANGE status_at status_at 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 address_street2 address_street2 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE address_street3 address_street3 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE address_zip_code address_zip_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE validation_info_timestamp validation_info_timestamp DATETIME DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondatetime)\', CHANGE validation_info_ip validation_info_ip VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE validation_info_user_agent validation_info_user_agent VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE active_definition_id active_definition_id INT DEFAULT NULL, 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_principal licensing_principal VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_purchase_order_number licensing_purchase_order_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_address_street1 licensing_address_street1 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_address_street2 licensing_address_street2 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_address_street3 licensing_address_street3 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_address_zip_code licensing_address_zip_code 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_contact_person_job_title licensing_contact_person_job_title VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_contact_person_phone_number licensing_contact_person_phone_number 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_street2 licensing_postal_address_street2 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_postal_address_street3 licensing_postal_address_street3 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE licensing_postal_address_zip_code licensing_postal_address_zip_code 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');
$this->addSql('ALTER TABLE legal_entity_news_recipient CHANGE legal_entity_id legal_entity_id INT 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 confirmation_timestamp confirmation_timestamp DATETIME DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondatetime)\', CHANGE confirmation_ip confirmation_ip VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE confirmation_secret confirmation_secret VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE confirmation_confirmed confirmation_confirmed TINYINT(1) DEFAULT \'NULL\'');
$this->addSql('ALTER TABLE legal_entity_remark CHANGE author_id author_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE date date DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE legal_entity_staff_request CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE handled_by_id handled_by_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE handled_at handled_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 from_email from_email VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE timestamp timestamp DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE mail_archive_message_attachment CHANGE message_id message_id INT 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 file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$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 member_active_definition CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT \'NULL\', CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT \'NULL\', CHANGE solvent_use solvent_use TINYINT(1) DEFAULT \'NULL\', CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT \'NULL\', CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT \'NULL\', CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT \'NULL\', CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uscc uscc TINYINT(1) DEFAULT \'NULL\', CHANGE clp_completed clp_completed TINYINT(1) DEFAULT \'NULL\', CHANGE sip_completed sip_completed TINYINT(1) DEFAULT \'NULL\', CHANGE importer importer TINYINT(1) DEFAULT \'NULL\', CHANGE manufacturer manufacturer TINYINT(1) DEFAULT \'NULL\', CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT \'NULL\'');
$this->addSql('ALTER TABLE member_cart_line CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT \'NULL\', CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT \'NULL\', CHANGE solvent_use solvent_use TINYINT(1) DEFAULT \'NULL\', CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT \'NULL\', CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT \'NULL\', CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT \'NULL\', CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uscc uscc TINYINT(1) DEFAULT \'NULL\', CHANGE clp_completed clp_completed TINYINT(1) DEFAULT \'NULL\', CHANGE sip_completed sip_completed TINYINT(1) DEFAULT \'NULL\', CHANGE importer importer TINYINT(1) DEFAULT \'NULL\', CHANGE manufacturer manufacturer TINYINT(1) DEFAULT \'NULL\', CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT \'NULL\'');
$this->addSql('ALTER TABLE member_company CHANGE user_id user_id INT 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 address_street2 address_street2 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE address_street3 address_street3 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE address_zip_code address_zip_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci');
$this->addSql('ALTER TABLE member_company_remark CHANGE author_id author_id INT DEFAULT NULL, CHANGE company_id company_id INT DEFAULT NULL, CHANGE date date DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE member_order_line CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE substance_id substance_id INT DEFAULT NULL, CHANGE dossier_id dossier_id INT DEFAULT NULL, 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 recipient_id recipient_id INT DEFAULT NULL, CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE latest_id latest_id INT DEFAULT NULL, CHANGE author_id author_id INT DEFAULT NULL, 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 request_id request_id INT DEFAULT NULL, CHANGE author_id author_id INT DEFAULT NULL, 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 message_id message_id INT 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 file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_active_definition CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT \'NULL\', CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT \'NULL\', CHANGE solvent_use solvent_use TINYINT(1) DEFAULT \'NULL\', CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT \'NULL\', CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT \'NULL\', CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT \'NULL\', CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uscc uscc TINYINT(1) DEFAULT \'NULL\', CHANGE clp_completed clp_completed TINYINT(1) DEFAULT \'NULL\', CHANGE sip_completed sip_completed TINYINT(1) DEFAULT \'NULL\', CHANGE importer importer TINYINT(1) DEFAULT \'NULL\', CHANGE manufacturer manufacturer TINYINT(1) DEFAULT \'NULL\', CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT \'NULL\', CHANGE include_license include_license TINYINT(1) DEFAULT \'NULL\'');
$this->addSql('ALTER TABLE non_member_billing_company CHANGE contact_id contact_id INT DEFAULT NULL, CHANGE street2 street2 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE street3 street3 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE zip_code zip_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE alpha_code alpha_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE postal_address_alpha_code postal_address_alpha_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE vat_company_name vat_company_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE vat_prefix vat_prefix VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE vat_number vat_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci');
$this->addSql('ALTER TABLE non_member_billing_contact_person CHANGE job_title job_title VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE phone_number phone_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE alpha_code alpha_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci');
$this->addSql('ALTER TABLE non_member_cart_line CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE petroleum_origin petroleum_origin TINYINT(1) DEFAULT \'NULL\', CHANGE ec_description_matches ec_description_matches TINYINT(1) DEFAULT \'NULL\', CHANGE solvent_use solvent_use TINYINT(1) DEFAULT \'NULL\', CHANGE from_refinery_stream from_refinery_stream TINYINT(1) DEFAULT \'NULL\', CHANGE match_boundary_sips match_boundary_sips TINYINT(1) DEFAULT \'NULL\', CHANGE uses_listed_in_map uses_listed_in_map TINYINT(1) DEFAULT \'NULL\', CHANGE tonnage_band tonnage_band INT DEFAULT NULL, CHANGE cin cin VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uscc uscc TINYINT(1) DEFAULT \'NULL\', CHANGE clp_completed clp_completed TINYINT(1) DEFAULT \'NULL\', CHANGE sip_completed sip_completed TINYINT(1) DEFAULT \'NULL\', CHANGE importer importer TINYINT(1) DEFAULT \'NULL\', CHANGE manufacturer manufacturer TINYINT(1) DEFAULT \'NULL\', CHANGE lead_registrant lead_registrant TINYINT(1) DEFAULT \'NULL\', CHANGE license license TINYINT(1) DEFAULT \'NULL\', CHANGE subscription subscription TINYINT(1) DEFAULT \'NULL\'');
$this->addSql('ALTER TABLE non_member_contract CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE accepted_by_id accepted_by_id INT DEFAULT NULL, CHANGE acceptance_notification_sent acceptance_notification_sent DATE DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondate)\', CHANGE accepted_ip accepted_ip VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, 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_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL, CHANGE type type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE check_date check_date DATE DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondate)\'');
$this->addSql('ALTER TABLE non_member_license_agreement CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE accepted_by_id accepted_by_id INT DEFAULT NULL, 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_ip accepted_ip VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, 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_name legacy_file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE legacy_file_path legacy_file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE legacy_file_mime_type legacy_file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE legacy_file_size legacy_file_size INT DEFAULT NULL, CHANGE file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE purchase_order_number purchase_order_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE billing_contact_job_title billing_contact_job_title VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE billing_contact_phone_number billing_contact_phone_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE billing_address_street2 billing_address_street2 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE billing_address_street3 billing_address_street3 VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE billing_address_zip_code billing_address_zip_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci');
$this->addSql('ALTER TABLE non_member_order_invoice CHANGE order_id order_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE credit_note_id credit_note_id INT DEFAULT NULL, CHANGE number number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE date date DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', CHANGE purchase_order_number purchase_order_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, 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_code alpha_code VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_invoice_item CHANGE invoice_id invoice_id INT DEFAULT NULL, CHANGE order_line_id order_line_id INT DEFAULT NULL, CHANGE version_id version_id INT 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 year year INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_invoice_reminder CHANGE invoice_id invoice_id INT DEFAULT NULL, 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 non_member_order_line CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE order_id order_id INT DEFAULT NULL, CHANGE substance_id substance_id INT DEFAULT NULL, CHANGE dossiers_id dossiers_id INT DEFAULT NULL, CHANGE status status VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE pricing_license pricing_license INT DEFAULT NULL, CHANGE pricing_subscription pricing_subscription INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_line_dossiers CHANGE initial_id initial_id INT DEFAULT NULL, CHANGE active_id active_id INT DEFAULT NULL, CHANGE available_id available_id INT DEFAULT NULL, CHANGE update_fee update_fee INT DEFAULT NULL');
$this->addSql('ALTER TABLE non_member_order_line_status CHANGE updated_by_id updated_by_id INT DEFAULT NULL, CHANGE order_line_id order_line_id INT DEFAULT NULL, CHANGE legal_entity_id legal_entity_id INT DEFAULT NULL, 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_group CHANGE description description VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, 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)\'');
$this->addSql('ALTER TABLE security_user_mail_archive_message CHANGE user_id user_id INT DEFAULT NULL, 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 user_id user_id INT DEFAULT NULL, CHANGE route route VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE params params LONGTEXT DEFAULT NULL COLLATE utf8mb4_bin, 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 user_id user_id INT DEFAULT NULL, CHANGE title title VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE first_name first_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE sur_name sur_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, 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 user_id user_id INT DEFAULT NULL, 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 legal_entity_id legal_entity_id INT DEFAULT NULL, CHANGE ec_id ec_id INT DEFAULT NULL, CHANGE token_id token_id INT DEFAULT NULL, CHANGE legacy_cas legacy_cas VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE legacy_email legacy_email VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE deadline deadline INT DEFAULT NULL, CHANGE cease_of_manufacturer_ts cease_of_manufacturer_ts DATETIME DEFAULT \'NULL\' COMMENT \'(DC2Type:carbondatetime)\', CHANGE registered registered TINYINT(1) DEFAULT \'NULL\', CHANGE registration_number registration_number VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE clp_completed clp_completed TINYINT(1) DEFAULT \'NULL\', CHANGE sip_completed sip_completed TINYINT(1) DEFAULT \'NULL\', CHANGE legacy_id legacy_id INT DEFAULT NULL, 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_dossier CHANGE category_id category_id INT DEFAULT NULL, 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_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE substance_ec CHANGE category_id category_id INT DEFAULT NULL, 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 working_version working_version INT 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 file_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE system_alpha_country CHANGE vat_prefix vat_prefix VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci');
$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_name file_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_path file_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_mime_type file_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE file_size file_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE system_settings CHANGE sip_profiles_name sip_profiles_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE sip_profiles_path sip_profiles_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE sip_profiles_mime_type sip_profiles_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE sip_profiles_size sip_profiles_size INT DEFAULT NULL, CHANGE uses_map_name uses_map_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uses_map_path uses_map_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uses_map_mime_type uses_map_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE uses_map_size uses_map_size INT DEFAULT NULL, CHANGE pricing_list_name pricing_list_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE pricing_list_path pricing_list_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE pricing_list_mime_type pricing_list_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE pricing_list_size pricing_list_size INT DEFAULT NULL');
$this->addSql('ALTER TABLE system_staff_member CHANGE phone phone VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE created_at created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE updated_at updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', CHANGE image_name image_name VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE image_path image_path VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE image_mime_type image_mime_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE image_size image_size INT DEFAULT NULL');
$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)\'');
$this->addSql('ALTER TABLE system_worker CHANGE tracer_id tracer_id INT DEFAULT NULL, CHANGE tracer_type tracer_type VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE tracer_pending_text tracer_pending_text VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci, CHANGE tracer_running_text tracer_running_text VARCHAR(255) DEFAULT \'NULL\' COLLATE utf8mb4_unicode_ci');
}
}