1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

chore: leave out migrator for now

This commit is contained in:
Nuno Góis 2025-09-04 12:55:15 +01:00
parent 7cec27a75a
commit 65d3b16bcb
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

@ -6,7 +6,6 @@ import type { IUnleashConfig } from './lib/types/option.js';
import { secondsToMilliseconds } from 'date-fns'; import { secondsToMilliseconds } from 'date-fns';
import path from 'path'; import path from 'path';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
import { getDBPassword } from './lib/db/aws-iam.js';
log.setLogLevel('error'); log.setLogLevel('error');
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
@ -26,7 +25,6 @@ export async function migrateDb(
return noDatabaseUrl(async () => { return noDatabaseUrl(async () => {
const custom = { const custom = {
...db, ...db,
password: await getDBPassword(db),
connectionTimeoutMillis: secondsToMilliseconds(10), connectionTimeoutMillis: secondsToMilliseconds(10),
}; };
@ -48,7 +46,6 @@ export async function requiresMigration({
return noDatabaseUrl(async () => { return noDatabaseUrl(async () => {
const custom = { const custom = {
...db, ...db,
password: await getDBPassword(db),
connectionTimeoutMillis: secondsToMilliseconds(10), connectionTimeoutMillis: secondsToMilliseconds(10),
}; };
@ -70,7 +67,6 @@ export async function resetDb({ db }: IUnleashConfig): Promise<void> {
return noDatabaseUrl(async () => { return noDatabaseUrl(async () => {
const custom = { const custom = {
...db, ...db,
password: await getDBPassword(db),
connectionTimeoutMillis: secondsToMilliseconds(10), connectionTimeoutMillis: secondsToMilliseconds(10),
}; };