Add field to store timestamp of joining game
Dependencies
- [2]
MUTHALNPDetect user and domain in Mastodon fediverse - [*]
FUCFD4UVAdd log in and log out support - [*]
IXY6NZLMStart to use migrations files for PostgreSQL database
Change contents
- edit in src/pages/log_in.rs at line 201
// Try to register on Mastodon - file addition: 20230509_0_game-player-create_ts.sql[5.15]
-- Add field to store timestamp of joining gameDO $$BEGINIF NOT EXISTS (SELECT 1 FROM pg_class cINNER JOIN pg_namespace n ON n.oid = c.relnamespaceINNER JOIN pg_attribute a ON a.attrelid = c.oidWHERE c.relname = 'players' AND n.nspname = 'games' AND a.attname = 'create_ts') THENALTER TABLE games.players ADD COLUMN create_ts TIMESTAMP WITHOUT TIME ZONE NULL;END IF;END$$;