updated paver command to fake migrations when the DB exists
This commit is contained in:
@@ -126,8 +126,8 @@ class AcceptanceTestSuite(TestSuite):
|
||||
sh("cp {db_cache} {db}".format(db_cache=self.db_cache, db=self.db))
|
||||
|
||||
# Run migrations to update the db, starting from its cached state
|
||||
sh("./manage.py lms --settings acceptance migrate --traceback --noinput")
|
||||
sh("./manage.py cms --settings acceptance migrate --traceback --noinput")
|
||||
sh("./manage.py lms --settings acceptance migrate --traceback --noinput --fake-initial")
|
||||
sh("./manage.py cms --settings acceptance migrate --traceback --noinput --fake-initial")
|
||||
else:
|
||||
# If no cached database exists, syncdb before migrating, then create the cache
|
||||
sh("./manage.py lms --settings acceptance migrate --traceback --noinput")
|
||||
|
||||
Reference in New Issue
Block a user