step 10.11: done
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user