fix update notifs

This commit is contained in:
xiaomlove
2022-11-26 14:09:37 +08:00
parent 65819d6c5d
commit 0636afc363

View File

@@ -285,7 +285,7 @@ class Update extends Install
if (!NexusDB::hasColumn('users', 'seed_points_updated_at')) {
$this->runMigrate('database/migrations/2022_11_23_042152_add_seed_points_seed_times_update_time_to_users_table.php');
foreach (User::$notificationOptions as $option) {
$sql = "update users set notifs = concat(nofifs, '[$option]') where instr(nofifs, '[$option]') = 0";
$sql = "update users set notifs = concat(notifs, '[$option]') where instr(notifs, '[$option]') = 0";
NexusDB::statement($sql);
}
}