Files
ltbxd-actorle/migrations/Version20260331000002.php

27 lines
560 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260331000002 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add year column to movie table';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE movie ADD year INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE movie DROP COLUMN year');
}
}