forked from Eeveid/lightOps
实现 LightOps 运维面板基础功能
This commit is contained in:
7
crates/lightops-server/src/db.rs
Normal file
7
crates/lightops-server/src/db.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use anyhow::Result;
|
||||
use sqlx::SqlitePool;
|
||||
|
||||
pub async fn migrate(pool: &SqlitePool) -> Result<()> {
|
||||
sqlx::migrate!("../../migrations").run(pool).await?;
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user