+3
src/cache.ts
+3
src/cache.ts
···
150
150
*/
151
151
private async runMigrations() {
152
152
try {
153
+
// Define migrations directly here to avoid circular dependencies
154
+
// Note: We define migrations both here and in migrations/index.ts
155
+
// This is intentional to prevent circular imports
153
156
const migrations = [
154
157
endpointGroupingMigration,
155
158
logGroupingMigration
+3
-4
src/migrations/index.ts
+3
-4
src/migrations/index.ts
···
1
1
import { endpointGroupingMigration } from "./endpointGroupingMigration";
2
2
import { logGroupingMigration } from "./logGroupingMigration";
3
3
import { Migration } from "./types";
4
-
import { MigrationManager } from "./migrationManager";
5
4
6
5
// Export all migrations
7
-
export const migrations: Migration[] = [
6
+
export const migrations = [
8
7
endpointGroupingMigration,
9
8
logGroupingMigration,
10
9
// Add new migrations here
11
10
];
12
11
13
-
// Export the migration manager and types
14
-
export { MigrationManager, Migration };
12
+
// Export the migration types
13
+
export { Migration };