mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Readme update, and dbSetup uncommenting code
This commit is contained in:
parent
cbda399176
commit
2535ee92b0
4 changed files with 38 additions and 11 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue