mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-25 13:30:58 +00:00
db: correct CREATE INDEX IF NOT EXISTS
This commit is contained in:
parent
9e59e55f4e
commit
402d7fc9a7
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ use tokio_postgres::{Client, Error, NoTls, Statement};
|
||||||
|
|
||||||
const CREATE_SCHEMA_COMMANDS: &[&str] = &[
|
const CREATE_SCHEMA_COMMANDS: &[&str] = &[
|
||||||
"CREATE TABLE IF NOT EXISTS follows (id TEXT, inbox TEXT, actor TEXT, UNIQUE (inbox, actor))",
|
"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)]
|
#[derive(Clone)]
|
||||||
|
|
Loading…
Reference in a new issue