-
Notifications
You must be signed in to change notification settings - Fork 2
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
#20 Changed CodeChallengeEvent to Event #39
base: master
Are you sure you want to change the base?
#20 Changed CodeChallengeEvent to Event #39
Conversation
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.
Your model changes look great! 😊
One thing you will need to add though before I can merge this is a Django migration that renames the table on the database. I found this great stack overflow post that describes how you can generate such a migration: https://stackoverflow.com/questions/25091130/django-migration-strategy-for-renaming-a-model-and-relationship-fields. After you add the renaming migration we can merge! 🚢
Let me know if you have any questions.
@@ -11,7 +11,7 @@ class Migration(migrations.Migration): | |||
|
|||
operations = [ | |||
migrations.CreateModel( | |||
name="CodeChallengeEvent", |
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 migrations, instead please add a new migration that renames the table. We need to do this because we already have a table and data inside this table in production.
@@ -18,7 +18,7 @@ class Migration(migrations.Migration): | |||
blank=True, | |||
null=True, | |||
on_delete=django.db.models.deletion.CASCADE, | |||
to="codechallenges.codechallengeevent", |
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.
Same thing as above here.
No description provided.