From 826d03eaacb63b3a12bbf4262e3475e05c74af25 Mon Sep 17 00:00:00 2001 From: Olivier PARPAILLON Date: Mon, 18 Nov 2024 14:58:34 +0100 Subject: [PATCH] .env --- .gitignore | 3 ++- migrations/Version20241118135534.php | 31 ++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 migrations/Version20241118135534.php diff --git a/.gitignore b/.gitignore index c47115c..526641a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ .idea/ +.env ###> symfony/framework-bundle ### /.env.local /.env.local.php /.env.*.local /config/secrets/prod/prod.decrypt.private.php /public/bundles/ -/var/ +/var /vendor/ ###< symfony/framework-bundle ### diff --git a/migrations/Version20241118135534.php b/migrations/Version20241118135534.php new file mode 100644 index 0000000..4e664ee --- /dev/null +++ b/migrations/Version20241118135534.php @@ -0,0 +1,31 @@ +addSql('CREATE TABLE user (uuid BINARY(16) NOT NULL COMMENT \'(DC2Type:uuid)\', email VARCHAR(180) NOT NULL, roles JSON NOT NULL, password VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_IDENTIFIER_EMAIL (email), PRIMARY KEY(uuid)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('DROP TABLE user'); + } +}