Skip to content

Commit c697350

Browse files
committed
Add migrations
1 parent 9505de9 commit c697350

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

apps/meteor/server/startup/migrations/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,6 @@ import './v318';
2727
import './v319';
2828
import './v320';
2929
import './v321';
30+
import './v322';
3031

3132
export * from './xrun';
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { AppLogs } from '@rocket.chat/models';
2+
3+
import { addMigration } from '../../lib/migrations';
4+
5+
// Remove outdated indexes on rocketchat_apps_logs
6+
addMigration({
7+
version: 322,
8+
name: 'Remove outdated indexes on rocketchat_apps_logs',
9+
async up() {
10+
await AppLogs.col.dropIndex('appId_indexed_query');
11+
await AppLogs.col.dropIndex('general_logs_index');
12+
},
13+
});

0 commit comments

Comments
 (0)