|
|
@ -1,11 +1,11 @@ |
|
|
|
use crate::migrations::{Migrations, SimpleMigration}; |
|
|
|
use super::migration::{Migrations, SimpleMigration}; |
|
|
|
|
|
|
|
|
|
|
|
macro_rules! include_file_migration { |
|
|
|
macro_rules! include_file_migration { |
|
|
|
($mig_version:expr, $mig_name:literal) => { |
|
|
|
($mig_version:expr, $mig_name:literal) => { |
|
|
|
SimpleMigration::new_box( |
|
|
|
SimpleMigration::new_box( |
|
|
|
$mig_version, |
|
|
|
$mig_version, |
|
|
|
include_str!(concat!("migrations/", $mig_name, "-up.sql")), |
|
|
|
include_str!(concat!($mig_name, "-up.sql")), |
|
|
|
include_str!(concat!("migrations/", $mig_name, "-down.sql")), |
|
|
|
include_str!(concat!($mig_name, "-down.sql")), |
|
|
|
) |
|
|
|
) |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
@ -19,4 +19,4 @@ pub fn create_migrations() -> Migrations { |
|
|
|
migs.add(include_file_migration!(5, "0005-view_program_sequence")); |
|
|
|
migs.add(include_file_migration!(5, "0005-view_program_sequence")); |
|
|
|
// INSERT MIGRATION ABOVE -- DO NOT EDIT THIS COMMENT
|
|
|
|
// INSERT MIGRATION ABOVE -- DO NOT EDIT THIS COMMENT
|
|
|
|
migs |
|
|
|
migs |
|
|
|
} |
|
|
|
} |