From 15d46c7f815e3d2bfea3b226ffac7d45e8c5777d Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Tue, 25 Sep 2018 20:45:49 +0100 Subject: [PATCH] Rename logs table --- migrations/001.create-core.up.sql | 4 ++-- migrations/001.drop-core.down.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/migrations/001.create-core.up.sql b/migrations/001.create-core.up.sql index 09663ecc..7a11be64 100644 --- a/migrations/001.create-core.up.sql +++ b/migrations/001.create-core.up.sql @@ -85,11 +85,11 @@ CREATE TABLE user_sessions ( CREATE INDEX user_sessions_expire_idx on user_sessions ( expire ); -- --- Log table +-- Logs table -- -- To store all changes to building data, recording users and change in data -- over time. -CREATE TABLE log ( +CREATE TABLE logs ( -- integer for internal unique id log_id bigserial PRIMARY KEY, -- default timestamp to time now diff --git a/migrations/001.drop-core.down.sql b/migrations/001.drop-core.down.sql index 7f38ca4a..476a9482 100644 --- a/migrations/001.drop-core.down.sql +++ b/migrations/001.drop-core.down.sql @@ -1,5 +1,5 @@ -- Drop all tables -DROP TABLE IF EXISTS log; +DROP TABLE IF EXISTS logs; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS user_sessions; DROP TABLE IF EXISTS user_categories;