Skip to content
Snippets Groups Projects
Unverified Commit ced16520 authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Add support to run a specific migration

parent b23eb6f1
No related branches found
No related tags found
No related merge requests found
if (RocketChat.Migrations.getVersion() !== 0) {
RocketChat.Migrations.migrateTo('latest');
RocketChat.Migrations.migrateTo(process.env.MIGRATION_VERSION || 'latest');
} else {
const control = RocketChat.Migrations._getControl();
control.version = _.last(RocketChat.Migrations._list).version;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment