SuperSeller3000/migrations/Version20260517240000.php

29 lines
790 B
PHP
Raw Permalink Normal View History

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260517240000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add manufacturer and model_number columns to articles';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE app.articles ADD COLUMN manufacturer VARCHAR(255) NULL');
$this->addSql('ALTER TABLE app.articles ADD COLUMN model_number VARCHAR(255) NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE app.articles DROP COLUMN manufacturer');
$this->addSql('ALTER TABLE app.articles DROP COLUMN model_number');
}
}