diff options
author | Badlop <badlop@process-one.net> | 2016-03-29 13:37:49 +0300 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2016-03-29 13:37:49 +0300 |
commit | e386bf6b58876436e8048ab327da883cc3dfb108 (patch) | |
tree | be09e32706aa453f63c17086ab5c234fbad01c2c /sql/pg.sql | |
parent | 221d8e0e5d2ccb112e7ade757763c0f1cd8926ec (diff) |
In SQL files create Users table with SCRAM support by default (#956)
Diffstat (limited to 'sql/pg.sql')
-rw-r--r-- | sql/pg.sql | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/pg.sql b/sql/pg.sql index 87cccd484..1bc4f397c 100644 --- a/sql/pg.sql +++ b/sql/pg.sql @@ -19,10 +19,13 @@ CREATE TABLE users ( username text PRIMARY KEY, "password" text NOT NULL, + serverkey text NOT NULL DEFAULT '', + salt text NOT NULL DEFAULT '', + iterationcount integer NOT NULL DEFAULT 0, created_at TIMESTAMP NOT NULL DEFAULT now() ); --- To support SCRAM auth: +-- Add support for SCRAM auth to a database created before ejabberd 16.03: -- ALTER TABLE users ADD COLUMN serverkey text NOT NULL DEFAULT ''; -- ALTER TABLE users ADD COLUMN salt text NOT NULL DEFAULT ''; -- ALTER TABLE users ADD COLUMN iterationcount integer NOT NULL DEFAULT 0; |