-
Notifications
You must be signed in to change notification settings - Fork 8
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
sequences #2
Comments
I'm not sure I understand. Could you please provide more info? |
Let's say I have a model
I decide to move it to
Basically, it should be done with statement:
|
I see. No, it doesn't. Should it? |
I think yes, it is convenient and more human readable. Check this out, it may help you: http://marcela-campo.blogspot.sk/2015/01/django-migrations-moving-django-model.html |
Thanks for the link. I read that article before implementing this. It doesn't account for other DB engines. For example, SQLite stores sequence information inside a TBH, the scope of this project is to automate the method described at https://stackoverflow.com/a/30613732/1639699 and, while I understand and agree to the reasoning, renaming sequences seems beyond that. |
Ideally renaming a sequence would be implemented as a db operation. Those, however, are not documented and currently I'm not sure how to do that. |
One way to implement an operation would be to simply inherit either |
Hi. Does it also rename sequences?
The text was updated successfully, but these errors were encountered: