Compare commits
No commits in common. "64ab2c3bb97f049c2036cf1f86c81c9121666a35" and "29d783ffd59b2d904d5d97a063bd07077eeb3ba7" have entirely different histories.
64ab2c3bb9
...
29d783ffd5
3 changed files with 1 additions and 32 deletions
|
@ -14,7 +14,6 @@ mod m20240623_000001_add_dislikes_table;
|
||||||
mod m20240626_000001_add_notifications_table;
|
mod m20240626_000001_add_notifications_table;
|
||||||
mod m20240628_000001_add_followers_following_indexes;
|
mod m20240628_000001_add_followers_following_indexes;
|
||||||
mod m20240628_000002_add_credentials_activated;
|
mod m20240628_000002_add_credentials_activated;
|
||||||
mod m20240703_000001_add_audience_index;
|
|
||||||
|
|
||||||
pub struct Migrator;
|
pub struct Migrator;
|
||||||
|
|
||||||
|
@ -36,7 +35,6 @@ impl MigratorTrait for Migrator {
|
||||||
Box::new(m20240626_000001_add_notifications_table::Migration),
|
Box::new(m20240626_000001_add_notifications_table::Migration),
|
||||||
Box::new(m20240628_000001_add_followers_following_indexes::Migration),
|
Box::new(m20240628_000001_add_followers_following_indexes::Migration),
|
||||||
Box::new(m20240628_000002_add_credentials_activated::Migration),
|
Box::new(m20240628_000002_add_credentials_activated::Migration),
|
||||||
Box::new(m20240703_000001_add_audience_index::Migration),
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
use sea_orm_migration::prelude::*;
|
|
||||||
|
|
||||||
use crate::m20240524_000001_create_actor_activity_object_tables::Objects;
|
|
||||||
|
|
||||||
#[derive(DeriveMigrationName)]
|
|
||||||
pub struct Migration;
|
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
|
||||||
impl MigrationTrait for Migration {
|
|
||||||
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
|
|
||||||
manager
|
|
||||||
.create_index(
|
|
||||||
Index::create()
|
|
||||||
.name("index-objects-audience")
|
|
||||||
.table(Objects::Table)
|
|
||||||
.col(Objects::Audience)
|
|
||||||
.to_owned()
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
|
|
||||||
manager
|
|
||||||
.drop_index(Index::drop().name("index-objects-audience").table(Objects::Table).to_owned())
|
|
||||||
.await?;
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -113,7 +113,7 @@ pub fn App() -> impl IntoView {
|
||||||
if auth.present() {
|
if auth.present() {
|
||||||
view! { <Redirect path="home" /> }
|
view! { <Redirect path="home" /> }
|
||||||
} else {
|
} else {
|
||||||
view! { <Redirect path="global" /> }
|
view! { <Redirect path="server" /> }
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<Route path="home" view=move || view! { <Feed tl=feeds.home /> } />
|
<Route path="home" view=move || view! { <Feed tl=feeds.home /> } />
|
||||||
|
|
Loading…
Reference in a new issue