dbSetup import cids

This commit is contained in:
MrFry 2020-04-07 09:41:00 +02:00
parent 131577f25b
commit fb8e12f8d2
3 changed files with 46 additions and 15 deletions

View file

@ -124,7 +124,8 @@ function CreateTable (db, name, columns, foreignKeys) {
primary: 'PRIMARY KEY',
notNull: 'NOT NULL',
unique: 'UNIQUE',
autoIncrement: 'AUTOINCREMENT'
autoIncrement: 'AUTOINCREMENT',
defaultZero: 'DEFAULT 0'
}
Object.keys(toCheck).forEach((key) => {
if (item[key]) {