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

Add timestamps migration #195

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add timestamps migration #195

wants to merge 1 commit into from

Conversation

vtm9
Copy link

@vtm9 vtm9 commented Mar 20, 2025

Hey @tompave, I’ve created the first PR containing just migration timestamps.
I love how Oban handles migrations with versioning:
https://github.com/oban-bg/oban/blob/main/lib/oban/migration.ex
Maybe we can implement a similar migrator here, what do you think?

@tompave
Copy link
Owner

tompave commented Mar 21, 2025

Thank you for the work and the PR!

Can you please test this version of the code with and without the migration applied? That's necessary to write upgrade instructions. Ideally, this should be a non-breaking change if we want to ship it in the 1.x line.

@tompave
Copy link
Owner

tompave commented Mar 21, 2025

It would also be good to modify the current migration so that users can copy just one migration file when installing the package for the first time.

For example, look at:

I love how Oban handles migrations with versioning
Maybe we can implement a similar migrator here, what do you think?

Maybe in v2.0, but I think it should not be in this PR.

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