<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20221014154041 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add a "quantity_used" field to specify how many of that material was used on a job.';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE job_material ADD quantity_used INT DEFAULT 0 NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE job_material DROP quantity_used');
}
}