플레이 감사 국가 생멸과 장기 tick 저장을 보완하고 중간 전달 준비

This commit is contained in:
2026-09-16 07:26:05 +00:00
parent ae0dfd503f
commit 52cea882ab
24 changed files with 428 additions and 46 deletions
+2 -2
View File
@@ -1090,7 +1090,7 @@ model PlayAuditMonth {
year Int
month Int
kind String
tick Int?
tick BigInt?
schemaVersion Int @default(1) @map("schema_version")
settlementsComplete Boolean @map("settlements_complete")
hash String
@@ -1152,7 +1152,7 @@ model PlayAuditPolicy {
source String
year Int
month Int
tick Int?
tick BigInt?
requestId String? @map("request_id")
inputSequence BigInt? @map("input_sequence")
ordinal Int
@@ -0,0 +1,4 @@
-- 1개월은 36,000,000 tick이다. 기존 INTEGER는 약60개월에 넘치므로
-- 현재 world/input_event와 같은 BIGINT로 넓힌다. 기존 값과 hash는 유지한다.
ALTER TABLE "play_audit_month" ALTER COLUMN "tick" TYPE BIGINT USING "tick"::BIGINT;
ALTER TABLE "play_audit_policy" ALTER COLUMN "tick" TYPE BIGINT USING "tick"::BIGINT;