db: undo CREATE INDEX IF NOT EXISTS

This commit is contained in:
Astro 2022-12-20 01:13:41 +01:00
parent 95177a63d3
commit 9e59e55f4e
1 changed files with 1 additions and 1 deletions

View File

@ -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 IF NOT EXISTS ON follows (actor) INCLUDE (inbox)",
"CREATE INDEX ON follows (actor) INCLUDE (inbox)",
];
#[derive(Clone)]