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
createTable should allow close to copy paste from Model definition #5213
Comments
I have written a "migration schema generator" which uses models a few days ago. Works fine with several dataTypes (STRING, TEXT, INTEGER, BOOLEAN, ENUM, DATETIME) and since I'm using the My last problem (and I haven't found a solution yet) are indexes because I just haven't found the index definition anywhere in the model. Maybe you can help? The generator: |
Ok, I have just found them in Maybe you want consider to offer an official "migration file generator" instead of changing the createTable interface? (Just an idea) A really awesome feature would be if you could compare two models and create a diff file to use with db:migrate - so you can automatically create a new migrationfile by comparing an old and a new model! |
What you suggest is something we'd like to do. |
Good point. Diffing against a database makes more sense 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂 |
Including:
The text was updated successfully, but these errors were encountered: