-
Notifications
You must be signed in to change notification settings - Fork 854
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
Develop #749
base: master
Are you sure you want to change the base?
Develop #749
Conversation
oleg-gj
commented
Aug 8, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove db.sqlite3 file from PR
taxi/migrations/0001_initial.py
Outdated
@@ -29,7 +29,7 @@ class Migration(migrations.Migration): | |||
('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't modify existing migration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, everything works perfect!
But there is a serious issue - you can't modify migrations. You can consider migrations as history of database structure. If developer has database with data from master branch, and then will apply yours changes and run migrate
, he will see an error. He will be pushed to remove database to apply new migrations but that couldn't happen in real life.
So, never change migrations.