├── .gitattributes ├── .github └── workflows │ └── build.yaml ├── .gitignore ├── .gitmodules ├── Dockerfile ├── LICENSE ├── README.md ├── archive ├── V100__promote_mmq_mappool_to_entity.sql ├── V101__consider_ban_in_rating_tables.sql ├── V102__leaderboards_fix_auto_increment_reset.sql ├── V103__laddermod_cleanup.sql ├── V104__link_matchmaker_games_to_originating_queue.sql ├── V105__fix_rating_signedness.sql ├── V106__drop_obsolete_tables.sql ├── V107__migrate_to_new_leaderboards.sql ├── V10__surveys.sql ├── V11__auto_approve_scopes.sql ├── V12__host-foreign-key.sql ├── V13__player-id-foreign-key.sql ├── V14__remove-obsolete-tables.sql ├── V15__fix-clan-structure.sql ├── V16__teamkills-constraints.sql ├── V17__achievement-statistics-view.sql ├── V18__game-foreign-key.sql ├── V19__rating-stats.sql ├── V1__base.sql ├── V20__map-statistics.sql ├── V21__null-mapid.sql ├── V22__avatar-expiration.sql ├── V23__reviews.sql ├── V24__map_statistics_zero_values.sql ├── V25__utf8_clans.sql ├── V26__resurrect-game-endtime.sql ├── V27__restore-game-baks.sql ├── V28__game-indices.sql ├── V29__review-score.sql ├── V2__add-clan-tag-colors.sql ├── V30__game_stats-starttime-timestamp.sql ├── V31__allow-null-score.sql ├── V32__featured-mod-constraint.sql ├── V33__ban-system-ng.sql ├── V34__auto-increment-teamkill-id.sql ├── V35__fix-bans.sql ├── V36__uid-constraints.sql ├── V37__remove-ai-tables.sql ├── V38__refactor-reviews.sql ├── V39__division-merge.sql ├── V3__achievement-create-time.sql ├── V40__featured-mod-deployment.sql ├── V41__unique-clan-name-and-tag.sql ├── V42__remove-unique-id-users-old.sql ├── V43__coop-leaderboard-player-count-not-null.sql ├── V44__new-id-for-name_history.sql ├── V45__update-achievement-texts.sql ├── V46__add-postman-oauth-client.sql ├── V47__review-wilson-interval.sql ├── V48__notes-per-user.sql ├── V49__tutorial-maps.sql ├── V4__achievements-foreign-keys.sql ├── V50__tutorial-featured-mod.sql ├── V51__voting.sql ├── V52__moderation_report.sql ├── V53__permission-system.sql ├── V54__achievement-statistics-fix.sql ├── V55__teamkill-constraints.sql ├── V56__leagues.sql ├── V57__oauth_client_secret_noop.sql ├── V58__multi_team_invalidity.sql ├── V59__updatetime_on_login.sql ├── V5__mod_migration.sql ├── V60__has_ai_unrank.sql ├── V61__ipv6.sql ├── V62__ban_revoke_restructuring.sql ├── V63__coop-validity-states.sql ├── V64__deployment-webhook.sql ├── V65__fix-ladder-win-ratio.sql ├── V66__speedup_query.sql ├── V67__add-old-ladder-games-to-winratio.sql ├── V68__add_foreign_keys.sql ├── V69__drop_legacy_tables.sql ├── V6__hide-hidden-mods.sql ├── V70__convert_to_unicode.sql ├── V71__game_durations.sql ├── V72__rating_as_generated_column.sql ├── V73__leaderboards_and_map_pools.sql ├── V74__drop_matchmaker_ban.sql ├── V75__coop_leaderboard_foreign_key.sql ├── V76__updates_fafdevelop.sql ├── V77__permission_refinement.sql ├── V78__permission_roles_and_groups.sql ├── V79__open_clans.sql ├── V7__coop-leaderboard.sql ├── V80__store_game_outcomes.sql ├── V81__permissions_server.sql ├── V82__map_pools.sql ├── V83__invalid_map_ids_in_games.sql ├── V84__add_leaderboard_entries.sql ├── V85__ban_level_vault.sql ├── V86__achievement_statistics_speedup.sql ├── V87__fix_lobby_ban_view.sql ├── V88__permissions_join_channel.sql ├── V89__global_rating_distribution_view_to_event.sql ├── V8__git-patcher.sql ├── V90__map_reviews_summary_view_to_event.sql ├── V91__ladder1v1_rating_distribution_view_to_event.sql ├── V92__mod_review_summary_view_to_event.sql ├── V93__matchmaker_enhancements.sql ├── V94__login_log.sql ├── V95__leaderboard_id_and_foreign_keys.sql ├── V96__avatar-enhancements.sql ├── V97__rating_materialized_view.sql ├── V98__migrate_to_new_leaderboard_rating.sql ├── V99__player_rating_unique_key_fix.sql ├── V9__user-agent.sql └── manual-clan-migration.txt ├── ci ├── schemaspy.properties ├── schemaspy.sh ├── test-data.sh └── test-migrations.sh ├── migrations ├── R__010_game_featuredMods.sql ├── R__020_achievement_definitions.sql ├── R__030_event_definitions.sql ├── R__040_game_validity.sql ├── R__050_group_permission.sql ├── R__060_leaderboard.sql ├── R__070_matchmaker_queue.sql ├── R__080_license.sql ├── V107__baseline_schema.sql ├── V108__disable_auto_increment.sql ├── V109__add_weight_and_other_params_to_map_pool_map_version.sql ├── V110__replay_available_flag.sql ├── V111__leaderboard_initialization.sql ├── V112__map_pool_map_version_timestamp.sql ├── V113__ranking_table_indices.sql ├── V114__replay_available_default_false.sql ├── V115__drop_league_tables.sql ├── V116__map_play_count_trigger.sql ├── V117__recommended_maps_and_mods.sql ├── V118__deaggregate_login_log.sql ├── V119__drop_version_lobby.sql ├── V120__gog_user_id.sql ├── V121__matchmaker_queue_params.sql ├── V122__achievement_statistics_loader_slow_down.sql ├── V123__update_time_vault_items.sql ├── V124__coturn_servers.sql ├── V125__coop_scenario.sql ├── V126__create_links_table.sql ├── V127__vault_licenses.sql ├── V128__reviews_average_score.sql ├── V129__mods_repository_link.sql ├── V130__drop_obsolete_tables.sql ├── V131__gdpr_delete_handling.sql ├── V132__add_tos.sql ├── V133__login_log_charset_uft8.sql ├── V134__friends_and_foes_constraint.sql ├── V135__add_veto_fields_to_matchmaker_queue_map_pool.sql ├── V136__add_decapitation_victory_condition.sql ├── V137__add_avatar_description.sql ├── V138__game_join_log.sql ├── V139__add_ip_and_indices_to_game_join_log.sql ├── V140__add_id_to_unique_id_users.sql ├── V141__enforce_uniqueness_unique_id_users.sql └── put-your-sql-migrations-here.txt └── test-data.sql /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh -crlf 2 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/.gitmodules -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/README.md -------------------------------------------------------------------------------- /archive/V100__promote_mmq_mappool_to_entity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V100__promote_mmq_mappool_to_entity.sql -------------------------------------------------------------------------------- /archive/V101__consider_ban_in_rating_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V101__consider_ban_in_rating_tables.sql -------------------------------------------------------------------------------- /archive/V102__leaderboards_fix_auto_increment_reset.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V102__leaderboards_fix_auto_increment_reset.sql -------------------------------------------------------------------------------- /archive/V103__laddermod_cleanup.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V103__laddermod_cleanup.sql -------------------------------------------------------------------------------- /archive/V104__link_matchmaker_games_to_originating_queue.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V104__link_matchmaker_games_to_originating_queue.sql -------------------------------------------------------------------------------- /archive/V105__fix_rating_signedness.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V105__fix_rating_signedness.sql -------------------------------------------------------------------------------- /archive/V106__drop_obsolete_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V106__drop_obsolete_tables.sql -------------------------------------------------------------------------------- /archive/V107__migrate_to_new_leaderboards.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V107__migrate_to_new_leaderboards.sql -------------------------------------------------------------------------------- /archive/V10__surveys.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V10__surveys.sql -------------------------------------------------------------------------------- /archive/V11__auto_approve_scopes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V11__auto_approve_scopes.sql -------------------------------------------------------------------------------- /archive/V12__host-foreign-key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V12__host-foreign-key.sql -------------------------------------------------------------------------------- /archive/V13__player-id-foreign-key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V13__player-id-foreign-key.sql -------------------------------------------------------------------------------- /archive/V14__remove-obsolete-tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V14__remove-obsolete-tables.sql -------------------------------------------------------------------------------- /archive/V15__fix-clan-structure.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V15__fix-clan-structure.sql -------------------------------------------------------------------------------- /archive/V16__teamkills-constraints.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V16__teamkills-constraints.sql -------------------------------------------------------------------------------- /archive/V17__achievement-statistics-view.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V17__achievement-statistics-view.sql -------------------------------------------------------------------------------- /archive/V18__game-foreign-key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V18__game-foreign-key.sql -------------------------------------------------------------------------------- /archive/V19__rating-stats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V19__rating-stats.sql -------------------------------------------------------------------------------- /archive/V1__base.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V1__base.sql -------------------------------------------------------------------------------- /archive/V20__map-statistics.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V20__map-statistics.sql -------------------------------------------------------------------------------- /archive/V21__null-mapid.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V21__null-mapid.sql -------------------------------------------------------------------------------- /archive/V22__avatar-expiration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V22__avatar-expiration.sql -------------------------------------------------------------------------------- /archive/V23__reviews.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V23__reviews.sql -------------------------------------------------------------------------------- /archive/V24__map_statistics_zero_values.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V24__map_statistics_zero_values.sql -------------------------------------------------------------------------------- /archive/V25__utf8_clans.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V25__utf8_clans.sql -------------------------------------------------------------------------------- /archive/V26__resurrect-game-endtime.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V26__resurrect-game-endtime.sql -------------------------------------------------------------------------------- /archive/V27__restore-game-baks.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V27__restore-game-baks.sql -------------------------------------------------------------------------------- /archive/V28__game-indices.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V28__game-indices.sql -------------------------------------------------------------------------------- /archive/V29__review-score.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE review CHANGE rating score TINYINT(1) unsigned NOT NULL; 2 | -------------------------------------------------------------------------------- /archive/V2__add-clan-tag-colors.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V2__add-clan-tag-colors.sql -------------------------------------------------------------------------------- /archive/V30__game_stats-starttime-timestamp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V30__game_stats-starttime-timestamp.sql -------------------------------------------------------------------------------- /archive/V31__allow-null-score.sql: -------------------------------------------------------------------------------- 1 | # Estimated execution time: 3min 2 | ALTER TABLE game_player_stats MODIFY score TINYINT(3); 3 | -------------------------------------------------------------------------------- /archive/V32__featured-mod-constraint.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V32__featured-mod-constraint.sql -------------------------------------------------------------------------------- /archive/V33__ban-system-ng.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V33__ban-system-ng.sql -------------------------------------------------------------------------------- /archive/V34__auto-increment-teamkill-id.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V34__auto-increment-teamkill-id.sql -------------------------------------------------------------------------------- /archive/V35__fix-bans.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V35__fix-bans.sql -------------------------------------------------------------------------------- /archive/V36__uid-constraints.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V36__uid-constraints.sql -------------------------------------------------------------------------------- /archive/V37__remove-ai-tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V37__remove-ai-tables.sql -------------------------------------------------------------------------------- /archive/V38__refactor-reviews.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V38__refactor-reviews.sql -------------------------------------------------------------------------------- /archive/V39__division-merge.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V39__division-merge.sql -------------------------------------------------------------------------------- /archive/V3__achievement-create-time.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V3__achievement-create-time.sql -------------------------------------------------------------------------------- /archive/V40__featured-mod-deployment.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V40__featured-mod-deployment.sql -------------------------------------------------------------------------------- /archive/V41__unique-clan-name-and-tag.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V41__unique-clan-name-and-tag.sql -------------------------------------------------------------------------------- /archive/V42__remove-unique-id-users-old.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS unique_id_users_old; 2 | -------------------------------------------------------------------------------- /archive/V43__coop-leaderboard-player-count-not-null.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V43__coop-leaderboard-player-count-not-null.sql -------------------------------------------------------------------------------- /archive/V44__new-id-for-name_history.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V44__new-id-for-name_history.sql -------------------------------------------------------------------------------- /archive/V45__update-achievement-texts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V45__update-achievement-texts.sql -------------------------------------------------------------------------------- /archive/V46__add-postman-oauth-client.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V46__add-postman-oauth-client.sql -------------------------------------------------------------------------------- /archive/V47__review-wilson-interval.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V47__review-wilson-interval.sql -------------------------------------------------------------------------------- /archive/V48__notes-per-user.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V48__notes-per-user.sql -------------------------------------------------------------------------------- /archive/V49__tutorial-maps.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V49__tutorial-maps.sql -------------------------------------------------------------------------------- /archive/V4__achievements-foreign-keys.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V4__achievements-foreign-keys.sql -------------------------------------------------------------------------------- /archive/V50__tutorial-featured-mod.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V50__tutorial-featured-mod.sql -------------------------------------------------------------------------------- /archive/V51__voting.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V51__voting.sql -------------------------------------------------------------------------------- /archive/V52__moderation_report.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V52__moderation_report.sql -------------------------------------------------------------------------------- /archive/V53__permission-system.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V53__permission-system.sql -------------------------------------------------------------------------------- /archive/V54__achievement-statistics-fix.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V54__achievement-statistics-fix.sql -------------------------------------------------------------------------------- /archive/V55__teamkill-constraints.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V55__teamkill-constraints.sql -------------------------------------------------------------------------------- /archive/V56__leagues.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V56__leagues.sql -------------------------------------------------------------------------------- /archive/V57__oauth_client_secret_noop.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V57__oauth_client_secret_noop.sql -------------------------------------------------------------------------------- /archive/V58__multi_team_invalidity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V58__multi_team_invalidity.sql -------------------------------------------------------------------------------- /archive/V59__updatetime_on_login.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V59__updatetime_on_login.sql -------------------------------------------------------------------------------- /archive/V5__mod_migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V5__mod_migration.sql -------------------------------------------------------------------------------- /archive/V60__has_ai_unrank.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V60__has_ai_unrank.sql -------------------------------------------------------------------------------- /archive/V61__ipv6.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE login MODIFY ip varchar(45); 2 | -------------------------------------------------------------------------------- /archive/V62__ban_revoke_restructuring.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V62__ban_revoke_restructuring.sql -------------------------------------------------------------------------------- /archive/V63__coop-validity-states.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V63__coop-validity-states.sql -------------------------------------------------------------------------------- /archive/V64__deployment-webhook.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V64__deployment-webhook.sql -------------------------------------------------------------------------------- /archive/V65__fix-ladder-win-ratio.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V65__fix-ladder-win-ratio.sql -------------------------------------------------------------------------------- /archive/V66__speedup_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V66__speedup_query.sql -------------------------------------------------------------------------------- /archive/V67__add-old-ladder-games-to-winratio.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V67__add-old-ladder-games-to-winratio.sql -------------------------------------------------------------------------------- /archive/V68__add_foreign_keys.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V68__add_foreign_keys.sql -------------------------------------------------------------------------------- /archive/V69__drop_legacy_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V69__drop_legacy_tables.sql -------------------------------------------------------------------------------- /archive/V6__hide-hidden-mods.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V6__hide-hidden-mods.sql -------------------------------------------------------------------------------- /archive/V70__convert_to_unicode.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V70__convert_to_unicode.sql -------------------------------------------------------------------------------- /archive/V71__game_durations.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V71__game_durations.sql -------------------------------------------------------------------------------- /archive/V72__rating_as_generated_column.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V72__rating_as_generated_column.sql -------------------------------------------------------------------------------- /archive/V73__leaderboards_and_map_pools.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V73__leaderboards_and_map_pools.sql -------------------------------------------------------------------------------- /archive/V74__drop_matchmaker_ban.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS matchmaker_ban; 2 | -------------------------------------------------------------------------------- /archive/V75__coop_leaderboard_foreign_key.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V75__coop_leaderboard_foreign_key.sql -------------------------------------------------------------------------------- /archive/V76__updates_fafdevelop.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V76__updates_fafdevelop.sql -------------------------------------------------------------------------------- /archive/V77__permission_refinement.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V77__permission_refinement.sql -------------------------------------------------------------------------------- /archive/V78__permission_roles_and_groups.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V78__permission_roles_and_groups.sql -------------------------------------------------------------------------------- /archive/V79__open_clans.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V79__open_clans.sql -------------------------------------------------------------------------------- /archive/V7__coop-leaderboard.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V7__coop-leaderboard.sql -------------------------------------------------------------------------------- /archive/V80__store_game_outcomes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V80__store_game_outcomes.sql -------------------------------------------------------------------------------- /archive/V81__permissions_server.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V81__permissions_server.sql -------------------------------------------------------------------------------- /archive/V82__map_pools.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V82__map_pools.sql -------------------------------------------------------------------------------- /archive/V83__invalid_map_ids_in_games.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V83__invalid_map_ids_in_games.sql -------------------------------------------------------------------------------- /archive/V84__add_leaderboard_entries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V84__add_leaderboard_entries.sql -------------------------------------------------------------------------------- /archive/V85__ban_level_vault.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V85__ban_level_vault.sql -------------------------------------------------------------------------------- /archive/V86__achievement_statistics_speedup.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V86__achievement_statistics_speedup.sql -------------------------------------------------------------------------------- /archive/V87__fix_lobby_ban_view.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V87__fix_lobby_ban_view.sql -------------------------------------------------------------------------------- /archive/V88__permissions_join_channel.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V88__permissions_join_channel.sql -------------------------------------------------------------------------------- /archive/V89__global_rating_distribution_view_to_event.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V89__global_rating_distribution_view_to_event.sql -------------------------------------------------------------------------------- /archive/V8__git-patcher.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V8__git-patcher.sql -------------------------------------------------------------------------------- /archive/V90__map_reviews_summary_view_to_event.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V90__map_reviews_summary_view_to_event.sql -------------------------------------------------------------------------------- /archive/V91__ladder1v1_rating_distribution_view_to_event.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V91__ladder1v1_rating_distribution_view_to_event.sql -------------------------------------------------------------------------------- /archive/V92__mod_review_summary_view_to_event.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V92__mod_review_summary_view_to_event.sql -------------------------------------------------------------------------------- /archive/V93__matchmaker_enhancements.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V93__matchmaker_enhancements.sql -------------------------------------------------------------------------------- /archive/V94__login_log.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V94__login_log.sql -------------------------------------------------------------------------------- /archive/V95__leaderboard_id_and_foreign_keys.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V95__leaderboard_id_and_foreign_keys.sql -------------------------------------------------------------------------------- /archive/V96__avatar-enhancements.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V96__avatar-enhancements.sql -------------------------------------------------------------------------------- /archive/V97__rating_materialized_view.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V97__rating_materialized_view.sql -------------------------------------------------------------------------------- /archive/V98__migrate_to_new_leaderboard_rating.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V98__migrate_to_new_leaderboard_rating.sql -------------------------------------------------------------------------------- /archive/V99__player_rating_unique_key_fix.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/archive/V99__player_rating_unique_key_fix.sql -------------------------------------------------------------------------------- /archive/V9__user-agent.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `login` ADD COLUMN `user_agent` VARCHAR(50); -------------------------------------------------------------------------------- /archive/manual-clan-migration.txt: -------------------------------------------------------------------------------- 1 | https://gist.github.com/IDragonfire/056333ffa6c7a1d0d1cfb73899313e13 2 | -------------------------------------------------------------------------------- /ci/schemaspy.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/ci/schemaspy.properties -------------------------------------------------------------------------------- /ci/schemaspy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/ci/schemaspy.sh -------------------------------------------------------------------------------- /ci/test-data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/ci/test-data.sh -------------------------------------------------------------------------------- /ci/test-migrations.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/ci/test-migrations.sh -------------------------------------------------------------------------------- /migrations/R__010_game_featuredMods.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__010_game_featuredMods.sql -------------------------------------------------------------------------------- /migrations/R__020_achievement_definitions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__020_achievement_definitions.sql -------------------------------------------------------------------------------- /migrations/R__030_event_definitions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__030_event_definitions.sql -------------------------------------------------------------------------------- /migrations/R__040_game_validity.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__040_game_validity.sql -------------------------------------------------------------------------------- /migrations/R__050_group_permission.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__050_group_permission.sql -------------------------------------------------------------------------------- /migrations/R__060_leaderboard.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__060_leaderboard.sql -------------------------------------------------------------------------------- /migrations/R__070_matchmaker_queue.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__070_matchmaker_queue.sql -------------------------------------------------------------------------------- /migrations/R__080_license.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/R__080_license.sql -------------------------------------------------------------------------------- /migrations/V107__baseline_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V107__baseline_schema.sql -------------------------------------------------------------------------------- /migrations/V108__disable_auto_increment.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V108__disable_auto_increment.sql -------------------------------------------------------------------------------- /migrations/V109__add_weight_and_other_params_to_map_pool_map_version.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V109__add_weight_and_other_params_to_map_pool_map_version.sql -------------------------------------------------------------------------------- /migrations/V110__replay_available_flag.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V110__replay_available_flag.sql -------------------------------------------------------------------------------- /migrations/V111__leaderboard_initialization.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V111__leaderboard_initialization.sql -------------------------------------------------------------------------------- /migrations/V112__map_pool_map_version_timestamp.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V112__map_pool_map_version_timestamp.sql -------------------------------------------------------------------------------- /migrations/V113__ranking_table_indices.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V113__ranking_table_indices.sql -------------------------------------------------------------------------------- /migrations/V114__replay_available_default_false.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V114__replay_available_default_false.sql -------------------------------------------------------------------------------- /migrations/V115__drop_league_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V115__drop_league_tables.sql -------------------------------------------------------------------------------- /migrations/V116__map_play_count_trigger.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V116__map_play_count_trigger.sql -------------------------------------------------------------------------------- /migrations/V117__recommended_maps_and_mods.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V117__recommended_maps_and_mods.sql -------------------------------------------------------------------------------- /migrations/V118__deaggregate_login_log.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V118__deaggregate_login_log.sql -------------------------------------------------------------------------------- /migrations/V119__drop_version_lobby.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V119__drop_version_lobby.sql -------------------------------------------------------------------------------- /migrations/V120__gog_user_id.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V120__gog_user_id.sql -------------------------------------------------------------------------------- /migrations/V121__matchmaker_queue_params.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V121__matchmaker_queue_params.sql -------------------------------------------------------------------------------- /migrations/V122__achievement_statistics_loader_slow_down.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V122__achievement_statistics_loader_slow_down.sql -------------------------------------------------------------------------------- /migrations/V123__update_time_vault_items.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V123__update_time_vault_items.sql -------------------------------------------------------------------------------- /migrations/V124__coturn_servers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V124__coturn_servers.sql -------------------------------------------------------------------------------- /migrations/V125__coop_scenario.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V125__coop_scenario.sql -------------------------------------------------------------------------------- /migrations/V126__create_links_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V126__create_links_table.sql -------------------------------------------------------------------------------- /migrations/V127__vault_licenses.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V127__vault_licenses.sql -------------------------------------------------------------------------------- /migrations/V128__reviews_average_score.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V128__reviews_average_score.sql -------------------------------------------------------------------------------- /migrations/V129__mods_repository_link.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V129__mods_repository_link.sql -------------------------------------------------------------------------------- /migrations/V130__drop_obsolete_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V130__drop_obsolete_tables.sql -------------------------------------------------------------------------------- /migrations/V131__gdpr_delete_handling.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V131__gdpr_delete_handling.sql -------------------------------------------------------------------------------- /migrations/V132__add_tos.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V132__add_tos.sql -------------------------------------------------------------------------------- /migrations/V133__login_log_charset_uft8.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V133__login_log_charset_uft8.sql -------------------------------------------------------------------------------- /migrations/V134__friends_and_foes_constraint.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V134__friends_and_foes_constraint.sql -------------------------------------------------------------------------------- /migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V135__add_veto_fields_to_matchmaker_queue_map_pool.sql -------------------------------------------------------------------------------- /migrations/V136__add_decapitation_victory_condition.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V136__add_decapitation_victory_condition.sql -------------------------------------------------------------------------------- /migrations/V137__add_avatar_description.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V137__add_avatar_description.sql -------------------------------------------------------------------------------- /migrations/V138__game_join_log.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V138__game_join_log.sql -------------------------------------------------------------------------------- /migrations/V139__add_ip_and_indices_to_game_join_log.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V139__add_ip_and_indices_to_game_join_log.sql -------------------------------------------------------------------------------- /migrations/V140__add_id_to_unique_id_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V140__add_id_to_unique_id_users.sql -------------------------------------------------------------------------------- /migrations/V141__enforce_uniqueness_unique_id_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/V141__enforce_uniqueness_unique_id_users.sql -------------------------------------------------------------------------------- /migrations/put-your-sql-migrations-here.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/migrations/put-your-sql-migrations-here.txt -------------------------------------------------------------------------------- /test-data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FAForever/db/HEAD/test-data.sql --------------------------------------------------------------------------------