Skip to content

Commit

Permalink
refactor(filemanager): remove aws directory from migrations as its no…
Browse files Browse the repository at this point in the history
…t that useful a distinction for now
  • Loading branch information
mmalenic committed Jan 1, 2024
1 parent 205adb1 commit 8647464
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/workload/stateful/filemanager/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// generated by `sqlx migrate build-script`
fn main() {
// trigger recompilation when a new migration is added
println!("cargo:rerun-if-changed=migrations");
}
println!("cargo:rerun-if-changed=database/migrations");
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@ impl Migration {

/// Get the underlying sqlx migrator for the migrations.
pub fn migrator() -> Migrator {
let mut migrator = migrate!("../database/migrations");
let aws_migrations = migrate!("../database/migrations/aws");

migrator
.migrations
.to_mut()
.extend(aws_migrations.migrations.into_owned());

migrator
migrate!("../database/migrations")
}

/// Get a reference to the database client.
Expand Down

0 comments on commit 8647464

Please sign in to comment.