- <?php
- declare(strict_types=1);
- namespace DoctrineMigrations;
- use Doctrine\DBAL\Schema\Schema;
- use Doctrine\Migrations\AbstractMigration;
- final class Version20221014154723 extends AbstractMigration
- {
-     public function getDescription(): string
-     {
-         return 'Add a "material_types" JSON field to the service table.';
-     }
-     public function up(Schema $schema): void
-     {
-         $this->addSql('ALTER TABLE service ADD material_types JSON NOT NULL');
-     }
-     public function down(Schema $schema): void
-     {
-         $this->addSql('ALTER TABLE service DROP material_types');
-     }
- }
-