From 88a90fbeb1b97b486c43d367042d26d5b35cbdc4 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Wed, 11 Sep 2013 01:46:43 +0400 Subject: [PATCH] db.db_create() shouldn't call hiddenly db.db_drop() It is nasty things that could produce a lot of problems. Change-Id: I8a04c70817a9b975d6064693a2d27597c4b54d3e --- rally/db/sqlalchemy/models.py | 1 - rally/test.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/rally/db/sqlalchemy/models.py b/rally/db/sqlalchemy/models.py index a621790a36..f8344772c2 100644 --- a/rally/db/sqlalchemy/models.py +++ b/rally/db/sqlalchemy/models.py @@ -53,7 +53,6 @@ class Task(BASE, RallyBase): def create_db(): - drop_db() BASE.metadata.create_all(session.get_engine()) diff --git a/rally/test.py b/rally/test.py index 23063c1e4a..7dbe5f08ba 100644 --- a/rally/test.py +++ b/rally/test.py @@ -27,6 +27,7 @@ class DatabaseFixture(config.Config): super(DatabaseFixture, self).setUp() db.db_cleanup() self.conf.set_default('connection', "sqlite://", group='database') + db.db_drop() db.db_create()