forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hack around the "last migration doesn't stamp" Alembic bug (apache#967)
* Hack around the "last migration doesn't stamp" Alembic bug This makes MySQL, Sqlite and Postgres work with a special hard coded rule. I'm hoping Alembic fixes the root cause eventually. * Running db upgrade twice in tests
- Loading branch information
1 parent
84213ab
commit 23a5463
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/usr/bin/env bash | ||
echo $DB | ||
rm /tmp/caravel_unittests.db | ||
rm ~/.caravel/caravel_unittests.db | ||
rm -f .coverage | ||
export CARAVEL_CONFIG=tests.caravel_test_config | ||
set -e | ||
caravel/bin/caravel db upgrade | ||
caravel/bin/caravel db upgrade # running twice on purpose as a test | ||
caravel/bin/caravel version -v | ||
python setup.py nosetests |