<?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 Version20200123155749 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 client_entity_news_message ADD attachment_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_staff_member ADD image_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_help_document ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_dossier_update ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE messaging_request_message_attachment ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE non_member_contract ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE non_member_license_agreement ADD legacy_file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE non_member_order_invoice ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_dossier ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE client_entity_folder_file ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_token ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_definition ADD tonnage_band_proof_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE lead_registrant_agreement ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE mail_archive_message_attachment ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE substance_inventory ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE system_settings ADD sip_profiles_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', ADD uses_map_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\', ADD pricing_list_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
$this->addSql('ALTER TABLE non_member_order_invoice_manual ADD file_timestamp DATETIME DEFAULT NULL COMMENT \'(DC2Type:carbondatetime)\'');
}
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('ALTER TABLE client_entity_folder_file DROP file_timestamp');
$this->addSql('ALTER TABLE client_entity_news_message DROP attachment_timestamp');
$this->addSql('ALTER TABLE lead_registrant_agreement DROP file_timestamp');
$this->addSql('ALTER TABLE lead_registrant_dossier_update DROP file_timestamp');
$this->addSql('ALTER TABLE lead_registrant_token DROP file_timestamp');
$this->addSql('ALTER TABLE mail_archive_message_attachment DROP file_timestamp');
$this->addSql('ALTER TABLE messaging_request_message_attachment DROP file_timestamp');
$this->addSql('ALTER TABLE non_member_contract DROP file_timestamp');
$this->addSql('ALTER TABLE non_member_license_agreement DROP legacy_file_timestamp, DROP file_timestamp');
$this->addSql('ALTER TABLE non_member_order_invoice DROP file_timestamp');
$this->addSql('ALTER TABLE non_member_order_invoice_manual DROP file_timestamp');
$this->addSql('ALTER TABLE substance_definition DROP tonnage_band_proof_timestamp');
$this->addSql('ALTER TABLE substance_dossier DROP file_timestamp');
$this->addSql('ALTER TABLE substance_inventory DROP file_timestamp');
$this->addSql('ALTER TABLE system_help_document DROP file_timestamp');
$this->addSql('ALTER TABLE system_settings DROP sip_profiles_timestamp, DROP uses_map_timestamp, DROP pricing_list_timestamp');
$this->addSql('ALTER TABLE system_staff_member DROP image_timestamp');
}
}