-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration for registry item name change
Signed-off-by: Seun Martins <[email protected]>
- Loading branch information
1 parent
29c368a
commit ecc7f9c
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
imports/plugins/core/versions/server/migrations/53_update_password_registry_route_name.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters