mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-22 04:00:59 +00:00
db: CREATE INDEX IF NOT EXISTS
This commit is contained in:
parent
6693a7a10e
commit
74017d3176
2 changed files with 1 additions and 2 deletions
|
@ -35,7 +35,6 @@ impl Actor {
|
|||
actor_type: "Service".to_string(),
|
||||
id: self.uri(),
|
||||
inbox: self.uri(),
|
||||
// outbox: "https://relay.fedi.buzz/outbox".to_string(),
|
||||
public_key: activitypub::ActorPublicKey {
|
||||
id: self.key_id(),
|
||||
owner: Some(self.uri()),
|
||||
|
|
|
@ -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 ON follows (actor) INCLUDE (inbox)",
|
||||
];
|
||||
|
||||
#[derive(Clone)]
|
||||
|
|
Loading…
Reference in a new issue