Skip to content

Commit

Permalink
Add migration for registry item name change
Browse files Browse the repository at this point in the history
Signed-off-by: Seun Martins <[email protected]>
  • Loading branch information
impactmass committed Jan 16, 2019
1 parent 29c368a commit ecc7f9c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Migrations } from "meteor/percolate:migrations";
import { Packages } from "/lib/collections";

Migrations.add({
version: 53,
up() {
Packages.update({
"name": "reaction-accounts",
"registry.name": "Reset Password"
}, {
$set: {
"registry.$.name": "reset-password"
}
}, { multi: true });
},
down() {
Packages.update({
"name": "reaction-accounts",
"registry.name": "reset-password"
}, {
$set: {
"registry.$.name": "Reset Password"
}
}, { multi: true });
}
});
1 change: 1 addition & 0 deletions imports/plugins/core/versions/server/migrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ import "./49_update_idp_route_name_to_match_pattern";
import "./50_create_default_navigation_trees";
import "./51_catalog_variant_inventory";
import "./52_change_activetaxfield_to_primary";
import "./53_update_password_registry_route_name";

0 comments on commit ecc7f9c

Please sign in to comment.