From 9919a62912237c3f14dbba23f76a41401d5403c9 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 27 Nov 2017 11:18:36 -0800 Subject: [PATCH] Start using alembic Change-Id: I7c5636155ef68332d6c94b02efed012254e34e39 --- boartty/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boartty/db.py b/boartty/db.py index ea8b332..ed791e9 100644 --- a/boartty/db.py +++ b/boartty/db.py @@ -560,7 +560,7 @@ class Database(object): self.search = search self.engine = create_engine(self.dburi) metadata.create_all(self.engine) - #self.migrate(app) + self.migrate(app) # If we want the objects returned from query() to be usable # outside of the session, we need to expunge them from the session, # and since the DatabaseSession always calls commit() on the session @@ -590,7 +590,7 @@ class Database(object): if current_rev is None and has_table: self.log.debug('Stamping database as initial revision') - alembic.command.stamp(config, "44402069e137") + alembic.command.stamp(config, "183755ac91df") alembic.command.upgrade(config, 'head') class DatabaseSession(object):