Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Feb 5, 2024
1 parent 9d86fc1 commit 5e45cd5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/db.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 5e45cd5

Please sign in to comment.