<?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 Version20220722180455 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 file ADD name VARCHAR(255) DEFAULT NULL, ADD description VARCHAR(255) DEFAULT NULL, ADD position DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE flag ADD searchable TINYINT(1) DEFAULT NULL');
$this->addSql('ALTER TABLE open_hours ADD name VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE file DROP name, DROP description, DROP position');
$this->addSql('ALTER TABLE flag DROP searchable');
$this->addSql('ALTER TABLE open_hours DROP name');
}
}