From 90a39c0dbc292589e78d7b431b7d82a955c80524 Mon Sep 17 00:00:00 2001 From: Kirill Riman Date: Sat, 12 Oct 2024 20:21:14 +0300 Subject: [PATCH 1/2] #319 adding 3 columns to matchmaker_queue_map_pool table --- migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool diff --git a/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool b/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool new file mode 100644 index 00000000..e55702ae --- /dev/null +++ b/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool @@ -0,0 +1,4 @@ +ALTER TABLE matchmaker_queue_map_pool + ADD COLUMN veto_tokens_per_player TINYINT UNSIGNED DEFAULT 0 NOT NULL, + ADD COLUMN max_tokens_per_map TINYINT UNSIGNED DEFAULT 0 NOT NULL, + ADD COLUMN minimal_maps_allowed FLOAT DEFAULT 1 NOT NULL CHECK (minimal_maps_allowed >= 1); \ No newline at end of file From 920498ff5c4e9134979c195dd0b1e0137b43c096 Mon Sep 17 00:00:00 2001 From: Kirill Riman <55841348+K-ETFreeman@users.noreply.github.com> Date: Sun, 17 Nov 2024 12:29:35 +0300 Subject: [PATCH 2/2] column rename + file ext fix --- ...l => V135__add_veto_fields_to_matchmaker_queue_map_pool.sql} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename migrations/{V135__add_veto_fields_to_matchmaker_queue_map_pool => V135__add_veto_fields_to_matchmaker_queue_map_pool.sql} (64%) diff --git a/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool b/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool.sql similarity index 64% rename from migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool rename to migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool.sql index e55702ae..8293b487 100644 --- a/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool +++ b/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool.sql @@ -1,4 +1,4 @@ ALTER TABLE matchmaker_queue_map_pool ADD COLUMN veto_tokens_per_player TINYINT UNSIGNED DEFAULT 0 NOT NULL, ADD COLUMN max_tokens_per_map TINYINT UNSIGNED DEFAULT 0 NOT NULL, - ADD COLUMN minimal_maps_allowed FLOAT DEFAULT 1 NOT NULL CHECK (minimal_maps_allowed >= 1); \ No newline at end of file + ADD COLUMN minimum_maps_after_veto FLOAT DEFAULT 1 NOT NULL CHECK (minimum_maps_after_veto > 0); \ No newline at end of file