<?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 Version20221122093301 extends AbstractMigration
{
public function getDescription(): string
{
return 'ADD titled parking and parking area fields';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE property ADD has_titled_parking BOOLEAN DEFAULT NULL');
$this->addSql('ALTER TABLE property ADD parking_area DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE property DROP has_titled_parking');
$this->addSql('ALTER TABLE property DROP parking_area');
}
}