<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230428103337 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add a published column to the news article table for the NewsArticle entity published field.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE news_article ADD published TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE news_article DROP published');
}
}