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

migrations statuses func #401

Closed
wants to merge 2 commits into from

Conversation

w1kend
Copy link

@w1kend w1kend commented Aug 28, 2022

Hi!
Someone asked in #255 about having function for getting migration statuses.

So if you want to have this func we can discuss it, because I have some thoughts additionally to the changes.

  1. looks like the Migrations type should have this function
func (ms Migrations) Records() ([]MigrationRecord, error) {}
  1. add a tstamp to query in dbVersionQuery(db *sql.DB) in case that someone needs it.

@w1kend w1kend changed the title Feature/migration status migrations statuses func Aug 28, 2022
@mfridman
Copy link
Collaborator

mfridman commented Apr 21, 2024

Thanks for the PR, unfortunately we didn't end up merging it. I'm going to close this in favor of

func (p *Provider) HasPending(context.Context) (bool, error) {}

added in #751

@mfridman mfridman closed this Apr 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants