migrations/Referentiel/Version20231018145554.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20231018145554 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('CREATE TABLE ref_user (id CHAR(36) NOT NULL --(DC2Type:guid), name VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, email VARCHAR(180) DEFAULT NULL, login VARCHAR(255) DEFAULT NULL, roles CLOB NOT NULL --(DC2Type:json), password VARCHAR(255) NOT NULL, verified BOOLEAN NOT NULL, passwordRequestedAt DATETIME DEFAULT NULL, passwordlock BOOLEAN DEFAULT 0 NOT NULL, PRIMARY KEY(id))');$this->addSql('CREATE UNIQUE INDEX UNIQ_9AE097CEE7927C74 ON ref_user (email)');$this->addSql('CREATE TABLE refresh_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, refresh_token VARCHAR(128) NOT NULL, username VARCHAR(255) NOT NULL, valid DATETIME NOT NULL)');$this->addSql('CREATE UNIQUE INDEX UNIQ_C74F2195C74F2195 ON refresh_token (refresh_token)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE ref_user');$this->addSql('DROP TABLE refresh_token');}}