Skip to content

Commit

Permalink
Fix some schema typos
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Anderson <[email protected]>
  • Loading branch information
Forty-Bot committed Dec 31, 2020
1 parent 785c999 commit 1f7a2ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ CREATE TABLE IF NOT EXISTS medic_stats (
FOREIGN KEY (logid, steamid64) REFERENCES player_stats (logid, steamid64),
CHECK ((medigun_ubers ISNULL AND kritz_ubers ISNULL AND other_ubers ISNULL) OR
(medigun_ubers NOTNULL AND kritz_ubers NOTNULL AND other_ubers NOTNULL)),
CHECK (medigun_ubers ISNULL OR ubers == medigun_ubers + kritz_ubers + other_ubers),
CHECK (medigun_ubers ISNULL OR ubers = medigun_ubers + kritz_ubers + other_ubers),
CHECK ((advantages_lost NOTNULL AND biggest_advantage_lost NOTNULL) OR
(advantages_lost ISNULL AND biggest_advantage_lost ISNULL))
) WITHOUT ROWID;
Expand Down Expand Up @@ -241,7 +241,7 @@ CREATE TABLE IF NOT EXISTS weapon_stats (
hits INT,
PRIMARY KEY (steamid64, logid, classid, weaponid),
FOREIGN KEY (logid, steamid64, classid) REFERENCES class_stats (logid, steamid64, classid),
CHECK ((shots NOTNULL AND hits NOTNULL) OR (shots ISNULL AND hits ISNULL))
CHECK ((shots NOTNULL AND hits NOTNULL) OR (shots ISNULL AND hits ISNULL)),
CHECK ((dmg NOTNULL AND avg_dmg NOTNULL) OR (dmg ISNULL AND avg_dmg ISNULL))
) WITHOUT ROWID;

Expand Down

0 comments on commit 1f7a2ee

Please sign in to comment.