mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-29 12:48:59 +03:00
feat: adapt migrate and sqlx-offline-data to include mariadb support
This commit is contained in:
parent
337a378b08
commit
96119fdc71
1 changed files with 1 additions and 7 deletions
8
Makefile
8
Makefile
|
@ -87,8 +87,7 @@ lint: ## Lint codebase
|
||||||
cd $(OPENAPI)&& yarn test
|
cd $(OPENAPI)&& yarn test
|
||||||
|
|
||||||
migrate: ## Run database migrations
|
migrate: ## Run database migrations
|
||||||
cd db/db-migrations/ && \
|
cd db/db-migrations/ && cargo run
|
||||||
DATABASE_URL=${POSTGRES_DATABASE_URL} cargo run
|
|
||||||
|
|
||||||
release: frontend ## Build app with release optimizations
|
release: frontend ## Build app with release optimizations
|
||||||
$(call cache_bust)
|
$(call cache_bust)
|
||||||
|
@ -100,11 +99,6 @@ run: frontend ## Run app in debug mode
|
||||||
|
|
||||||
|
|
||||||
sqlx-offline-data: ## prepare sqlx offline data
|
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 \
|
cd db/db-sqlx-postgres && cargo sqlx prepare \
|
||||||
--database-url=${POSTGRES_DATABASE_URL} -- \
|
--database-url=${POSTGRES_DATABASE_URL} -- \
|
||||||
--all-features
|
--all-features
|
||||||
|
|
Loading…
Add table
Reference in a new issue