You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/migrations/Version20230906094949.php
+1-3
Original file line number
Diff line number
Diff line change
@@ -41,11 +41,9 @@ public function up(Schema $schema): void
41
41
$this->addSql('COMMENT ON COLUMN review.user_id IS \'(DC2Type:uuid)\'');
42
42
$this->addSql('COMMENT ON COLUMN review.book_id IS \'(DC2Type:uuid)\'');
43
43
$this->addSql('COMMENT ON COLUMN review.published_at IS \'(DC2Type:datetime_immutable)\'');
44
-
$this->addSql('CREATE TABLE "user" (id UUID NOT NULL, sub UUID NOT NULL, email VARCHAR(255) NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, roles JSON NOT NULL, PRIMARY KEY(id))');
45
-
$this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649580282DC ON "user" (sub)');
44
+
$this->addSql('CREATE TABLE "user" (id UUID NOT NULL, email VARCHAR(255) NOT NULL, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, roles JSON NOT NULL, PRIMARY KEY(id))');
46
45
$this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649E7927C74 ON "user" (email)');
47
46
$this->addSql('COMMENT ON COLUMN "user".id IS \'(DC2Type:uuid)\'');
48
-
$this->addSql('COMMENT ON COLUMN "user".sub IS \'(DC2Type:uuid)\'');
0 commit comments