Begin visitor counter stuff

This commit is contained in:
swagg boi 2022-01-12 17:05:36 -05:00
parent 0804b52d46
commit 96f9ab2d30
2 changed files with 10 additions and 0 deletions

1
migrations/8/down.sql Normal file
View file

@ -0,0 +1 @@
DROP TABLE counters;

9
migrations/8/up.sql Normal file
View file

@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS counters (
counter_id SERIAL PRIMARY KEY,
counter_name VARCHAR(64),
counter_value INTEGER,
counter_date TIMESTAMPTZ SET DEFAULT NOW()
);
INSERT INTO counters (counter_name, counter_value)
VALUES ('visitor', 1337);