The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Rocket.Chat/server/startup/migrations/xrun.js

11 lines
328 B

import _ from 'underscore';
import { Migrations } from '../../../app/migrations';
if (Migrations.getVersion() !== 0) {
Migrations.migrateTo(process.env.MIGRATION_VERSION || 'latest');
} else {
const control = Migrations._getControl();
control.version = _.last(Migrations._list).version;
Migrations._setControl(control);
}