fix: 통일 왕조 관직 사진 경로 폭을 복구

레거시 emperior 스키마와 동일하게 l12pic부터 l5pic까지 64자를 허용한다. 32자를 넘는 사용자 아이콘 경로를 포함한 통일 원자 트랜잭션 회귀 테스트와 릴리스 마이그레이션 head를 갱신한다.
This commit is contained in:
2026-08-20 05:57:06 +00:00
parent f6c9643881
commit 107b433d85
4 changed files with 18 additions and 4 deletions
@@ -19,6 +19,7 @@ const fixtureId = 8_901;
const serverId = 'che_unification_atomicity_fixture';
const profileName = 'che';
const userId = 'unification-atomicity-user';
const legacyOfficerPicture = 'users/core/a369f064a434262b025bd2ebc70c60d5.jpg?=20260814';
integration('unification finalization transaction', () => {
let db: GamePrismaClient;
@@ -118,7 +119,7 @@ integration('unification finalization transaction', () => {
dedication: 5,
age: 40,
crew: 400,
picture: '1.png',
picture: legacyOfficerPicture,
turnTime: new Date('0190-07-01T00:00:00.000Z'),
meta: {
ownerName: '원자 사용자',
@@ -354,7 +355,10 @@ integration('unification finalization transaction', () => {
aux: { maxPower: 3_500, maxCrew: 400, maxCities: ['원자도시'] },
generals: [fixtureId],
});
expect(await db.emperor.count({ where: { serverId } })).toBe(1);
expect(legacyOfficerPicture.length).toBeGreaterThan(32);
expect(await db.emperor.findFirstOrThrow({ where: { serverId } })).toMatchObject({
l12pic: legacyOfficerPicture,
});
expect(
(await db.inheritancePoint.findUniqueOrThrow({ where: { userId_key: { userId, key: 'previous' } } }))
.value