Skip to content

Commit abe037b

Browse files
feat(contest): add memory_limit & max_game_time (#170)
1 parent de6e601 commit abe037b

9 files changed

Lines changed: 22 additions & 10 deletions

File tree

  • metadata
  • migrations
    • 1714376760420_alter_table_public_contest_add_column_max_game_time
    • 1714376829891_alter_table_public_contest_add_column_max_memory
    • 1714376860196_alter_table_public_contest_alter_column_max_memory
    • 1714376877859_alter_table_public_contest_add_column_client_memory_limit

metadata/tables.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,11 +2193,7 @@
21932193
- role
21942194
- code_id
21952195
- team_id
2196-
filter:
2197-
contest_team:
2198-
contest_team_members:
2199-
user_uuid:
2200-
_eq: X-Hasura-User-Id
2196+
filter: {}
22012197
allow_aggregations: true
22022198
- role: student
22032199
permission:
@@ -2206,11 +2202,7 @@
22062202
- role
22072203
- code_id
22082204
- team_id
2209-
filter:
2210-
contest_team:
2211-
contest_team_members:
2212-
user_uuid:
2213-
_eq: X-Hasura-User-Id
2205+
filter: {}
22142206
allow_aggregations: true
22152207
- role: teacher
22162208
permission:
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"."contest" add column "max_game_time" numeric
4+
-- null default '100';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alter table "public"."contest" add column "max_game_time" numeric
2+
null default '100';
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"."contest" add column "max_memory" numeric
4+
-- null default '2';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alter table "public"."contest" add column "max_memory" numeric
2+
null default '2';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alter table "public"."contest" rename column "server_memory_limit" to "max_memory";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alter table "public"."contest" rename column "max_memory" to "server_memory_limit";
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"."contest" add column "client_memory_limit" numeric
4+
-- null default '2';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
alter table "public"."contest" add column "client_memory_limit" numeric
2+
null default '2';

0 commit comments

Comments
 (0)