@fdm-monster/server
Version:
FDM Monster is a bulk OctoPrint, Klipper, PrusaLink and BambuLab manager to set up, configure and monitor 3D printers. Our aim is to provide neat overview over your farm.
30 lines (29 loc) • 1.04 kB
JavaScript
//#region src/migrations/1767291804417-DropPrintCompletions.ts
var DropPrintCompletions1767291804417 = class {
name = "DropPrintCompletions1767291804417";
async up(queryRunner) {
await queryRunner.query(`
DROP TABLE print_completion
`);
}
async down(queryRunner) {
await queryRunner.query(`
CREATE TABLE "print_completion"
(
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
"fileName" varchar NOT NULL,
"createdAt" integer NOT NULL DEFAULT (datetime('now')),
"status" varchar NOT NULL,
"printerId" integer NOT NULL,
"printerReference" varchar,
"completionLog" varchar,
"context" text,
CONSTRAINT "FK_c078b1dfe5f87f79f131520d856" FOREIGN KEY ("printerId") REFERENCES "printer" ("id") ON DELETE
SET NULL ON UPDATE NO ACTION
)
`);
}
};
//#endregion
export { DropPrintCompletions1767291804417 };
//# sourceMappingURL=1767291804417-DropPrintCompletions.js.map