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

Support BEFORE and AFTER clauses in createColumnConstraint() #14

Open
tohagan opened this issue Jul 29, 2018 · 3 comments
Open

Support BEFORE and AFTER clauses in createColumnConstraint() #14

tohagan opened this issue Jul 29, 2018 · 3 comments

Comments

@tohagan
Copy link

tohagan commented Jul 29, 2018

Issue:

Currently when you add a column, it will always be added to the end of the table. However, you often want to group related columns together to ensure that select * queries are more readable and that the column order matches the property order in your application data model.

Solution:

  • Add support for MySQL's BEFORE and AFTER clauses to createColumnConstraint() method by adding before: column and after: column properties to the column spec.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@FabioBachi
Copy link
Contributor

FabioBachi commented Apr 22, 2021

Hi @tohagan !
I created a PR with these features. You can check it out here

@tohagan
Copy link
Author

tohagan commented Apr 23, 2021

Excellent! Thank you

@tohagan
Copy link
Author

tohagan commented Apr 23, 2021

Because we needed features like this, I eventually opted for a SQL only migration solution so I'm now using this one ...
http://mybatis.org/migrations/

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

2 participants