You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your database ${color.datastore(sourceDatabase.name)} will be unavailable after starting the migration until the migration is complete.
130
+
Your database ${color.datastore(sourceDatabase?.name??color.dim('unknown'))} will be unavailable after starting the migration until the migration is complete.
130
131
If there are any issues during the migration, we end the migration and make the source database available again.
131
-
The database ${color.datastore(sourceDatabase.name)} can be offline for several hours during the migration.
132
+
The database ${color.datastore(sourceDatabase?.name??color.dim('unknown'))} can be offline for several hours during the migration.
132
133
You'll receive an email when the migration is complete.
133
134
You can't cancel the migration after starting it.
134
135
135
136
`))
136
137
}else{
137
138
ux.stdout(color.info(heredoc`
138
139
139
-
After cancelling, you'll have to manually remove the destination database (${color.datastore(targetDatabase.name)}), recreate the migration configuration
140
-
and wait for the migration tooling to be prepared again in order to migrate ${color.datastore(sourceDatabase.name)}.
141
-
Run ${color.code(`heroku data:pg:destroy ${targetDatabase.name} -a ${targetDatabase.app.name}`)} to remove the destination database if you don't need it anymore.
140
+
After cancelling, you'll have to create a new migration configuration and wait for the migration tooling to be prepared in order to
ux.action.start(`${migrationAction==='start' ? 'Starting' : 'Cancelling'} migration of ${color.datastore(sourceDatabase.name)} to ${color.datastore(targetDatabase.name)}`)
159
+
ux.action.start(`${migrationAction==='start' ? 'Starting' : 'Cancelling'} migration of ${color.datastore(sourceDatabase?.name??color.dim('unknown'))} to ${color.datastore(targetDatabase?.name??color.dim('unknown'))}`)
// Entry for the target database that is already a migration destination should be disabled
424
-
expect(targetDatabaseList).to.contain(`⛁ ${targetAdvancedDbAttachment.addon.name} as ADVANCED_DB (already a migration destination)`)
424
+
expect(targetDatabaseList).to.contain(`⛁ ${targetAdvancedDbAttachment.addon.name} as ADVANCED_DB (already a destination database for an active migration)`)
425
425
// Entry for the non-target Advanced database should be enabled
426
426
expect(targetDatabaseList).to.contain(`⛁ ${nonTargetAdvancedDbAttachment.addon.name} as OTHER_ADVANCED_DB`)
427
-
expect(targetDatabaseList).not.to.contain(`⛁ ${nonTargetAdvancedDbAttachment.addon.name} as OTHER_ADVANCED_DB (already a migration destination)`)
427
+
expect(targetDatabaseList).not.to.contain(`⛁ ${nonTargetAdvancedDbAttachment.addon.name} as OTHER_ADVANCED_DB (already a destination database for an active migration)`)
428
428
// Entry for the unavailable database should be disabled
429
-
expect(targetDatabaseList).to.contain(`⛁ ${unavailableAdvancedDbAttachment.addon.name} as UNAVAILABLE_DB (database isn't available yet)`)
429
+
expect(targetDatabaseList).to.contain(`⛁ ${unavailableAdvancedDbAttachment.addon.name} as UNAVAILABLE_DB (database isn't available)`)
430
430
// There should be no entries for non-Advanced or foreign databases
0 commit comments