Revert "Revert "Added player username regex check constraint""

This reverts commit 3447ac8026.
This commit is contained in:
Alec LaLonde
2021-03-09 11:25:24 -07:00
parent 3547afa8a2
commit 5eb8850849
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-]$');