From af2cfffd605f310a299698ed7bdd34f2d7dcd72e Mon Sep 17 00:00:00 2001 From: ququzone Date: Thu, 9 Nov 2023 17:05:49 +0800 Subject: [PATCH] remove migration db --- Dockerfile | 2 -- src/main.rs | 5 ----- 2 files changed, 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3f28f32..7d53911 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,6 @@ FROM rust:${RUST_VERSION}-slim-bullseye AS build ARG APP_NAME WORKDIR /app -ENV DATABASE_URL=${DATABASE_URL} - RUN apt-get update \ && apt-get install pkg-config libssl-dev -y \ && apt-get clean diff --git a/src/main.rs b/src/main.rs index 0263b19..c5e17bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,11 +27,6 @@ async fn main() { signer: env::var("SIGNER").expect("SIGNER must be set"), }; - sqlx::migrate!() - .run(&context.db) - .await - .expect("migrate database error"); - tokio::spawn(async move { let smtp_password = env::var("SMTP_PASSWORD").expect("SMTP_PASSWORD must be set"); let smtp_user = env::var("SMTP_USER").expect("SMTP_USER must be set");