topic_reply & hr_reached notification configurable

This commit is contained in:
xiaomlove
2022-11-25 21:04:27 +08:00
parent af67dd868b
commit e9d1f080c0
9 changed files with 130 additions and 61 deletions

View File

@@ -282,6 +282,14 @@ class Update extends Install
}
$this->removeMenu(['catmanage.php']);
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";
NexusDB::statement($sql);
}
}
}
public function runExtraMigrate()