Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run force version in specification table on DB #1181

Open
thearithchhie opened this issue Oct 4, 2024 · 0 comments
Open

How to run force version in specification table on DB #1181

thearithchhie opened this issue Oct 4, 2024 · 0 comments

Comments

@thearithchhie
Copy link

thearithchhie commented Oct 4, 2024

i want like this but not work

fix:
	@echo "Fixing migration to version $(VERSION)..."
	@if [ -z "$(VERSION)" ]; then \
	    echo "Error: VERSION is not specified. Use 'make fix VERSION=your_version'"; \
	    exit 1; \
	fi
	migrate -path $(DB_PATH) -database "$(DB_URL)" -verbose -table your_custom_migrations_table force $(VERSION)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant