Expand website and game trackers
Some checks failed
Test and deploy staging / staging (push) Failing after 5m29s
Some checks failed
Test and deploy staging / staging (push) Failing after 5m29s
This commit is contained in:
@@ -45,6 +45,12 @@ try {
|
||||
'pokemon_locations', 'pokemon_encounters', 'pokemon_evolutions',
|
||||
'tracker_games', 'tracker_items', 'tracker_progress'
|
||||
)) as game_tracker_tables,
|
||||
(select count(*) from information_schema.tables where table_schema='public' and table_name in (
|
||||
'pokemon_research','pokemon_dex_numbers','pokemon_moves','pokemon_learnsets','pokemon_game_research',
|
||||
'pokemon_journeys','pokemon_catches','pokemon_milestones','tracker_ranks','tracker_weapon_ranks',
|
||||
'tracker_challenges','tracker_challenge_progress','osu_entries','pokemon_seen'
|
||||
)) as tracker_journal_tables,
|
||||
(select count(*) from information_schema.columns where table_name='pokemon_journeys' and column_name='completed') as tracker_completion_column,
|
||||
(select count(*) from information_schema.columns
|
||||
where table_name = 'pokemon_game_entries' and column_name = 'source') as entry_source,
|
||||
(select count(*) from information_schema.columns
|
||||
@@ -66,6 +72,8 @@ try {
|
||||
!Number(schema.money_billing_start) ||
|
||||
Number(schema.money_projection_columns) !== 5 ||
|
||||
Number(schema.game_tracker_tables) !== 6 ||
|
||||
Number(schema.tracker_journal_tables) !== 14 ||
|
||||
!Number(schema.tracker_completion_column) ||
|
||||
!Number(schema.entry_source)
|
||||
) {
|
||||
throw new Error(
|
||||
@@ -78,7 +86,12 @@ try {
|
||||
(select count(*) from games where source_id is not null) as games,
|
||||
(select count(*) from pokemon_game_entries) as entries,
|
||||
(select count(*) from pokemon_encounters) as encounters,
|
||||
(select count(*) from tracker_games where franchise = 'call-of-duty') as cod_games
|
||||
(select count(*) from tracker_games where franchise = 'call-of-duty') as cod_games,
|
||||
(select count(*) from pokemon_research) as pokemon_research,
|
||||
(select count(*) from pokemon_moves) as pokemon_moves,
|
||||
(select count(*) from pokemon_learnsets) as pokemon_learnsets,
|
||||
(select count(*) from pokemon_dex_numbers) as pokemon_dex_numbers,
|
||||
(select count(*) from tracker_challenges) as tracker_challenges
|
||||
`;
|
||||
if (
|
||||
Number(catalog.pokemon) < 1025 ||
|
||||
@@ -88,6 +101,16 @@ try {
|
||||
) {
|
||||
throw new Error('Pokémon catalog has not been seeded in this database');
|
||||
}
|
||||
if (
|
||||
Number(catalog.pokemon_research) < 1025 ||
|
||||
Number(catalog.pokemon_moves) < 937 ||
|
||||
Number(catalog.pokemon_learnsets) < 11000 ||
|
||||
Number(catalog.pokemon_dex_numbers) < 16000 ||
|
||||
Number(catalog.tracker_challenges) < 3600
|
||||
)
|
||||
throw new Error(
|
||||
'Run db:migrate:tracker-journal, db:seed:research and db:seed:challenges before deploying the tracker expansion'
|
||||
);
|
||||
if (Number(catalog.cod_games) < 7) {
|
||||
throw new Error('Call of Duty catalog has not been seeded in this database');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user