core: keep Go referral credit scoped to workspace

This commit is contained in:
vimtor
2026-05-16 13:22:29 +02:00
parent 95ba577528
commit 46cda242a3
2 changed files with 3078 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
DROP INDEX `referral_workspace_id` ON `referral`;--> statement-breakpoint
ALTER TABLE `referral` DROP PRIMARY KEY;--> statement-breakpoint
ALTER TABLE `referral` ADD PRIMARY KEY (`workspace_id`,`id`);