Update migration to start at 1.0.0-beta.1
This commit is contained in:
parent
9a1388b195
commit
fdfc1937f1
3 changed files with 9 additions and 10 deletions
|
@ -8,12 +8,12 @@ import { versionMigrations } from "@server/db/schema";
|
||||||
import { desc } from "drizzle-orm";
|
import { desc } from "drizzle-orm";
|
||||||
|
|
||||||
// Import all migrations explicitly
|
// Import all migrations explicitly
|
||||||
import migration100 from "./scripts/1.0.0";
|
import migration100beta1 from "./scripts/1.0.0-beta1";
|
||||||
// Add new migration imports here as they are created
|
// Add new migration imports here as they are created
|
||||||
|
|
||||||
// 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.0.0", run: migration100 }
|
{ version: "1.0.0-beta.1", run: migration100beta1 }
|
||||||
// Add new migrations here as they are created
|
// Add new migrations here as they are created
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
|
|
7
server/setup/scripts/1.0.0-beta1.ts
Normal file
7
server/setup/scripts/1.0.0-beta1.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import logger from "@server/logger";
|
||||||
|
|
||||||
|
export default async function migration100beta1() {
|
||||||
|
logger.info("Running setup script 1.0.0-beta.1");
|
||||||
|
// SQL operations would go here in ts format
|
||||||
|
logger.info("Done...");
|
||||||
|
}
|
|
@ -1,8 +0,0 @@
|
||||||
import db from "@server/db";
|
|
||||||
import logger from "@server/logger";
|
|
||||||
|
|
||||||
export default async function migration100() {
|
|
||||||
logger.info("Running setup script 1.0.0");
|
|
||||||
// SQL operations would go here in ts format
|
|
||||||
logger.info("Done...");
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue