Skip to content

Added a reminder to update migrations in tutorial #2102

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

Closed
wants to merge 1 commit into from
Closed

Added a reminder to update migrations in tutorial #2102

wants to merge 1 commit into from

Conversation

LuRsT
Copy link
Contributor

@LuRsT LuRsT commented Nov 20, 2014

Feel free to change my copy for this change since the copy in the tutorial says that we don't need to do any migration, but in my case, I had to create the migrations (to add highlight and owner), deleting the database was not enough, I don't know if I did anything wrong.

Note: This was using Django 1.7.1.

@@ -45,6 +45,9 @@ Normally we'd create a database migration in order to do that, but for the purpo

rm tmp.db
python manage.py syncdb
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd need to be this?...

rm tmp.db
rm -r snippets/migrations
python manage.py makemigrations snippets
python manage.py migrate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I think just removing the migrations and re-runing manage syncdb works

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syncdb is pending deprecation, let's do things the new ways around :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't aware of that, I'll send a new pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants