<?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 Version20190612084116 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 contract_signatory (id INT AUTO_INCREMENT NOT NULL, `for` VARCHAR(255) NOT NULL, since DATE NOT NULL COMMENT \'(DC2Type:carbondate)\', name VARCHAR(255) NOT NULL, job_title VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:carbondatetime)\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB');
$this->addSql('INSERT INTO `contract_signatory` (`id`, `for`, `since`, `name`, `job_title`, `created_at`, `updated_at`) VALUES(NULL, "App\\\\Entity\\\\NonMember\\\\Contract\\\\LicenseAgreement", "2019-01-01", "Robin Nelson", "Science Director", "2019-06-12 15:08:26", "2019-06-12 15:08:26")');
$this->addSql('INSERT INTO `contract_signatory` (`id`, `for`, `since`, `name`, `job_title`, `created_at`, `updated_at`) VALUES(NULL, "App\\\\Entity\\\\LeadRegistrant\\\\Agreement", "2019-01-01", "John Cooper", "Director General", "2019-06-12 15:09:42", "2019-06-12 15:09:42")');
$this->addSql('INSERT INTO `contract_signatory` (`id`, `for`, `since`, `name`, `job_title`, `created_at`, `updated_at`) VALUES(NULL, "App\\\\Entity\\\\NonMember\\\\Contract\\\\LicenseAgreement", "2019-06-06", "Jean-Marc Sohier", "Science Director", "2019-06-12 15:10:01", "2019-06-12 15:10:01")');
}
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 contract_signatory');
}
}