mirror of
https://gitlab.silvrtree.co.uk/martind2000/recipes.git
synced 2025-02-11 19:29:17 +00:00
updates to stop it breaking with an empty table
This commit is contained in:
parent
b57b11e19b
commit
d652921534
@ -46,7 +46,7 @@ function connectDB() {
|
|||||||
|
|
||||||
function createTable() {
|
function createTable() {
|
||||||
logger.debug('Creating temp table...');
|
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 );');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user