chore: reorganize project into monorepo
This commit is contained in:
36
backend/migration/src/lib.rs
Normal file
36
backend/migration/src/lib.rs
Normal file
@@ -0,0 +1,36 @@
|
||||
#![allow(elided_lifetimes_in_paths)]
|
||||
#![allow(clippy::wildcard_imports)]
|
||||
pub use sea_orm_migration::prelude::*;
|
||||
mod m20220101_000001_users;
|
||||
|
||||
mod m20260327_060643_posts;
|
||||
mod m20260327_061007_comments;
|
||||
mod m20260327_061008_tags;
|
||||
mod m20260327_061234_friend_links;
|
||||
mod m20260327_061300_reviews;
|
||||
mod m20260328_000001_add_post_slug_to_comments;
|
||||
mod m20260328_000002_create_site_settings;
|
||||
mod m20260328_000003_add_site_url_to_site_settings;
|
||||
mod m20260328_000004_add_posts_search_index;
|
||||
mod m20260328_000005_categories;
|
||||
pub struct Migrator;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigratorTrait for Migrator {
|
||||
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
|
||||
vec![
|
||||
Box::new(m20220101_000001_users::Migration),
|
||||
Box::new(m20260327_060643_posts::Migration),
|
||||
Box::new(m20260327_061007_comments::Migration),
|
||||
Box::new(m20260327_061008_tags::Migration),
|
||||
Box::new(m20260327_061234_friend_links::Migration),
|
||||
Box::new(m20260327_061300_reviews::Migration),
|
||||
Box::new(m20260328_000001_add_post_slug_to_comments::Migration),
|
||||
Box::new(m20260328_000002_create_site_settings::Migration),
|
||||
Box::new(m20260328_000003_add_site_url_to_site_settings::Migration),
|
||||
Box::new(m20260328_000004_add_posts_search_index::Migration),
|
||||
Box::new(m20260328_000005_categories::Migration),
|
||||
// inject-above (do not remove this comment)
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user