adds history table
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE history;
|
||||
8
lootalot_db/migrations/2019-10-27-135235_history/up.sql
Normal file
8
lootalot_db/migrations/2019-10-27-135235_history/up.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE history (
|
||||
id INTEGER PRIMARY KEY NOT NULL,
|
||||
player_id INTEGER NOT NULL,
|
||||
event_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
text VARCHAR NOT NULL,
|
||||
updates VARCHAR,
|
||||
FOREIGN KEY (player_id) REFERENCES players(id)
|
||||
);
|
||||
Reference in New Issue
Block a user