<?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 Version20211025130426 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 vehicle_work_schedule ADD date DATETIME DEFAULT NULL, ADD repeatable TINYINT(1) NOT NULL, ADD type VARCHAR(100) NOT NULL, CHANGE day day INT DEFAULT NULL');
$this->addSql('UPDATE vehicle_work_schedule SET `type`="type.work", `repeatable`=1');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE vehicle_work_schedule DROP date, DROP repeatable, DROP type, CHANGE day day INT NOT NULL');
}
public function isTransactional(): bool
{
return false;
}
}