fix: 통일 완료 뒤 턴 실행을 중단

Ref처럼 isunited 2/3에서 예약 스케줄을 멈추고 processor 직접 호출도 no-op 처리한다. 이미 기본값으로 내려간 종료 게임의 refreshLimit만 식별해 복구하는 마이그레이션과 회귀 테스트를 추가한다.
This commit is contained in:
2026-08-20 06:13:28 +00:00
parent 107b433d85
commit 92ad49db45
9 changed files with 83 additions and 2 deletions
@@ -0,0 +1,14 @@
-- isunited 2/3에서 Ref 턴 실행은 중단되고, 통일 시 늘린 refreshLimit가 유지된다.
-- 기존 core daemon pass가 기본값으로 되돌린 행만 식별해 100배 값을 복구한다.
UPDATE "world_state"
SET "meta" = jsonb_set(
"meta",
'{refreshLimit}',
to_jsonb((("meta" ->> 'refreshLimit')::integer * 100)),
true
)
WHERE COALESCE("meta" ->> 'isunited', "meta" ->> 'isUnited', '0') ~ '^[0-9]+$'
AND COALESCE("meta" ->> 'isunited', "meta" ->> 'isUnited', '0')::integer >= 2
AND COALESCE("meta" ->> 'refreshLimit', '') ~ '^[0-9]+$'
AND ("meta" ->> 'refreshLimit')::integer =
ROUND(POWER("tick_seconds"::numeric / 60, 0.6) * 3)::integer * 10;