apps/meteor/server/startup/migrations/minimumVersion.ts
import { addMigration } from '../../lib/migrations';
// this was the first migration added on version 4.0, so if this needs to run,
// it means the server was never updated to 4.x, which is not supported.
addMigration({
version: 233,
up() {
throw new Error(
[
'UPGRADE NOT SUPPORTED!',
'',
`It seems you're trying to upgrade from an unsupported version!`,
'',
'To be able to update to version 5.x.y you need to update to version 4.x first.',
'',
'Read more: https://go.rocket.chat/i/how-to-upgrade',
].join('\n'),
);
},
});