Skip to content

Instantly share code, notes, and snippets.

@deanohyeah
Last active December 20, 2015 12:39
Show Gist options
  • Save deanohyeah/6132908 to your computer and use it in GitHub Desktop.
Save deanohyeah/6132908 to your computer and use it in GitHub Desktop.
dropdb <name>
createdb <name>
django-admin.py syncdb
## loads db
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U dkramer -d migrate_test ~/Desktop/b009.dump
fake it
django-admin.py migrate elections 0001 --fake
create new migration
django-admin.py schemamigration elections --auto
people
legislators
django-admin.py migrate elections
people
legislators
Change election date and type for mayoral race,also add new county
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment