Skip to content

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

Open
@thearithchhie

Description

@thearithchhie

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions