13 lines
294 B
MySQL
13 lines
294 B
MySQL
|
BEGIN;
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS 'wins'
|
||
|
(
|
||
|
'id' Integer PRIMARY KEY AUTOINCREMENT,
|
||
|
'timestamp' DateTime NOT NULL DEFAULT (datetime(CURRENT_TIMESTAMP, 'localtime')),
|
||
|
'data' Text NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX IF NOT EXISTS 'index_timestamp' ON 'wins' ('timestamp');
|
||
|
|
||
|
COMMIT;
|