You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
381 B
11 lines
381 B
import runMigrationSqlite from './../db/migration.js'
|
|
import getOrCreateSqlite from './../db/sqlite.js'
|
|
import path from 'path'
|
|
|
|
// get config
|
|
import config from './../_config.js'
|
|
config()
|
|
|
|
const mainDB = getOrCreateSqlite({ 'uri': process.env.APP_SQLITE_URI_MAIN, 'create': true, 'readwrite': true })
|
|
runMigrationSqlite(path.join(path.resolve(), './../server/migration'), mainDB)
|