diff --git a/src/db.rs b/src/db.rs index cd5adbd..72f3126 100644 --- a/src/db.rs +++ b/src/db.rs @@ -5,7 +5,7 @@ use tokio_postgres::{Client, Error, NoTls, Statement}; const CREATE_SCHEMA_COMMANDS: &[&str] = &[ "CREATE TABLE IF NOT EXISTS follows (id TEXT, inbox TEXT, actor TEXT, UNIQUE (inbox, actor))", - "CREATE INDEX ON follows (actor) INCLUDE (inbox)", + "CREATE INDEX IF NOT EXISTS follows_actor ON follows (actor) INCLUDE (inbox)", ]; #[derive(Clone)]