second init
This commit is contained in:
1
sql/README.md
Normal file
1
sql/README.md
Normal file
@ -0,0 +1 @@
|
||||
`wins` заменить на `donates` для создания второй таблицы.
|
12
sql/table.sql
Normal file
12
sql/table.sql
Normal file
@ -0,0 +1,12 @@
|
||||
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;
|
Reference in New Issue
Block a user