This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
forked from eesast/hasura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
migrations/1700471505618_modify_primarykey_public_users/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
6 changes: 6 additions & 0 deletions
6
migrations/1700471505618_modify_primarykey_public_users/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
1 change: 1 addition & 0 deletions
1
migrations/1700476058397_alter_table_public_users_alter_column_role/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
comment on column "public"."users"."role" is NULL; |
1 change: 1 addition & 0 deletions
1
migrations/1700476058397_alter_table_public_users_alter_column_role/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
comment on column "public"."users"."role" is E'user'; |
2 changes: 2 additions & 0 deletions
2
migrations/1700476080932_alter_table_public_users_alter_column_role/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
2 changes: 2 additions & 0 deletions
2
migrations/1700476080932_alter_table_public_users_alter_column_role/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |