Skip to content

Commit fc68cf4

Browse files
authored
chore: remove migration (#20129)
1 parent 0051a9b commit fc68cf4

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
import { Kysely, sql } from 'kysely';
2-
import { LoggingRepository } from 'src/repositories/logging.repository';
1+
// this file used to try to reset the `vchordrq.prewarm_dim;` parameter
2+
// that ends up being a problem on pg 15 + since the extension is not installed.
33

4-
const logger = LoggingRepository.create('Migrations');
5-
6-
export async function up(db: Kysely<any>): Promise<void> {
7-
const { rows } = await sql<{ db: string }>`SELECT current_database() as db;`.execute(db);
8-
const databaseName = rows[0].db;
9-
try {
10-
await sql.raw(`ALTER DATABASE "${databaseName}" RESET vchordrq.prewarm_dim;`).execute(db);
11-
} catch {
12-
logger.warn('Failed to reset vchordrq.prewarm_dim, skipping');
13-
}
4+
export async function up(): Promise<void> {
5+
// noop
146
}
157

16-
export async function down(db: Kysely<any>): Promise<void> {
17-
const { rows } = await sql<{ db: string }>`SELECT current_database() as db;`.execute(db);
18-
const databaseName = rows[0].db;
19-
await sql
20-
.raw(`ALTER DATABASE "${databaseName}" SET vchordrq.prewarm_dim = '512,640,768,1024,1152,1536';`)
21-
.execute(db);
8+
export async function down(): Promise<void> {
9+
// noop
2210
}

0 commit comments

Comments
 (0)