From 5e45cd527be6ad3fedc1fffd6b2cf6f3c87c3f51 Mon Sep 17 00:00:00 2001 From: cuixiaorui Date: Mon, 5 Feb 2024 15:39:53 +0800 Subject: [PATCH] ci: update --- scripts/db.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/db.ts b/scripts/db.ts index 7928e20c7..e4711f61f 100644 --- a/scripts/db.ts +++ b/scripts/db.ts @@ -1,16 +1,12 @@ import { migrate } from "drizzle-orm/mysql2/migrator"; import { drizzle } from "drizzle-orm/mysql2"; import * as mysql from "mysql2/promise"; -import path from "path"; -import dotenv from "dotenv"; - -dotenv.config({ path: path.resolve(__dirname, "../.env") }); async function main() { console.log("Running your migrations..."); const connection = await mysql.createConnection({ - uri: process.env.DATABASE_URL, + uri: process.env.TEST_DATABASE_URL, multipleStatements: true, waitForConnections: true, connectionLimit: 10,