mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-11-26 03:15:58 +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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue