Fix seed.js to use the new database DDL creation

This commit is contained in:
Cadence Ember 2023-10-02 14:00:14 +13:00
parent 9e22101f66
commit 2b50184485
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ const HeatSync = require("heatsync")
const config = require("../config")
const passthrough = require("../passthrough")
const db = new sqlite("db/ooye.db")
const migrate = require("../db/migrate")
const sync = new HeatSync({watchFS: false})
@ -28,7 +29,7 @@ const utils = require("../m2d/converters/utils")
assert.notEqual(reg.ooye.server_origin.slice(-1), "/") // must not end in slash
// database ddl...
db.exec(fs.readFileSync("db/ooye-schema.sql", "utf8"))
await migrate.migrate(db)
// ensure homeserver well-known is valid and returns reg.ooye.server_name...