diff --git a/iac/variable.tf b/iac/variable.tf index cddc9a3..93b9946 100644 --- a/iac/variable.tf +++ b/iac/variable.tf @@ -43,7 +43,7 @@ variable "statistics_fargate_cpu" { } variable "statistics_fargate_memory" { - default = "2048" + default = "4096" } variable "dumped_db_name" { diff --git a/scripts/get_db_export.sh b/scripts/get_db_export.sh index f5646a8..a8ad9a1 100755 --- a/scripts/get_db_export.sh +++ b/scripts/get_db_export.sh @@ -48,7 +48,6 @@ fi echo "Executing the .sql" echo "This can take a few hours" -mysql -h ${DB_HOST:-localhost} -u ${DB_USERNAME:-root} -P ${DB_PORT:-3306} --password=${DB_PASSWORD:-} \ - -e "start transaction; drop database if exists $database_name; create database $database_name; use $database_name; source $export_file_sql; commit;" +mysql -h ${DB_HOST:-localhost} -u ${DB_USERNAME:-root} -P ${DB_PORT:-3306} --password=${DB_PASSWORD:-} -e "start transaction; drop database if exists $database_name; create database $database_name; use $database_name; source $export_file_sql; commit;" echo "Complete" diff --git a/server/src/main/resources/schema.sql b/server/src/main/resources/schema.sql index 12afccf..6c70bb9 100644 --- a/server/src/main/resources/schema.sql +++ b/server/src/main/resources/schema.sql @@ -46,7 +46,6 @@ create table if not exists sum_of_ranks_meta ( primary key (result_type, region, region_type) ); ----------------------------------------------------------------------------------------------------- -- Person link drop function if exists wca_statistics_person_link_format; @@ -61,7 +60,6 @@ create function wca_statistics_person_link_format( '' ); ----------------------------------------------------------------------------------------------------- -- Competition link drop function if exists wca_statistics_competition_link_format; @@ -76,7 +74,6 @@ create function wca_statistics_competition_link_format( '' ); ----------------------------------------------------------------------------------------------------- -- Time format drop function if exists wca_statistics_time_format;