Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 35 additions & 8 deletions generated/schema.graphql
Original file line numberDiff line numberDiff line change
Expand Up@@ -9186,6 +9186,9 @@ enum e_game_cfg_types_enum {
"""Duel game configuration"""
Duel

"""Applies to every match, on top of the type configuration"""
Global

"""Lan game configuration"""
Lan

Expand DownExpand Up@@ -20722,7 +20725,10 @@ input game_modes_updates {
columns and relationships of "game_plugin_installs"
"""
type game_plugin_installs {
always_load: Boolean!
cfg: String,
load_custom: Boolean!,
load_ranked: Boolean!,
load_tournaments: Boolean!
channel: e_game_plugin_channels_enum!
created_at: timestamptz!
disable_server_guidelines: Boolean!
Expand DownExpand Up@@ -20759,7 +20765,10 @@ input game_plugin_installs_bool_exp {
_and: [game_plugin_installs_bool_exp!]
_not: game_plugin_installs_bool_exp
_or: [game_plugin_installs_bool_exp!]
always_load: Boolean_comparison_exp
cfg: String_comparison_exp,
load_custom: Boolean_comparison_exp,
load_ranked: Boolean_comparison_exp,
load_tournaments: Boolean_comparison_exp
channel: e_game_plugin_channels_enum_comparison_exp
created_at: timestamptz_comparison_exp
disable_server_guidelines: Boolean_comparison_exp
Expand All@@ -20784,7 +20793,10 @@ enum game_plugin_installs_constraint {
input type for inserting data into table "game_plugin_installs"
"""
input game_plugin_installs_insert_input {
always_load: Boolean
cfg: String,
load_custom: Boolean,
load_ranked: Boolean,
load_tournaments: Boolean
channel: e_game_plugin_channels_enum
created_at: timestamptz
disable_server_guidelines: Boolean
Expand DownExpand Up@@ -20833,7 +20845,10 @@ input game_plugin_installs_on_conflict {

"""Ordering options when selecting data from "game_plugin_installs"."""
input game_plugin_installs_order_by {
always_load: order_by
cfg: order_by,
load_custom: order_by,
load_ranked: order_by,
load_tournaments: order_by
channel: order_by
created_at: order_by
disable_server_guidelines: order_by
Expand All@@ -20854,7 +20869,10 @@ select columns of table "game_plugin_installs"
"""
enum game_plugin_installs_select_column {
"""column name"""
always_load
cfg
load_custom
load_ranked
load_tournaments

"""column name"""
channel
Expand DownExpand Up@@ -20882,7 +20900,10 @@ enum game_plugin_installs_select_column {
input type for updating data in table "game_plugin_installs"
"""
input game_plugin_installs_set_input {
always_load: Boolean
cfg: String,
load_custom: Boolean,
load_ranked: Boolean,
load_tournaments: Boolean
channel: e_game_plugin_channels_enum
created_at: timestamptz
disable_server_guidelines: Boolean
Expand All@@ -20905,7 +20926,10 @@ input game_plugin_installs_stream_cursor_input {

"""Initial value of the column from where the streaming should start"""
input game_plugin_installs_stream_cursor_value_input {
always_load: Boolean
cfg: String,
load_custom: Boolean,
load_ranked: Boolean,
load_tournaments: Boolean
channel: e_game_plugin_channels_enum
created_at: timestamptz
disable_server_guidelines: Boolean
Expand All@@ -20920,7 +20944,10 @@ update columns of table "game_plugin_installs"
"""
enum game_plugin_installs_update_column {
"""column name"""
always_load
cfg
load_custom
load_ranked
load_tournaments

"""column name"""
channel
Expand Down
36 changes: 24 additions & 12 deletions generated/schema.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -3944,7 +3944,7 @@ export interface e_game_cfg_types_aggregate_fields {
/** unique or primary key constraints on table "e_game_cfg_types" */
export type e_game_cfg_types_constraint = 'e_game_cfg_types_pkey'

export type e_game_cfg_types_enum = 'Base' | 'Competitive' | 'Duel' | 'Lan' | 'Live' | 'Wingman'
export type e_game_cfg_types_enum = 'Base' | 'Competitive' | 'Duel' | 'Global' | 'Lan' | 'Live' | 'Wingman'


/** aggregate max on columns */
Expand DownExpand Up@@ -7739,7 +7739,10 @@ export type game_modes_update_column = 'archived_at' | 'cfg' | 'competitive_safe

/** columns and relationships of "game_plugin_installs" */
export interface game_plugin_installs {
always_load: Scalars['Boolean']
cfg: Scalars['String'],
load_custom: Scalars['Boolean'],
load_ranked: Scalars['Boolean'],
load_tournaments: Scalars['Boolean']
channel: e_game_plugin_channels_enum
created_at: Scalars['timestamptz']
disable_server_guidelines: Scalars['Boolean']
Expand DownExpand Up@@ -7805,11 +7808,11 @@ export interface game_plugin_installs_mutation_response {


/** select columns of table "game_plugin_installs" */
export type game_plugin_installs_select_column = 'always_load' | 'channel' | 'created_at' | 'disable_server_guidelines' | 'enabled' | 'plugin_slug' | 'updated_at' | 'version'
export type game_plugin_installs_select_column = 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' | 'channel' | 'created_at' | 'disable_server_guidelines' | 'enabled' | 'plugin_slug' | 'updated_at' | 'version'


/** update columns of table "game_plugin_installs" */
export type game_plugin_installs_update_column = 'always_load' | 'channel' | 'created_at' | 'disable_server_guidelines' | 'enabled' | 'plugin_slug' | 'updated_at' | 'version'
export type game_plugin_installs_update_column = 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' | 'channel' | 'created_at' | 'disable_server_guidelines' | 'enabled' | 'plugin_slug' | 'updated_at' | 'version'


/** columns and relationships of "game_plugin_versions" */
Expand DownExpand Up@@ -50569,7 +50572,10 @@ where: game_modes_bool_exp}

/** columns and relationships of "game_plugin_installs" */
export interface game_plugin_installsGenqlSelection{
always_load?: boolean | number
cfg?: string | number,
load_custom?: boolean | number,
load_ranked?: boolean | number,
load_tournaments?: boolean | number
channel?: boolean | number
created_at?: boolean | number
disable_server_guidelines?: boolean | number
Expand DownExpand Up@@ -50604,11 +50610,11 @@ export interface game_plugin_installs_aggregate_fieldsGenqlSelection{


/** Boolean expression to filter rows from the table "game_plugin_installs". All fields are combined with a logical 'AND'. */
export interface game_plugin_installs_bool_exp {_and?: (game_plugin_installs_bool_exp[] | null),_not?: (game_plugin_installs_bool_exp | null),_or?: (game_plugin_installs_bool_exp[] | null),always_load?: (Boolean_comparison_exp | null),channel?: (e_game_plugin_channels_enum_comparison_exp | null),created_at?: (timestamptz_comparison_exp | null),disable_server_guidelines?: (Boolean_comparison_exp | null),enabled?: (Boolean_comparison_exp | null),plugin?: (game_plugins_bool_exp | null),plugin_slug?: (String_comparison_exp | null),updated_at?: (timestamptz_comparison_exp | null),version?: (String_comparison_exp | null)}
export interface game_plugin_installs_bool_exp {_and?: (game_plugin_installs_bool_exp[] | null),_not?: (game_plugin_installs_bool_exp | null),_or?: (game_plugin_installs_bool_exp[] | null),cfg?: (String_comparison_exp | null),load_custom?: (Boolean_comparison_exp | null),load_ranked?: (Boolean_comparison_exp | null),load_tournaments?: (Boolean_comparison_exp | null),channel?: (e_game_plugin_channels_enum_comparison_exp | null),created_at?: (timestamptz_comparison_exp | null),disable_server_guidelines?: (Boolean_comparison_exp | null),enabled?: (Boolean_comparison_exp | null),plugin?: (game_plugins_bool_exp | null),plugin_slug?: (String_comparison_exp | null),updated_at?: (timestamptz_comparison_exp | null),version?: (String_comparison_exp | null)}


/** input type for inserting data into table "game_plugin_installs" */
export interface game_plugin_installs_insert_input {always_load?: (Scalars['Boolean'] | null),channel?: (e_game_plugin_channels_enum | null),created_at?: (Scalars['timestamptz'] | null),disable_server_guidelines?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),plugin?: (game_plugins_obj_rel_insert_input | null),plugin_slug?: (Scalars['String'] | null),updated_at?: (Scalars['timestamptz'] | null),version?: (Scalars['String'] | null)}
export interface game_plugin_installs_insert_input {cfg?: (Scalars['String'] | null),load_custom?: (Scalars['Boolean'] | null),load_ranked?: (Scalars['Boolean'] | null),load_tournaments?: (Scalars['Boolean'] | null),channel?: (e_game_plugin_channels_enum | null),created_at?: (Scalars['timestamptz'] | null),disable_server_guidelines?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),plugin?: (game_plugins_obj_rel_insert_input | null),plugin_slug?: (Scalars['String'] | null),updated_at?: (Scalars['timestamptz'] | null),version?: (Scalars['String'] | null)}


/** aggregate max on columns */
Expand DownExpand Up@@ -50649,15 +50655,15 @@ export interface game_plugin_installs_on_conflict {constraint: game_plugin_insta


/** Ordering options when selecting data from "game_plugin_installs". */
export interface game_plugin_installs_order_by {always_load?: (order_by | null),channel?: (order_by | null),created_at?: (order_by | null),disable_server_guidelines?: (order_by | null),enabled?: (order_by | null),plugin?: (game_plugins_order_by | null),plugin_slug?: (order_by | null),updated_at?: (order_by | null),version?: (order_by | null)}
export interface game_plugin_installs_order_by {cfg?: (order_by | null),load_custom?: (order_by | null),load_ranked?: (order_by | null),load_tournaments?: (order_by | null),channel?: (order_by | null),created_at?: (order_by | null),disable_server_guidelines?: (order_by | null),enabled?: (order_by | null),plugin?: (game_plugins_order_by | null),plugin_slug?: (order_by | null),updated_at?: (order_by | null),version?: (order_by | null)}


/** primary key columns input for table: game_plugin_installs */
export interface game_plugin_installs_pk_columns_input {plugin_slug: Scalars['String']}


/** input type for updating data in table "game_plugin_installs" */
export interface game_plugin_installs_set_input {always_load?: (Scalars['Boolean'] | null),channel?: (e_game_plugin_channels_enum | null),created_at?: (Scalars['timestamptz'] | null),disable_server_guidelines?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),plugin_slug?: (Scalars['String'] | null),updated_at?: (Scalars['timestamptz'] | null),version?: (Scalars['String'] | null)}
export interface game_plugin_installs_set_input {cfg?: (Scalars['String'] | null),load_custom?: (Scalars['Boolean'] | null),load_ranked?: (Scalars['Boolean'] | null),load_tournaments?: (Scalars['Boolean'] | null),channel?: (e_game_plugin_channels_enum | null),created_at?: (Scalars['timestamptz'] | null),disable_server_guidelines?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),plugin_slug?: (Scalars['String'] | null),updated_at?: (Scalars['timestamptz'] | null),version?: (Scalars['String'] | null)}


/** Streaming cursor of the table "game_plugin_installs" */
Expand All@@ -50669,7 +50675,7 @@ ordering?: (cursor_ordering | null)}


/** Initial value of the column from where the streaming should start */
export interface game_plugin_installs_stream_cursor_value_input {always_load?: (Scalars['Boolean'] | null),channel?: (e_game_plugin_channels_enum | null),created_at?: (Scalars['timestamptz'] | null),disable_server_guidelines?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),plugin_slug?: (Scalars['String'] | null),updated_at?: (Scalars['timestamptz'] | null),version?: (Scalars['String'] | null)}
export interface game_plugin_installs_stream_cursor_value_input {cfg?: (Scalars['String'] | null),load_custom?: (Scalars['Boolean'] | null),load_ranked?: (Scalars['Boolean'] | null),load_tournaments?: (Scalars['Boolean'] | null),channel?: (e_game_plugin_channels_enum | null),created_at?: (Scalars['timestamptz'] | null),disable_server_guidelines?: (Scalars['Boolean'] | null),enabled?: (Scalars['Boolean'] | null),plugin_slug?: (Scalars['String'] | null),updated_at?: (Scalars['timestamptz'] | null),version?: (Scalars['String'] | null)}

export interface game_plugin_installs_updates {
/** sets the columns of the filtered rows to the given values */
Expand DownExpand Up@@ -127597,7 +127603,10 @@ export const enumGamePluginInstallsConstraint = {
}

export const enumGamePluginInstallsSelectColumn = {
always_load: 'always_load' as const,
cfg: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
load_custom: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
load_ranked: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
load_tournaments: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
channel: 'channel' as const,
created_at: 'created_at' as const,
disable_server_guidelines: 'disable_server_guidelines' as const,
Expand All@@ -127608,7 +127617,10 @@ export const enumGamePluginInstallsSelectColumn = {
}

export const enumGamePluginInstallsUpdateColumn = {
always_load: 'always_load' as const,
cfg: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
load_custom: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
load_ranked: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
load_tournaments: 'cfg' | 'load_custom' | 'load_ranked' | 'load_tournaments' as const,
channel: 'channel' as const,
created_at: 'created_at' as const,
disable_server_guidelines: 'disable_server_guidelines' as const,
Expand Down
66 changes: 60 additions & 6 deletions generated/types.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -29694,7 +29694,16 @@ export default {
]
},
"game_plugin_installs": {
"always_load": [
"cfg": [
84
],
"load_custom": [
6
],
"load_ranked": [
6
],
"load_tournaments": [
6
],
"channel": [
Expand DownExpand Up@@ -29769,7 +29778,16 @@ export default {
"_or": [
1943
],
"always_load": [
"cfg": [
86
],
"load_custom": [
7
],
"load_ranked": [
7
],
"load_tournaments": [
7
],
"channel": [
Expand DownExpand Up@@ -29802,7 +29820,16 @@ export default {
},
"game_plugin_installs_constraint": {},
"game_plugin_installs_insert_input": {
"always_load": [
"cfg": [
84
],
"load_custom": [
6
],
"load_ranked": [
6
],
"load_tournaments": [
6
],
"channel": [
Expand DownExpand Up@@ -29893,7 +29920,16 @@ export default {
]
},
"game_plugin_installs_order_by": {
"always_load": [
"cfg": [
3373
],
"load_custom": [
3373
],
"load_ranked": [
3373
],
"load_tournaments": [
3373
],
"channel": [
Expand DownExpand Up@@ -29934,7 +29970,16 @@ export default {
},
"game_plugin_installs_select_column": {},
"game_plugin_installs_set_input": {
"always_load": [
"cfg": [
84
],
"load_custom": [
6
],
"load_ranked": [
6
],
"load_tournaments": [
6
],
"channel": [
Expand DownExpand Up@@ -29974,7 +30019,16 @@ export default {
]
},
"game_plugin_installs_stream_cursor_value_input": {
"always_load": [
"cfg": [
84
],
"load_custom": [
6
],
"load_ranked": [
6
],
"load_tournaments": [
6
],
"channel": [
Expand Down
3 changes: 2 additions & 1 deletion hasura/enums/maps.sql
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,7 +12,8 @@ insert into e_game_cfg_types ("value", "description") values
('Live', 'Live game configuration'),
('Competitive', 'Competitive game configuration'),
('Wingman', 'Wingman game configuration'),
('Duel', 'Duel game configuration')
('Duel', 'Duel game configuration'),
('Global', 'Applies to every match, on top of the type configuration')
on conflict(value) do update set "description" = EXCLUDED."description";

WITH map_data AS (
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,8 +13,11 @@ select_permissions:
- version
- channel
- enabled
- always_load
- disable_server_guidelines
- cfg
- load_ranked
- load_tournaments
- load_custom
- created_at
- updated_at
filter: {}
Expand All@@ -29,8 +32,11 @@ insert_permissions:
- version
- channel
- enabled
- always_load
- disable_server_guidelines
- cfg
- load_ranked
- load_tournaments
- load_custom
comment: ""
update_permissions:
- role: administrator
Expand All@@ -40,8 +46,11 @@ update_permissions:
- version
- channel
- enabled
- always_load
- disable_server_guidelines
- cfg
- load_ranked
- load_tournaments
- load_custom
filter: {}
check: {}
comment: ""
Expand Down
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
ALTER TABLE "public"."game_plugin_installs"
ADD COLUMN IF NOT EXISTS "always_load" boolean NOT NULL DEFAULT false;

-- always_load reached ranked, so only a plugin already allowed on ranked may
-- come back as always_load. Collapsing the union instead would silently put a
-- plugin the operator kept off ranked onto ranked servers on rollback.
UPDATE "public"."game_plugin_installs"
SET "always_load" = true
WHERE "load_ranked";

ALTER TABLE "public"."game_plugin_installs"
DROP COLUMN IF EXISTS "cfg",
DROP COLUMN IF EXISTS "load_ranked",
DROP COLUMN IF EXISTS "load_tournaments",
DROP COLUMN IF EXISTS "load_custom";

DELETE FROM "public"."match_type_cfgs" WHERE "type" = 'Global';
Loading
Loading