Skip to content

Commit

Permalink
Update Makefile migration commands to use sqlite3 instead of sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtyped committed Apr 8, 2024
1 parent d3e8427 commit 49b5bbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ create-migration:
.PHONY: create-migration

migrate-up:
migrate -path=cmd/migrations/ -database sqlite://${DB} up
migrate -path=cmd/migrations/ -database sqlite3://${DB} up
.PHONY: migrate-up
migrate-down:
migrate -path=cmd/migrations -database sqlite://${DB} down
migrate -path=cmd/migrations -database sqlite3://${DB} down
.PHONY: migrate-down

migrate-up-docker:
docker run -v cmd/migrations:/migrations --network host migrate/migrate -path=/migrations/ -database sqlite://${DB} up 0
docker run -v cmd/migrations:/migrations --network host migrate/migrate -path=/migrations/ -database sqlite3://${DB} up 0
.PHONY: migrate-up-docker

build:
Expand All @@ -34,4 +34,4 @@ lint:
# https://go.dev/blog/vuln
vulncheck:
govulncheck ./...
.PHONY: vulncheck
.PHONY: vulncheck

0 comments on commit 49b5bbd

Please sign in to comment.