1

Adding history and dimensions tables

This commit is contained in:
Alex Yatskov 2015-03-11 14:25:30 +09:00
parent c5fc9ea80b
commit fad1f34f75

View File

@ -78,10 +78,27 @@ for (var i = 0, count = categories.length; i < count; ++i) {
}
//
// History
//
conn.query('DROP TABLE IF EXISTS history');
conn.query('CREATE TABLE history(date DATETIME NOT NULL, reviewId INT NOT NULL, dimensionId INT NOT NULL)');
//
// Groups
//
conn.query('DROP TABLE IF EXISTS dimensions');
conn.query('CREATE TABLE dimensions(categoryId INT NOT NULL, dimentionId INT NOT NULL AUTO_INCREMENT PRIMARY KEY)');
//
// Cleanup
//
conn.query('DROP TABLE IF EXISTS keywords');
conn.query('DROP TABLE IF EXISTS presets');
conn.query('DROP TABLE IF EXISTS groups');
conn.end();