diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-05 15:15:21 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-13 14:10:20 +0200 |
commit | 9a455686c7e71e71fa84514760e9fb3202da1ca7 (patch) | |
tree | 05d9a04bd8a87fa3471a0a7a0fa04d90ef367837 /schema.sql | |
parent | d4eaac958d3c5c68a6e4bfd47ababb61bd9fd524 (diff) | |
download | server-9a455686c7e71e71fa84514760e9fb3202da1ca7.tar.gz |
Add "xtime" column for games to record finish date when state is missing.
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -279,7 +279,8 @@ create table if not exists games ( is_random boolean default 0, notice text, status integer default 0, - result text + result text, + xtime datetime ); create index if not exists games_title_idx on games(title_id); @@ -356,7 +357,7 @@ create view game_view as games.*, titles.title_name, owner.name as owner_name, - game_state.mtime, + coalesce(game_state.mtime, xtime) as mtime, game_state.active from games |