mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-28 16:08:27 +00:00
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 = `
|
const blacklistSchema = `
|
||||||
CREATE TABLE IF NOT EXISTS federationsender_blacklist (
|
CREATE TABLE IF NOT EXISTS federationsender_blacklist (
|
||||||
-- The blacklisted server name
|
-- The blacklisted server name
|
||||||
server_name TEXT NOT NULL
|
server_name TEXT NOT NULL,
|
||||||
|
UNIQUE (server_name)
|
||||||
);
|
);
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,8 @@ import (
|
||||||
const blacklistSchema = `
|
const blacklistSchema = `
|
||||||
CREATE TABLE IF NOT EXISTS federationsender_blacklist (
|
CREATE TABLE IF NOT EXISTS federationsender_blacklist (
|
||||||
-- The blacklisted server name
|
-- The blacklisted server name
|
||||||
server_name TEXT NOT NULL
|
server_name TEXT NOT NULL,
|
||||||
|
UNIQUE (server_name)
|
||||||
);
|
);
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue