Skip to content

Commit

Permalink
Merge pull request #1375 from mozilla/add-fxa_uid-index-migration
Browse files Browse the repository at this point in the history
add subscribers_fxa_uid_idx migration
  • Loading branch information
groovecoder authored Nov 18, 2019
2 parents 7371416 + f917c86 commit da46882
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions db/migrations/20191118100718_add-fxa-uid-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use strict";


// Note: this index was created on stage and prod by hand
// Use this statement to "fake" the migration:
// INSERT INTO knex_migrations (name, batch, migration_time) values ('20191118100718_add-fxa-uid-index.js', (SELECT max(batch) + 1 FROM knex_migrations), '2019-11-18 11:00:00.000-05');

exports.up = function(knex) {
return knex.schema.table("subscribers", table => {
table.index("fxa_uid", "subscribers_fxa_uid_idx");
});
};

exports.down = function(knex) {
return knex.schema.table("subscribers", table => {
table.dropIndex("fxa_uid", "subscribers_fxa_uid_idx");
});
};

0 comments on commit da46882

Please sign in to comment.