mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-23 20:24:34 +02:00
Add migrations to the callers
This commit is contained in:
parent
b446c2ce4b
commit
963bc5f0bc
2 changed files with 6 additions and 2 deletions
|
@ -5,13 +5,15 @@ import { versionMigrations } from "../db/pg";
|
||||||
import { __DIRNAME, APP_VERSION } from "@server/lib/consts";
|
import { __DIRNAME, APP_VERSION } from "@server/lib/consts";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import m1 from "./scriptsPg/1.6.0";
|
import m1 from "./scriptsPg/1.6.0";
|
||||||
|
import m2 from "./scriptsPg/1.7.0";
|
||||||
|
|
||||||
// THIS CANNOT IMPORT ANYTHING FROM THE SERVER
|
// THIS CANNOT IMPORT ANYTHING FROM THE SERVER
|
||||||
// EXCEPT FOR THE DATABASE AND THE SCHEMA
|
// EXCEPT FOR THE DATABASE AND THE SCHEMA
|
||||||
|
|
||||||
// Define the migration list with versions and their corresponding functions
|
// Define the migration list with versions and their corresponding functions
|
||||||
const migrations = [
|
const migrations = [
|
||||||
{ version: "1.6.0", run: m1 }
|
{ version: "1.6.0", run: m1 },
|
||||||
|
{ version: "1.7.0", run: m2 }
|
||||||
// Add new migrations here as they are created
|
// Add new migrations here as they are created
|
||||||
] as {
|
] as {
|
||||||
version: string;
|
version: string;
|
||||||
|
|
|
@ -22,6 +22,7 @@ import m18 from "./scriptsSqlite/1.2.0";
|
||||||
import m19 from "./scriptsSqlite/1.3.0";
|
import m19 from "./scriptsSqlite/1.3.0";
|
||||||
import m20 from "./scriptsSqlite/1.5.0";
|
import m20 from "./scriptsSqlite/1.5.0";
|
||||||
import m21 from "./scriptsSqlite/1.6.0";
|
import m21 from "./scriptsSqlite/1.6.0";
|
||||||
|
import m22 from "./scriptsSqlite/1.7.0";
|
||||||
|
|
||||||
// THIS CANNOT IMPORT ANYTHING FROM THE SERVER
|
// THIS CANNOT IMPORT ANYTHING FROM THE SERVER
|
||||||
// EXCEPT FOR THE DATABASE AND THE SCHEMA
|
// EXCEPT FOR THE DATABASE AND THE SCHEMA
|
||||||
|
@ -43,7 +44,8 @@ const migrations = [
|
||||||
{ version: "1.2.0", run: m18 },
|
{ version: "1.2.0", run: m18 },
|
||||||
{ version: "1.3.0", run: m19 },
|
{ version: "1.3.0", run: m19 },
|
||||||
{ version: "1.5.0", run: m20 },
|
{ version: "1.5.0", run: m20 },
|
||||||
{ version: "1.6.0", run: m21 }
|
{ version: "1.6.0", run: m21 },
|
||||||
|
{ version: "1.7.0", run: m22 },
|
||||||
// Add new migrations here as they are created
|
// Add new migrations here as they are created
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue