Fix references from moving all those files
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
module.exports = async function(db) {
|
||||
const config = require("../../config")
|
||||
const config = require("../../../config")
|
||||
const id = Buffer.from(config.discordToken.split(".")[0], "base64").toString()
|
||||
db.prepare("UPDATE OR REPLACE sim SET user_id = ? WHERE user_id = '0'").run(id)
|
||||
}
|
||||
|
||||
8
src/db/migrations/0013-media-proxy.sql
Normal file
8
src/db/migrations/0013-media-proxy.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
CREATE TABLE "media_proxy" (
|
||||
"permitted_hash" INTEGER NOT NULL,
|
||||
PRIMARY KEY("permitted_hash")
|
||||
) WITHOUT ROWID;
|
||||
|
||||
COMMIT;
|
||||
@@ -1,7 +1,7 @@
|
||||
// @ts-check
|
||||
|
||||
const {test} = require("supertape")
|
||||
const data = require("../test/data")
|
||||
const data = require("../../test/data")
|
||||
|
||||
const {db, select, from} = require("../passthrough")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user