Readme update, and dbSetup uncommenting code

This commit is contained in:
MrFry 2020-04-10 15:42:11 +02:00
parent cbda399176
commit 2535ee92b0
4 changed files with 38 additions and 11 deletions

View file

@ -18,10 +18,10 @@ function CreateDB () {
authDB = dbtools.GetDB(usersDBPath)
authDB.pragma('synchronous = OFF')
// Object.keys(dbStruct).forEach((tableName) => {
// const tableData = dbStruct[tableName]
// dbtools.CreateTable(authDB, tableName, tableData.tableStruct, tableData.foreignKey)
// })
Object.keys(dbStruct).forEach((tableName) => {
const tableData = dbStruct[tableName]
dbtools.CreateTable(authDB, tableName, tableData.tableStruct, tableData.foreignKey)
})
try {
if (utils.FileExists('./ids')) {