force uppercase usernames

This commit is contained in:
Face 2025-05-31 17:39:30 +03:00
parent ccd4126953
commit 82d8e34560
6 changed files with 1595 additions and 5 deletions

View file

@ -0,0 +1,16 @@
ALTER TABLE "transaction" DROP CONSTRAINT "transaction_recipient_user_id_user_id_fk";
--> statement-breakpoint
ALTER TABLE "transaction" DROP CONSTRAINT "transaction_sender_user_id_user_id_fk";
--> statement-breakpoint
ALTER TABLE "coin" ALTER COLUMN "change_24h" SET DATA TYPE numeric(30, 4);--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "transaction" ADD CONSTRAINT "transaction_recipient_user_id_user_id_fk" FOREIGN KEY ("recipient_user_id") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "transaction" ADD CONSTRAINT "transaction_sender_user_id_user_id_fk" FOREIGN KEY ("sender_user_id") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;

File diff suppressed because it is too large Load diff

View file

@ -15,6 +15,13 @@
"when": 1748690470287,
"tag": "0001_yummy_meggan",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1748700252762,
"tag": "0002_lush_guardian",
"breakpoints": true
}
]
}