Skip to content

Commit

Permalink
Enable Emergency Alerts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nadzpogi committed Jan 22, 2025
1 parent 979f6f4 commit fd58678
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public function change(): void
{
// Insert or update core-emergency-alert into the module table
$this->execute('
INSERT INTO `module` (`moduleId`, `enabled`, `previewEnabled`, `defaultDuration`, `settings`) VALUES
(\'core-emergency-alert\', \'1\', \'1\', \'60\', NULL)
INSERT INTO `module` (`moduleId`, `enabled`, `previewEnabled`, `defaultDuration`, `settings`)
VALUES (\'core-emergency-alert\', \'1\', \'1\', \'60\', NULL) AS newRow
ON DUPLICATE KEY UPDATE
`enabled` = VALUES(`enabled`),
`previewEnabled` = VALUES(`previewEnabled`),
`defaultDuration` = VALUES(`defaultDuration`),
`settings` = VALUES(`settings`);
`enabled` = newRow.enabled,
`previewEnabled` = newRow.previewEnabled,
`defaultDuration` = newRow.defaultDuration,
`settings` = newRow.settings;
');
}
}

0 comments on commit fd58678

Please sign in to comment.