cmd/ismdb: include campaign ids from race rewards
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
DROP VIEW IF EXISTS gain_event;
|
||||
DROP VIEW IF EXISTS gain_inspiration;
|
||||
DROP VIEW IF EXISTS gain_support_card;
|
||||
DROP VIEW IF EXISTS career_chara_count;
|
||||
|
||||
CREATE VIEW gain_event AS
|
||||
SELECT
|
||||
@@ -86,3 +87,11 @@ SELECT
|
||||
gain_end_closer
|
||||
FROM gain
|
||||
WHERE source > 1;
|
||||
|
||||
CREATE VIEW career_chara_count AS
|
||||
SELECT
|
||||
trainer_id,
|
||||
card_id,
|
||||
COUNT(*)
|
||||
FROM career
|
||||
GROUP BY trainer_id, card_id;
|
||||
|
||||
Reference in New Issue
Block a user