Created
March 26, 2013 21:19
-
-
Save selenamarie/5249357 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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