From 5bdf8b4aaf5dbce9276263f7720c9f50e5f35722 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sun, 26 Mar 2017 11:13:10 -0700 Subject: [PATCH] Fix #657 --- package.json | 2 +- src/database/tables.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 20fa5ec1..0c92be83 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.34.7", + "version": "3.34.8", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/src/database/tables.js b/src/database/tables.js index e0874a38..e0b98816 100644 --- a/src/database/tables.js +++ b/src/database/tables.js @@ -20,7 +20,13 @@ const TBL_CHANNELS = "" + "`name` VARCHAR(30) NOT NULL," + "`owner` VARCHAR(20) NOT NULL," + "`time` BIGINT NOT NULL," + - "PRIMARY KEY (`id`), UNIQUE(`name`), INDEX(`owner`))" + + "`last_loaded` TIMESTAMP NOT NULL DEFAULT 0," + + "`owner_last_seen` TIMESTAMP NOT NULL DEFAULT 0," + + "PRIMARY KEY (`id`)," + + "UNIQUE(`name`)," + + "INDEX(`owner`)," + + "INDEX(`last_loaded`)," + + "INDEX(`owner_last_seen`)) " + "CHARACTER SET utf8"; const TBL_GLOBAL_BANS = "" +