-
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.
Use nicer table names, establish better events, and resolve #27
- Loading branch information
Showing
12 changed files
with
227 additions
and
123 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
2 changes: 1 addition & 1 deletion
2
.../tables/public_play_status_type_enum.yaml → ...default/tables/public_deck_type_enum.yaml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
table: | ||
schema: public | ||
name: play_status_type_enum | ||
name: deck_type_enum | ||
is_enum: true |
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 |
---|---|---|
@@ -1,13 +1,29 @@ | ||
table: | ||
schema: public | ||
name: event | ||
object_relationships: | ||
- name: deck | ||
using: | ||
foreign_key_constraint_on: deck_id | ||
- name: file | ||
using: | ||
foreign_key_constraint_on: file_id | ||
- name: track | ||
using: | ||
foreign_key_constraint_on: track_id | ||
- name: workspace | ||
using: | ||
foreign_key_constraint_on: workspace_id | ||
select_permissions: | ||
- role: anonymous | ||
permission: | ||
columns: | ||
- deck_id | ||
- file_id | ||
- id | ||
- invalidate | ||
- time | ||
- track_id | ||
- type | ||
- workspace_id | ||
filter: {} | ||
allow_aggregations: true |
3 changes: 0 additions & 3 deletions
3
hasura/metadata/databases/default/tables/public_main_play_status.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...fault/tables/public_play_queue_entry.yaml → ...atabases/default/tables/public_track.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
- "!include public_deck.yaml" | ||
- "!include public_deck_type_enum.yaml" | ||
- "!include public_delete_job.yaml" | ||
- "!include public_event.yaml" | ||
- "!include public_file.yaml" | ||
- "!include public_file_type_enum.yaml" | ||
- "!include public_job.yaml" | ||
- "!include public_play_queue_entry.yaml" | ||
- "!include public_play_status.yaml" | ||
- "!include public_play_status_type_enum.yaml" | ||
- "!include public_track.yaml" | ||
- "!include public_workspace.yaml" |
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,23 @@ | ||
DROP TABLE public.delete_job; | ||
|
||
DROP TABLE public.job; | ||
|
||
DROP TABLE public.track; | ||
|
||
DROP TRIGGER ensure_main_deck_trigger ON public.deck; | ||
DROP FUNCTION public.ensure_main_deck(); | ||
|
||
DROP TABLE public.deck; | ||
|
||
DROP TABLE public.deck_type_enum; | ||
|
||
DROP TRIGGER reconcile_ordering ON public.file; | ||
DROP FUNCTION public.order_is_reconciled(); | ||
DROP FUNCTION public.reconcile_ordering(); | ||
|
||
DROP TABLE public.file; | ||
|
||
DROP TABLE public.file_type_enum; | ||
|
||
DROP TABLE public.workspace; | ||
|
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
DROP TRIGGER file_update_trigger_delete ON public.file; | ||
DROP TRIGGER file_update_trigger_update ON public.file; | ||
DROP TRIGGER file_update_trigger_insert ON public.file; | ||
|
||
DROP TRIGGER track_update_trigger_delete ON public.track; | ||
DROP TRIGGER track_update_trigger_update ON public.track; | ||
DROP TRIGGER track_update_trigger_insert ON public.track; | ||
|
||
DROP TRIGGER deck_update_trigger_delete ON public.deck; | ||
DROP TRIGGER deck_update_trigger_update ON public.deck; | ||
DROP TRIGGER deck_update_trigger_insert ON public.deck; | ||
|
||
DROP FUNCTION public.create_file_update(); | ||
DROP FUNCTION public.create_track_update(); | ||
DROP FUNCTION public.create_deck_update(); | ||
|
||
DROP TABLE public.event; |
Oops, something went wrong.