mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
fix update notifs
This commit is contained in:
@@ -285,7 +285,7 @@ class Update extends Install
|
|||||||
if (!NexusDB::hasColumn('users', 'seed_points_updated_at')) {
|
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');
|
$this->runMigrate('database/migrations/2022_11_23_042152_add_seed_points_seed_times_update_time_to_users_table.php');
|
||||||
foreach (User::$notificationOptions as $option) {
|
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);
|
NexusDB::statement($sql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user