Skip to content

Instantly share code, notes, and snippets.

@selenamarie
Created March 26, 2013 21:19
Show Gist options
  • Save selenamarie/5249357 to your computer and use it in GitHub Desktop.
Save selenamarie/5249357 to your computer and use it in GitHub Desktop.
PYTHONPATH=. alembic revision --autogenerate -m "Adding raw_crashes and raw_adu.received_at"
[ correct migration generated! ]
* modify to import JSON type from socorro's model
from socorro.external.postgresql.models import JSON
sa.Column(u'raw_crash', JSON(), nullable=False),
(sa.json => JSON())
Missing the index...
sa.Column(u'uuid', postgresql.UUID(), nullable=False, index=True, unique=True),
Then:
PYTHONPATH=. alembic upgrade head
Downgrade:
PYTHONPATH=. alembic downgrade -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment