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

9 lines
409 B

import { upsertPermissions } from '../../../app/authorization/server/functions/upsertPermissions';
import { migrateDatabase, onFreshInstall } from '../../lib/migrations';
const { MIGRATION_VERSION = 'latest' } = process.env;
const [version, ...subcommands] = MIGRATION_VERSION.split(',');
migrateDatabase(version === 'latest' ? version : parseInt(version), subcommands);
onFreshInstall(upsertPermissions);