Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/db/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,11 @@ export const MIGRATIONS = [
);
`);
},
// 82: the open tickets of one user across servers (the DM ticket lookup asks for them first). Postgres
// creates the same index in its bootstrap (db/tickets.js).
(database) => {
database.exec(`CREATE INDEX IF NOT EXISTS idx_tickets_user_open ON tickets (user_id) WHERE status = 'open';`);
},
];

/** Highest schema version this build knows how to run. */
Expand Down
Loading