Create Database Migration Scripts

This commit is contained in:
zkldi
2021-08-21 01:52:21 +01:00
parent 6450bb3fc5
commit 2e4bd5515f
54 changed files with 1236 additions and 303 deletions
@@ -1,7 +1,7 @@
import fs from "fs";
import path from "path";
import CreateLogCtx from "../../../src/common/logger";
import db from "../../../src/db/db";
import db from "external/mongo/db";
const logger = CreateLogCtx(__filename);
const charts = JSON.parse(fs.readFileSync(path.join(__dirname, "./charts.json"), "utf-8"));
@@ -3,7 +3,7 @@
import fs from "fs";
import path from "path";
import db from "../../../src/db/db";
import db from "external/mongo/db";
import { MDBJson } from "./types";
import { Difficulties, Playtypes, ChartDocument } from "tachi-common";
import CreateLogCtx from "../../../src/common/logger";