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'); + } +}