<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20220718071653 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE request_service ADD notified TINYINT(1) DEFAULT 0 NOT NULL AFTER status');
$this->addSql('ALTER TABLE request_service ADD notification_subject VARCHAR(255) DEFAULT NULL AFTER notified');
$this->addSql('ALTER TABLE request_service ADD notification_body LONGTEXT DEFAULT NULL AFTER notification_subject');
$this->addSql('ALTER TABLE request_service ADD notification_date DATETIME DEFAULT NULL AFTER notification_body');
$this->addSql('ALTER TABLE request_spare_part ADD notified TINYINT(1) DEFAULT 0 NOT NULL AFTER status');
$this->addSql('ALTER TABLE request_spare_part ADD notification_subject VARCHAR(255) DEFAULT NULL AFTER notified');
$this->addSql('ALTER TABLE request_spare_part ADD notification_body LONGTEXT DEFAULT NULL AFTER notification_subject');
$this->addSql('ALTER TABLE request_spare_part ADD notification_date DATETIME DEFAULT NULL AFTER notification_body');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE request_service DROP notified, DROP notification_subject, DROP notification_body, DROP notification_date');
$this->addSql('ALTER TABLE request_spare_part DROP notified, DROP notification_subject, DROP notification_body, DROP notification_date');
}
}