Update migration to start at 1.0.0-beta.1

This commit is contained in:
Owen Schwartz 2024-12-26 18:06:48 -05:00
parent 9a1388b195
commit fdfc1937f1
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
3 changed files with 9 additions and 10 deletions

View file

@ -8,12 +8,12 @@ import { versionMigrations } from "@server/db/schema";
import { desc } from "drizzle-orm";
// 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
// Define the migration list with versions and their corresponding functions
const migrations = [
{ version: "1.0.0", run: migration100 }
{ version: "1.0.0-beta.1", run: migration100beta1 }
// Add new migrations here as they are created
] as const;

View 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...");
}

View file

@ -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...");
}