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

#20 Changed CodeChallengeEvent to Event #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

syedmalimustafa
Copy link

No description provided.

Copy link
Member

@MathyouMB MathyouMB left a 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",
Copy link
Member

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",
Copy link
Member

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.

@MathyouMB MathyouMB linked an issue Apr 30, 2021 that may be closed by this pull request
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.

Change "CodeChallengeEvent" to "Event"
2 participants