mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00:00
Add UNIQUE constraint to blacklist table (#1216)
This commit is contained in:
parent
9684efebd7
commit
cfeb1b2f42
@ -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 New Issue
Block a user