mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-11 04:33:02 +02:00
allow overriding ooye data directory
This commit is contained in:
parent
d8e6de62e5
commit
42b331135d
11 changed files with 37 additions and 18 deletions
|
@ -4,10 +4,9 @@
|
|||
// Trigger the database migration flow and exit after committing.
|
||||
// You can use this to run migrations locally and check the result using sqlitebrowser.
|
||||
|
||||
const sqlite = require("better-sqlite3")
|
||||
|
||||
const passthrough = require("../src/passthrough")
|
||||
const db = new sqlite("ooye.db")
|
||||
const {getDatabase} = require("../src/db/database")
|
||||
const db = getDatabase()
|
||||
const migrate = require("../src/db/migrate")
|
||||
|
||||
Object.assign(passthrough, {db})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue