Files
outline/server/migrations/20220816175234-user-email-index.js
Tom Moor 1f93399447 feat: Add availableTeams to auth.info endpoint (#3981)
* Index emails migration

* feat: Add available teams to auth.info endpoint

* test

* separate presenter

* Include data from sessions cookie, include likely logged in state

* test

* test: Add test for team only in session cookie

* Suggested query change in PR feedback
2022-09-10 06:58:38 -07:00

12 lines
222 B
JavaScript

'use strict';
module.exports = {
async up (queryInterface) {
await queryInterface.addIndex("users", ["email"]);
},
async down (queryInterface) {
await queryInterface.removeIndex("users", ["email"]);
}
};