Skip to content

Instantly share code, notes, and snippets.

@deanohyeah
Created August 1, 2013 00:29
Show Gist options
  • Save deanohyeah/6127505 to your computer and use it in GitHub Desktop.
Save deanohyeah/6127505 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 schemamigration elections --fake
create new migration
django-admin.py schemamigration elections --auto
people
legislators
django-admin.py migrate elections
people
legislators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment