diff --git a/packages/agent-config/src/dataSources.ts b/packages/agent-config/src/dataSources.ts index 7a8ceed2a..58438dd40 100644 --- a/packages/agent-config/src/dataSources.ts +++ b/packages/agent-config/src/dataSources.ts @@ -154,5 +154,6 @@ export const revertMigration = async (dataSource: DataSource): Promise => } export const resetDatabase = async (dbName: string): Promise => { await dropDatabase(dbName) - await getDbConnection(dbName) + const connection = await getDbConnection(dbName) + await connection.runMigrations() }