You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ALTERTABLE greenieboard ADD COLUMN IF NOT EXISTS mission_id INTEGERNOT NULL DEFAULT -1;
2
2
ALTERTABLE greenieboard ADD COLUMN IF NOT EXISTS trapsheet TEXT;
3
3
DELETEFROM greenieboard;
4
-
INSERT INTO greenieboard (mission_id, player_ucid, unit_type, grade, comment, place, night, points, time) SELECT mission_id, init_id, init_type, grade, comment, place, FALSE, CASE WHEN grade ='_OK_' THEN 5 WHEN grade ='OK' THEN 4 WHEN grade ='(OK)' THEN 3 WHEN grade ='B' THEN 2.5 WHEN grade IN('---', 'OWO', 'WOP') THEN 2 WHEN grade IN ('WO', 'LIG') THEN 1 WHEN grade ='C' THEN 0 END AS points, timeFROM (SELECT mission_id, init_id, init_type, SUBSTRING(comment, 'LSO: GRADE:([_\(\)-BCKOW]{1,4})') AS grade, comment, place, timeFROM missionstats WHERE event LIKE'%QUALITY%'ANDinit_typeIS NOT NULL) AS landings;
4
+
INSERT INTO greenieboard (mission_id, player_ucid, unit_type, grade, comment, place, night, points, time) SELECT mission_id, init_id, init_type, grade, comment, place, FALSE, CASE WHEN grade ='_OK_' THEN 5 WHEN grade ='OK' THEN 4 WHEN grade ='(OK)' THEN 3 WHEN grade ='B' THEN 2.5 WHEN grade IN('---', 'OWO', 'WOP') THEN 2 WHEN grade IN ('WO', 'LIG') THEN 1 WHEN grade ='C' THEN 0 END AS points, timeFROM (SELECT mission_id, init_id, init_type, SUBSTRING(comment, 'LSO: GRADE:([_\(\)-BCKOW]{1,4})') AS grade, comment, place, timeFROM missionstats WHERE event LIKE'%QUALITY%'ANDinit_idIS NOT NULL) AS landings;
0 commit comments