Skip to content

Commit

Permalink
refactor: move mysql migrations into subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
mqus committed Nov 29, 2020
1 parent ea1f222 commit 06a0d16
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions src/db/mysql/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ use crate::error::{ApiError, ApiResult};
use crate::server::metrics::Metrics;
use crate::settings::{Quota, Settings};

embed_migrations!();

embed_migrations!("migrations/mysql");
/// Run the diesel embedded migrations
///
/// Mysql DDL statements implicitly commit which could disrupt MysqlPool's
Expand Down
2 changes: 1 addition & 1 deletion src/db/spanner/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use super::{
models::SpannerDb,
};

embed_migrations!();
//embed_migrations!("migrations/mysql");

/// Run the diesel embedded migrations
///
Expand Down

0 comments on commit 06a0d16

Please sign in to comment.