diff --git a/migrations/2018-08-28-010336_init/down.sql b/migrations/mysql/2018-08-28-010336_init/down.sql similarity index 100% rename from migrations/2018-08-28-010336_init/down.sql rename to migrations/mysql/2018-08-28-010336_init/down.sql diff --git a/migrations/2018-08-28-010336_init/up.sql b/migrations/mysql/2018-08-28-010336_init/up.sql similarity index 100% rename from migrations/2018-08-28-010336_init/up.sql rename to migrations/mysql/2018-08-28-010336_init/up.sql diff --git a/migrations/2019-09-11-164500/down.sql b/migrations/mysql/2019-09-11-164500/down.sql similarity index 100% rename from migrations/2019-09-11-164500/down.sql rename to migrations/mysql/2019-09-11-164500/down.sql diff --git a/migrations/2019-09-11-164500/up.sql b/migrations/mysql/2019-09-11-164500/up.sql similarity index 100% rename from migrations/2019-09-11-164500/up.sql rename to migrations/mysql/2019-09-11-164500/up.sql diff --git a/migrations/2019-09-25-174347_min_collection_id/down.sql b/migrations/mysql/2019-09-25-174347_min_collection_id/down.sql similarity index 100% rename from migrations/2019-09-25-174347_min_collection_id/down.sql rename to migrations/mysql/2019-09-25-174347_min_collection_id/down.sql diff --git a/migrations/2019-09-25-174347_min_collection_id/up.sql b/migrations/mysql/2019-09-25-174347_min_collection_id/up.sql similarity index 100% rename from migrations/2019-09-25-174347_min_collection_id/up.sql rename to migrations/mysql/2019-09-25-174347_min_collection_id/up.sql diff --git a/migrations/2020-04-03-102015_change_userid/down.sql b/migrations/mysql/2020-04-03-102015_change_userid/down.sql similarity index 100% rename from migrations/2020-04-03-102015_change_userid/down.sql rename to migrations/mysql/2020-04-03-102015_change_userid/down.sql diff --git a/migrations/2020-04-03-102015_change_userid/up.sql b/migrations/mysql/2020-04-03-102015_change_userid/up.sql similarity index 100% rename from migrations/2020-04-03-102015_change_userid/up.sql rename to migrations/mysql/2020-04-03-102015_change_userid/up.sql diff --git a/migrations/2020-06-12-231034_new_batch/down.sql b/migrations/mysql/2020-06-12-231034_new_batch/down.sql similarity index 100% rename from migrations/2020-06-12-231034_new_batch/down.sql rename to migrations/mysql/2020-06-12-231034_new_batch/down.sql diff --git a/migrations/2020-06-12-231034_new_batch/up.sql b/migrations/mysql/2020-06-12-231034_new_batch/up.sql similarity index 100% rename from migrations/2020-06-12-231034_new_batch/up.sql rename to migrations/mysql/2020-06-12-231034_new_batch/up.sql diff --git a/migrations/2020-08-24-091401_add_quota/down.sql b/migrations/mysql/2020-08-24-091401_add_quota/down.sql similarity index 100% rename from migrations/2020-08-24-091401_add_quota/down.sql rename to migrations/mysql/2020-08-24-091401_add_quota/down.sql diff --git a/migrations/2020-08-24-091401_add_quota/up.sql b/migrations/mysql/2020-08-24-091401_add_quota/up.sql similarity index 100% rename from migrations/2020-08-24-091401_add_quota/up.sql rename to migrations/mysql/2020-08-24-091401_add_quota/up.sql diff --git a/src/db/mysql/pool.rs b/src/db/mysql/pool.rs index 3738c25a43..4a6e50d5ea 100644 --- a/src/db/mysql/pool.rs +++ b/src/db/mysql/pool.rs @@ -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 diff --git a/src/db/spanner/pool.rs b/src/db/spanner/pool.rs index a69e020593..37928e03b1 100644 --- a/src/db/spanner/pool.rs +++ b/src/db/spanner/pool.rs @@ -18,7 +18,7 @@ use super::{ models::SpannerDb, }; -embed_migrations!(); +//embed_migrations!("migrations/mysql"); /// Run the diesel embedded migrations ///