step 10.11: done

This commit is contained in:
bepis
2026-10-23 02:33:16 +11:00
parent e124266c76
commit 08d880ab73
9 changed files with 451 additions and 20 deletions
+7
View File
@@ -0,0 +1,7 @@
-- Migration 007: Natural HP regeneration
-- Adds hp_updated_at column for lazy HP regen computation.
ALTER TABLE characters ADD COLUMN hp_updated_at INTEGER NOT NULL DEFAULT 0;
-- Backfill existing rows: use energy_updated_at as the initial HP timestamp
UPDATE characters SET hp_updated_at = energy_updated_at WHERE hp_updated_at = 0;