guestbook-ng/migrations/8/up.sql
2022-01-12 17:05:36 -05:00

10 lines
258 B
SQL

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);