-
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
14 changed files
with
66 additions
and
34 deletions.
There are no files selected for viewing
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
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
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
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
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
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
4 changes: 0 additions & 4 deletions
4
src/main/resources/db.migration/V0_0_2__create_table_user_roles.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
src/main/resources/db.migration/V0_1_1__alter_table_user_role.sql
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...b.migration/V0_0_1__create_table_user.sql → ...b/migration/V0_0_1__create_table_user.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
4 changes: 4 additions & 0 deletions
4
src/main/resources/db/migration/V0_0_2__create_table_user_roles.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 @@ | ||
CREATE TABLE IF NOT EXISTS josefushighscore.user_roles ( | ||
user_id bigint NOT NULL, | ||
roles varchar(255) | ||
); |
2 changes: 1 addition & 1 deletion
2
....migration/V0_0_3__create_table_score.sql → .../migration/V0_0_3__create_table_score.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
2 changes: 1 addition & 1 deletion
2
...b.migration/V0_0_4__create_table_game.sql → ...b/migration/V0_0_4__create_table_game.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
1 change: 1 addition & 0 deletions
1
src/main/resources/db/migration/V0_1_1__alter_table_user_roles.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 @@ | ||
ALTER TABLE josefushighscore.user_roles ADD COLUMN role_id bigint; |
7 changes: 7 additions & 0 deletions
7
src/main/resources/db/migration/V0_1_2__add_supabase_id_to_josefushighscore_user.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,7 @@ | ||
-- Add supabase_id column to User table in josefushighscore schema | ||
ALTER TABLE josefushighscore."user" ADD COLUMN supabase_id UUID; | ||
|
||
-- Add foreign key constraint | ||
ALTER TABLE josefushighscore."user" ADD CONSTRAINT fk_user_supabase_id | ||
FOREIGN KEY (supabase_id) | ||
REFERENCES auth.users(id); |