瀏覽代碼

Update migration to start at 1.0.0-beta.1

Owen Schwartz 6 月之前
父節點
當前提交
fdfc1937f1
共有 3 個文件被更改,包括 9 次插入10 次删除
  1. 2 2
      server/setup/migrations.ts
  2. 7 0
      server/setup/scripts/1.0.0-beta1.ts
  3. 0 8
      server/setup/scripts/1.0.0.ts

+ 2 - 2
server/setup/migrations.ts

@@ -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 - 0
server/setup/scripts/1.0.0-beta1.ts

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

+ 0 - 8
server/setup/scripts/1.0.0.ts

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