Skip to content

Commit

Permalink
fix(theming): Do not throw in background color migration
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Jan 28, 2025
1 parent 2c77303 commit 9cd4396
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/theming/lib/Migration/Version2006Date20240905111627.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ private function restoreUserColors(IOutput $output): void {
->set('configkey', $qb->createNamedParameter('primary_color'))
->where($qb->expr()->eq('appid', $qb->createNamedParameter(Application::APP_ID)))
->andWhere($qb->expr()->eq('configkey', $qb->createNamedParameter('background_color')));
$qb->executeStatement();
$output->info('Primary color of users restored');

try {
$qb->executeStatement();
$output->info('Primary color of users restored');
} catch (\Exception $exception) {
$output->warning('Cannot migrate background colors: Some users already configured the background color');
}
}
}

0 comments on commit 9cd4396

Please sign in to comment.