Skip to content

Commit

Permalink
Temp disable migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Jun 26, 2024
1 parent 11c43c5 commit cdf7956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/server/utils/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class DbConnect {

private constructor(config: Partial<DbConfig> = {}) {
this.#config = this.#buildConfig(config);
console.log('Database config:', this.#config);
this.#pool = new Pool(this.#config);
this.#database = drizzle(this.#pool, { schema });
}
Expand Down Expand Up @@ -66,6 +67,7 @@ class DbConnect {

export const drainDbPool = DbConnect.drainPool;
export const runDbMigrations = async () => {
await DbConnect.getInstance().runMigrations();
console.log('skipping migrations');
// await DbConnect.getInstance().runMigrations();
};
export const useDatabase = () => DbConnect.database;

0 comments on commit cdf7956

Please sign in to comment.