mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
dbSetup import cids
This commit is contained in:
parent
131577f25b
commit
fb8e12f8d2
3 changed files with 46 additions and 15 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue