<?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 Version20221010113249 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('ALTER TABLE cal_accommodation_item ADD is_important TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE cal_accommodation_owner_info ADD mandat_number DATETIME DEFAULT NULL, ADD mandat_date DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE cal_cleaning_recurrence ADD has_cleaning TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE cal_inventory_item ADD open_maintenance TINYINT(1) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cal_accommodation_item DROP is_important');
$this->addSql('ALTER TABLE cal_accommodation_owner_info DROP mandat_number, DROP mandat_date');
$this->addSql('ALTER TABLE cal_cleaning_recurrence DROP has_cleaning');
$this->addSql('ALTER TABLE cal_inventory_item DROP open_maintenance');
}
}