Alex Mikhalev
4 years ago
15 changed files with 14 additions and 10 deletions
@ -1,11 +1,11 @@
@@ -1,11 +1,11 @@
|
||||
use crate::migrations::{Migrations, SimpleMigration}; |
||||
use super::migration::{Migrations, SimpleMigration}; |
||||
|
||||
macro_rules! include_file_migration { |
||||
($mig_version:expr, $mig_name:literal) => { |
||||
SimpleMigration::new_box( |
||||
$mig_version, |
||||
include_str!(concat!("migrations/", $mig_name, "-up.sql")), |
||||
include_str!(concat!("migrations/", $mig_name, "-down.sql")), |
||||
include_str!(concat!($mig_name, "-up.sql")), |
||||
include_str!(concat!($mig_name, "-down.sql")), |
||||
) |
||||
}; |
||||
} |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
mod migration; |
||||
mod migrations; |
||||
|
||||
pub use migration::*; |
||||
pub use migrations::create_migrations; |
Loading…
Reference in new issue