|
|
@@ -10,16 +10,12 @@ const logger = loggerFactory('growi:migrate:generate-service-instance-id');
|
|
|
|
|
|
module.exports = {
|
|
|
async up(db) {
|
|
|
- logger.info('Apply migration');
|
|
|
+ logger.info('Generate serviceInstanceId for the system');
|
|
|
await mongoose.connect(getMongoUri(), mongoOptions);
|
|
|
|
|
|
await configManager.loadConfigs();
|
|
|
|
|
|
- const isInstalled = configManager.getConfig('app:installed');
|
|
|
- if (isInstalled) {
|
|
|
- logger.info('Generate serviceInstanceId for the system that is already installed');
|
|
|
- await configManager.updateConfig('app:serviceInstanceId', uuidv4(), { skipPubsub: true });
|
|
|
- }
|
|
|
+ await configManager.updateConfig('app:serviceInstanceId', uuidv4(), { skipPubsub: true });
|
|
|
},
|
|
|
|
|
|
async down() {
|