add token schema and validation

This commit is contained in:
Oliver Gorwits
2018-10-21 17:31:52 +01:00
parent fb4e5c0793
commit f01bc6a695
8 changed files with 80 additions and 7 deletions

View File

@@ -400,6 +400,7 @@ worker_plugins:
- 'Power'
- 'Psql'
- 'Renumber'
- 'SetUserToken'
- 'Show'
- 'Stats'
- 'Vlan'

View File

@@ -0,0 +1,7 @@
BEGIN;
ALTER TABLE users ADD COLUMN "token" text;
ALTER TABLE users ADD COLUMN "token_from" integer;
COMMIT;