1
0
Fork 0
mirror of https://mzte.de/git/LordMZTE/brevo synced 2024-12-05 03:12:31 +01:00

try to fix sql

This commit is contained in:
LordMZTE 2021-06-24 17:05:27 +02:00
parent 391f6adfb3
commit be876b9ab9

View file

@ -171,7 +171,10 @@ async fn make_table(brevo: Arc<Brevo>) -> Result<(), Rejection> {
"
CREATE TABLE IF NOT EXISTS urls (
id VARCHAR({}) PRIMARY KEY,
url TEXT NOT NULL UNIQUE
url TEXT NOT NULL,
UNIQUE (
url(512)
)
)
",
brevo.config.link_len