Code cleanup
Moved migrations/ into entity/ MessageIds now return errors except for API ones
This commit is contained in:
@ -5,6 +5,8 @@ pub mod account;
|
||||
pub mod master_pass;
|
||||
pub mod prelude;
|
||||
|
||||
pub use sqlx::Result;
|
||||
pub use sqlx::{mysql::MySqlPool as Pool, Result};
|
||||
|
||||
pub type Pool = sqlx::mysql::MySqlPool;
|
||||
pub async fn migrate(pool: &Pool) -> Result<(), sqlx::migrate::MigrateError> {
|
||||
sqlx::migrate!().run(pool).await
|
||||
}
|
||||
|
@ -1,2 +1 @@
|
||||
pub use crate::account::Account;
|
||||
pub use crate::master_pass::MasterPass;
|
||||
pub use crate::{account::Account, master_pass::MasterPass, Pool};
|
||||
|
Reference in New Issue
Block a user