Skip to content

Commit da46882

Browse files
authored
Merge pull request #1375 from mozilla/add-fxa_uid-index-migration
add subscribers_fxa_uid_idx migration
2 parents 7371416 + f917c86 commit da46882

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"use strict";
2+
3+
4+
// Note: this index was created on stage and prod by hand
5+
// Use this statement to "fake" the migration:
6+
// 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');
7+
8+
exports.up = function(knex) {
9+
return knex.schema.table("subscribers", table => {
10+
table.index("fxa_uid", "subscribers_fxa_uid_idx");
11+
});
12+
};
13+
14+
exports.down = function(knex) {
15+
return knex.schema.table("subscribers", table => {
16+
table.dropIndex("fxa_uid", "subscribers_fxa_uid_idx");
17+
});
18+
};

0 commit comments

Comments
 (0)