add DB migrations

This commit is contained in:
bain 2023-10-13 20:43:17 +02:00
parent 80a19c1e73
commit ac07f3c3dc
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

10
sql/init.sql Normal file
View file

@ -0,0 +1,10 @@
CREATE TABLE tokens (
user TEXT NOT NULL,
token TEXT NOT NULL,
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
);
CREATE TABLE sch_updates (
filename TEXT NOT NULL,
applied TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
);