Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
fix(users)
Browse files Browse the repository at this point in the history
  • Loading branch information
FranGuam committed Nov 20, 2023
1 parent b796cc7 commit 1589a85
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alter table "public"."users" drop constraint "users_pkey";
alter table "public"."users"
add constraint "users_pkey"
primary key ("email", "username", "uuid");
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BEGIN TRANSACTION;
ALTER TABLE "public"."users" DROP CONSTRAINT "users_pkey";

ALTER TABLE "public"."users"
ADD CONSTRAINT "users_pkey" PRIMARY KEY ("uuid");
COMMIT TRANSACTION;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment on column "public"."users"."role" is NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
comment on column "public"."users"."role" is E'user';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
comment on column "public"."users"."role" is E'user';
ALTER TABLE "public"."users" ALTER COLUMN "role" drop default;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alter table "public"."users" alter column "role" set default 'user';
comment on column "public"."users"."role" is NULL;

0 comments on commit 1589a85

Please sign in to comment.