updates to stop it breaking with an empty table

This commit is contained in:
Martin Donnelly 2016-02-24 15:11:49 +00:00
parent b57b11e19b
commit d652921534

View File

@ -46,7 +46,7 @@ function connectDB() {
function createTable() {
logger.debug('Creating temp table...');
db.run('CREATE TABLE `recipes` (`id` INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, `url` TEXT, `html` TEXT, `reduced` TEXT );');
db.run('CREATE TABLE `recipes` (`id` INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, `url` TEXT, `html` TEXT, `reduced` TEXT, `title` TEXT );');
}