feat: adapt migrate and sqlx-offline-data to include mariadb support

This commit is contained in:
realaravinth 2022-07-23 15:50:47 +05:30
parent 337a378b08
commit 96119fdc71
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

@ -87,8 +87,7 @@ lint: ## Lint codebase
cd $(OPENAPI)&& yarn test
migrate: ## Run database migrations
cd db/db-migrations/ && \
DATABASE_URL=${POSTGRES_DATABASE_URL} cargo run
cd db/db-migrations/ && cargo run
release: frontend ## Build app with release optimizations
$(call cache_bust)
@ -100,11 +99,6 @@ run: frontend ## Run app in debug mode
sqlx-offline-data: ## prepare sqlx offline data
cargo sqlx prepare --database-url=${POSTGRES_DATABASE_URL} -- --bin mcaptcha \
--all-features
cd db/db-migrations && cargo sqlx prepare \
--database-url=${POSTGRES_DATABASE_URL} -- --bin db-migrations \
--all-features
cd db/db-sqlx-postgres && cargo sqlx prepare \
--database-url=${POSTGRES_DATABASE_URL} -- \
--all-features