<?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 Version20221109091652 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 establishments ADD closing_days VARCHAR(255) DEFAULT NULL, ADD delivery_days VARCHAR(255) DEFAULT NULL, ADD comment VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE users CHANGE created_at created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, CHANGE deleted deleted TINYINT(1) NOT NULL DEFAULT 0, CHANGE validated validated TINYINT(1) NOT NULL DEFAULT 1, CHANGE password password VARCHAR(255) NOT NULL DEFAULT "NO_PASSWORD", CHANGE not_present not_present TINYINT(1) NOT NULL DEFAULT 0, CHANGE cgv_accepted cgv_accepted TINYINT(1) NOT NULL DEFAULT 0');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE establishments DROP closing_days, DROP delivery_days, DROP comment');
$this->addSql('ALTER TABLE users CHANGE created_at created_at DATETIME DEFAULT CURRENT_TIMESTAMP, CHANGE deleted deleted TINYINT(1) DEFAULT 0 NOT NULL, CHANGE password password VARCHAR(255) DEFAULT \'NO_PASSWORD\' NOT NULL, CHANGE validated validated TINYINT(1) DEFAULT 1, CHANGE not_present not_present TINYINT(1) DEFAULT NULL, CHANGE cgv_accepted cgv_accepted TINYINT(1) DEFAULT 1 NOT NULL');
}
}