Begin visitor counter stuff
This commit is contained in:
parent
0804b52d46
commit
96f9ab2d30
1
migrations/8/down.sql
Normal file
1
migrations/8/down.sql
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DROP TABLE counters;
|
9
migrations/8/up.sql
Normal file
9
migrations/8/up.sql
Normal 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);
|
Loading…
Reference in a new issue