Rename logs table

This commit is contained in:
Tom Russell 2018-09-25 20:45:49 +01:00
parent c6b3d3d5ca
commit 15d46c7f81
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

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