feat: migrate legacy long-lived database records

This commit is contained in:
2026-07-27 01:12:00 +00:00
parent d8220a18b3
commit 89013272e1
39 changed files with 2495 additions and 124 deletions
+3 -1
View File
@@ -160,10 +160,11 @@ export const createYearbookHandler = (options: {
await connector.prisma.yearbookHistory.upsert({
where: {
profileName_year_month: {
profileName_year_month_sourceId: {
profileName: options.profileName,
year: context.previousYear,
month: context.previousMonth,
sourceId: 0,
},
},
update: {
@@ -173,6 +174,7 @@ export const createYearbookHandler = (options: {
},
create: {
profileName: options.profileName,
sourceId: 0,
year: context.previousYear,
month: context.previousMonth,
map,