Skip to content

Commit 00aec7f

Browse files
feat(database): add 'date' column to weekly table and grant permissions (#227)
1 parent 5ab4f75 commit 00aec7f

3 files changed

Lines changed: 11 additions & 52 deletions

File tree

metadata/tables.yaml

Lines changed: 5 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,13 +1213,6 @@
12131213
using:
12141214
foreign_key_constraint_on: team_leader_uuid
12151215
array_relationships:
1216-
- name: contest_team_RL_scores
1217-
using:
1218-
foreign_key_constraint_on:
1219-
column: team_id
1220-
table:
1221-
name: contest_team_RL_score
1222-
schema: public
12231216
- name: contest_team_codes
12241217
using:
12251218
foreign_key_constraint_on:
@@ -1462,45 +1455,6 @@
14621455
filter:
14631456
team_leader_uuid:
14641457
_eq: X-Hasura-User-Id
1465-
- table:
1466-
name: contest_team_RL_code
1467-
schema: public
1468-
- table:
1469-
name: contest_team_RL_score
1470-
schema: public
1471-
object_relationships:
1472-
- name: contest_team
1473-
using:
1474-
foreign_key_constraint_on: team_id
1475-
select_permissions:
1476-
- role: anonymous
1477-
permission:
1478-
columns:
1479-
- score
1480-
- team_id
1481-
filter: {}
1482-
comment: ""
1483-
- role: counselor
1484-
permission:
1485-
columns:
1486-
- score
1487-
- team_id
1488-
filter: {}
1489-
comment: ""
1490-
- role: student
1491-
permission:
1492-
columns:
1493-
- score
1494-
- team_id
1495-
filter: {}
1496-
comment: ""
1497-
- role: teacher
1498-
permission:
1499-
columns:
1500-
- score
1501-
- team_id
1502-
filter: {}
1503-
comment: ""
15041458
- table:
15051459
name: contest_team_code
15061460
schema: public
@@ -2098,9 +2052,6 @@
20982052
- name: contest_team
20992053
using:
21002054
foreign_key_constraint_on: team_id
2101-
- table:
2102-
name: contest_team_software_final
2103-
schema: public
21042055
- table:
21052056
name: contest_time
21062057
schema: public
@@ -3205,9 +3156,6 @@
32053156
- value
32063157
filter: {}
32073158
comment: ""
3208-
- table:
3209-
name: llm_usage
3210-
schema: public
32113159
- table:
32123160
name: manager_permissions
32133161
schema: public
@@ -3969,6 +3917,7 @@
39693917
- role: anonymous
39703918
permission:
39713919
columns:
3920+
- date
39723921
- id
39733922
- tags
39743923
- title
@@ -3977,6 +3926,7 @@
39773926
- role: counselor
39783927
permission:
39793928
columns:
3929+
- date
39803930
- id
39813931
- tags
39823932
- title
@@ -3986,6 +3936,7 @@
39863936
- role: student
39873937
permission:
39883938
columns:
3939+
- date
39893940
- id
39903941
- tags
39913942
- title
@@ -3995,6 +3946,7 @@
39953946
- role: teacher
39963947
permission:
39973948
columns:
3949+
- date
39983950
- id
39993951
- tags
40003952
- title
@@ -4004,6 +3956,7 @@
40043956
- role: user
40053957
permission:
40063958
columns:
3959+
- date
40073960
- id
40083961
- tags
40093962
- title
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Could not auto-generate a down migration.
2+
-- Please write an appropriate down migration for the SQL below:
3+
-- alter table "public"."weekly" add column "date" date
4+
-- null;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alter table "public"."weekly" add column "date" date
2+
null;

0 commit comments

Comments
 (0)