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