Skip to content

Instantly share code, notes, and snippets.

@absent1706
Last active September 16, 2016 15:17
Show Gist options
  • Save absent1706/7c1daeccdc301fdde401d10cd071ffaa to your computer and use it in GitHub Desktop.
Save absent1706/7c1daeccdc301fdde401d10cd071ffaa to your computer and use it in GitHub Desktop.
set "OLD_SQL_ALCHEMY_ECHO=%SQL_ALCHEMY_ECHO%"
set "SQL_ALCHEMY_ECHO=False"
set "OLD_CURRENT_ENV=%CURRENT_ENV%"
set "CURRENT_ENV=DEV"
mysqladmin -uroot -f drop knowstory && mysqladmin -uroot create knowstory
alembic upgrade head
python fake_data_db_generator\main.py
set "CURRENT_ENV=UNIT-TEST"
mysqladmin -uroot -f drop knowstory_test && mysqladmin -uroot create knowstory_test
alembic upgrade head
set "CURRENT_ENV=%OLD_CURRENT_ENV%"
set "SQL_ALCHEMY_ECHO=%OLD_SQL_ALCHEMY_ECHO%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment