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;