mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-23 05:08:01 -05:00
Added player username regex check constraint
This commit is contained in:
@@ -0,0 +1 @@
|
||||
alter table "public"."player" drop constraint "username_is_valid";
|
||||
@@ -0,0 +1 @@
|
||||
alter table "public"."player" add constraint "username_is_valid" check (username ~* '^[a-z0-9-](_(?!(\.|_))|\.(?!(_|\.))|[a-z0-9-]){0,40}[a-z0-9-]$');
|
||||
Reference in New Issue
Block a user