Skip to content

Commit

Permalink
Tweak wording of the DB alteration messages
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkleiner committed Apr 29, 2021
1 parent f2e6cce commit b41057d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dev/AT4xMigrationTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ public function run($request)
// Skip migration when BaseObject or BaseTerm have any data in them
if ($baseObjectsCount || $baseTermsCount) {
DB::get_schema()->alterationMessage("BaseObject or BaseTerm table already contains data, skipping the migration.", 'notice');
DB::get_schema()->alterationMessage('If you want disable the migration completely and hide this message, set AT4xMigrationTask::enable_v4_migration to false.', 'notice');
DB::get_schema()->alterationMessage('If you want to disable the migration completely and hide this message, set AT4xMigrationTask::enable_v4_migration to false.', 'notice');

return;
}

// Skip migration if there's no data at all
if (($baseObjectsCount == $baseTermsCount) && ($baseObjectsCount == $termsCount) && ($baseObjectsCount == 0)) {
DB::get_schema()->alterationMessage("There's no data to migrate, skipping the migration.", 'notice');
DB::get_schema()->alterationMessage('If you want disable the migration completely and hide this message, set AT4xMigrationTask::enable_v4_migration to false.', 'notice');
DB::get_schema()->alterationMessage('If you want to disable the migration completely, e.g. for fresh installs, set AT4xMigrationTask::enable_v4_migration to false.', 'notice');

return;
}
Expand Down

0 comments on commit b41057d

Please sign in to comment.