Adjustment in travis ci configs. Fix importing during first time running db upgrade

This commit is contained in:
Khanh Ngo
2018-08-20 17:21:32 +07:00
parent 0b7580c82f
commit 8af7a6ac9e
4 changed files with 24 additions and 5 deletions

View File

@ -77,6 +77,11 @@ def upgrade():
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
## NOTE:
## - Drop action does not work on sqlite3
## - This action touchs the `setting` table which loaded in views.py
## during app initlization, so the downgrade function won't work
## unless we temporary remove importing `views` from `app/__init__.py`
op.drop_column('setting', 'view')
# delete added records in previous version