Skip to content

Commit 1147e1f

Browse files
committed
add stackedMsats to territory cut fix migration
1 parent e85f40e commit 1147e1f

File tree

1 file changed

+1
-1
lines changed
  • prisma/migrations/20250422152325_territory_cut_default

1 file changed

+1
-1
lines changed

prisma/migrations/20250422152325_territory_cut_default/migration.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ WITH "SubActRevenue" AS (
1313
SELECT "SubActRevenue"."subName", "SubActRevenue"."userId", "SubActRevenue"."msats", 'REVENUE'
1414
FROM "SubActRevenue"
1515
)
16-
UPDATE users SET msats = users.msats + "FounderRevenue"."msats"
16+
UPDATE users SET msats = users.msats + "FounderRevenue"."msats", "stackedMsats" = users."stackedMsats" + "FounderRevenue"."msats"
1717
FROM "FounderRevenue"
1818
WHERE "FounderRevenue"."userId" = "users"."id";
1919

0 commit comments

Comments
 (0)