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

Develop #749

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Develop #749

wants to merge 5 commits into from

Conversation

oleg-gj
Copy link

@oleg-gj oleg-gj commented Aug 8, 2024

Screenshot from 2024-08-08 08-50-28
Screenshot from 2024-08-08 08-50-49
Screenshot from 2024-08-08 08-51-13
Screenshot from 2024-08-08 08-51-28

Copy link

@pavlopro pavlopro left a 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

@@ -29,7 +29,7 @@ class Migration(migrations.Migration):
('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
Copy link

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

@oleg-gj oleg-gj requested a review from pavlopro August 8, 2024 13:14
Copy link

@LLkaia LLkaia left a 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.

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.

3 participants