mirror of
https://github.com/processone/ejabberd
synced 2025-10-06 03:50:15 +02:00
Switch to varchar(64) in mysql user.server/salt as text can't have default values
This commit is contained in:
parent
c5dbdfc71a
commit
b4739396ec
1 changed files with 4 additions and 4 deletions
|
@ -19,15 +19,15 @@
|
||||||
CREATE TABLE users (
|
CREATE TABLE users (
|
||||||
username varchar(191) PRIMARY KEY,
|
username varchar(191) PRIMARY KEY,
|
||||||
password text NOT NULL,
|
password text NOT NULL,
|
||||||
serverkey text NOT NULL DEFAULT '',
|
serverkey varchar(64) NOT NULL DEFAULT '',
|
||||||
salt text NOT NULL DEFAULT '',
|
salt varchar(64) NOT NULL DEFAULT '',
|
||||||
iterationcount integer NOT NULL DEFAULT 0,
|
iterationcount integer NOT NULL DEFAULT 0,
|
||||||
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
) ENGINE=InnoDB CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||||
|
|
||||||
-- Add support for SCRAM auth to a database created before ejabberd 16.03:
|
-- 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 serverkey varchar(64) NOT NULL DEFAULT '';
|
||||||
-- ALTER TABLE users ADD COLUMN salt text NOT NULL DEFAULT '';
|
-- ALTER TABLE users ADD COLUMN salt varchar(64) NOT NULL DEFAULT '';
|
||||||
-- ALTER TABLE users ADD COLUMN iterationcount integer NOT NULL DEFAULT 0;
|
-- ALTER TABLE users ADD COLUMN iterationcount integer NOT NULL DEFAULT 0;
|
||||||
|
|
||||||
CREATE TABLE last (
|
CREATE TABLE last (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue