Add UNIQUE constraint to blacklist table (#1216)
This commit is contained in:
parent
9684efebd7
commit
cfeb1b2f42
2 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,8 @@ import (
|
|||
const blacklistSchema = `
|
||||
CREATE TABLE IF NOT EXISTS federationsender_blacklist (
|
||||
-- The blacklisted server name
|
||||
server_name TEXT NOT NULL
|
||||
server_name TEXT NOT NULL,
|
||||
UNIQUE (server_name)
|
||||
);
|
||||
`
|
||||
|
||||
|
|
|
@ -25,7 +25,8 @@ import (
|
|||
const blacklistSchema = `
|
||||
CREATE TABLE IF NOT EXISTS federationsender_blacklist (
|
||||
-- The blacklisted server name
|
||||
server_name TEXT NOT NULL
|
||||
server_name TEXT NOT NULL,
|
||||
UNIQUE (server_name)
|
||||
);
|
||||
`
|
||||
|
||||
|
|
Loading…
Reference in a new issue