Files
helios-server-rs/migration/src/lib.rs

25 lines
1005 B
Rust
Raw Normal View History

2025-06-08 20:42:24 +08:00
pub use sea_orm_migration::prelude::*;
mod m20250525_000001_create_ledger_table_category;
mod m20250525_000002_create_ledger_table_book;
mod m20250525_000003_create_ledger_table_tag;
mod m20250525_000004_create_ledger_table_account;
mod m20250525_000005_create_ledger_table_transaction;
2025-09-21 22:56:46 +08:00
mod m20250921_000001_create_ledger_table_transaction_tag_rel;
2025-06-08 20:42:24 +08:00
pub struct Migrator;
#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m20250525_000001_create_ledger_table_category::Migration),
Box::new(m20250525_000002_create_ledger_table_book::Migration),
Box::new(m20250525_000003_create_ledger_table_tag::Migration),
Box::new(m20250525_000004_create_ledger_table_account::Migration),
Box::new(m20250525_000005_create_ledger_table_transaction::Migration),
2025-09-21 22:56:46 +08:00
Box::new(m20250921_000001_create_ledger_table_transaction_tag_rel::Migration),
2025-06-08 20:42:24 +08:00
]
}
}