<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210518162606 extends AbstractMigration
{
public function getDescription() : string
{
return '';
}
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE cal_accommodation_owner_info (id INT AUTO_INCREMENT NOT NULL, accommodation_id INT DEFAULT NULL, acquisition_reiteration_date DATETIME DEFAULT NULL, contract_signature_date DATETIME DEFAULT NULL, contract_end_date DATETIME DEFAULT NULL, management_contract TINYINT(1) DEFAULT NULL, payment_delegation_amount INT DEFAULT NULL, UNIQUE INDEX UNIQ_B021EB428F3692CD (accommodation_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE cal_accommodation_owner_info ADD CONSTRAINT FK_B021EB428F3692CD FOREIGN KEY (accommodation_id) REFERENCES cal_accommodation (id)');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE cal_accommodation_owner_info');
}
}