<?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 Version20221109091559 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 `users` CHANGE `created_at` `created_at` DATETIME NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE `users` CHANGE `deleted` `deleted` TINYINT(1) NOT NULL DEFAULT '0';
ALTER TABLE `users` CHANGE `validated` `validated` TINYINT(1) NULL DEFAULT '1';
ALTER TABLE `users` CHANGE `password` `password` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'NO_PASSWORD';
ALTER TABLE `users` CHANGE `not_present` `not_present` TINYINT(1) NULL DEFAULT NULL;
ALTER TABLE `users` CHANGE `cgv_accepted` `cgv_accepted` TINYINT(1) NOT NULL DEFAULT '1';
");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}