aboutsummaryrefslogtreecommitdiffstats
path: root/rust/migrations
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-07 17:06:45 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-07 17:06:45 -0800
commit3654fcfca716c7994bd166436cfb57b6b65d7c85 (patch)
tree7d4613f20b3f7347dae324fd7045e9209802b1da /rust/migrations
parent39aba8b86cd4cec01e26eb08f74b5da22f4fe9af (diff)
downloadfatcat-3654fcfca716c7994bd166436cfb57b6b65d7c85.tar.gz
fatcat-3654fcfca716c7994bd166436cfb57b6b65d7c85.zip
only superusers get auto-magic-privs
Diffstat (limited to 'rust/migrations')
-rw-r--r--rust/migrations/2018-05-12-001226_init/up.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql
index b5b39f6f..cf7e3fe2 100644
--- a/rust/migrations/2018-05-12-001226_init/up.sql
+++ b/rust/migrations/2018-05-12-001226_init/up.sql
@@ -16,7 +16,7 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE editor (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
- username TEXT NOT NULL CHECK (username ~* '^[A-Za-z0-9][A-Za-z0-9._-]{2,15}$'), -- UNIQ below
+ username TEXT NOT NULL CHECK (username ~* '^[A-Za-z0-9][A-Za-z0-9._-]{2,19}$'), -- UNIQ below
is_superuser BOOLEAN NOT NULL DEFAULT false,
is_admin BOOLEAN NOT NULL DEFAULT false,
is_bot BOOLEAN NOT NULL DEFAULT false,