Added player username regex check constraint

This commit is contained in:
Alec LaLonde
2021-03-02 11:48:32 -07:00
parent e1c5322421
commit c21562203b
2 changed files with 2 additions and 0 deletions

View File

@@ -0,0 +1 @@
alter table "public"."player" drop constraint "username_is_valid";

View File

@@ -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-]$');