Skip to content

Commit

Permalink
Merge pull request #707 from mozilla/add-verified-index-1517343
Browse files Browse the repository at this point in the history
bug 1517343 - add index to verified column
  • Loading branch information
groovecoder authored Jan 17, 2019
2 parents 70b40aa + 28c53f3 commit ed79da8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions db/migrations/20190117150910_add_verified_index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use strict";


exports.up = function(knex, Promise) {
return knex.schema.table("subscribers", table => {
table.index("verified", "subscribers_verified_idx");
});
};

exports.down = function(knex, Promise) {
return knex.schema.table("subscribers", table => {
table.dropIndex("verified", "subscribers_verified_idx");
});
};

0 comments on commit ed79da8

Please sign in to comment.