diff --git a/migrations/8/down.sql b/migrations/8/down.sql new file mode 100644 index 0000000..622e432 --- /dev/null +++ b/migrations/8/down.sql @@ -0,0 +1 @@ +DROP TABLE counters; diff --git a/migrations/8/up.sql b/migrations/8/up.sql new file mode 100644 index 0000000..c4badc0 --- /dev/null +++ b/migrations/8/up.sql @@ -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);