Skip to content

Commit

Permalink
drop all tables in initialize db and then create everything
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosmartin committed Jul 31, 2013
1 parent bc6d196 commit e776b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions timtec/scripts/initializedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,6 @@ def main(argv=sys.argv):
settings = get_appsettings(config_uri)
engine = engine_from_config(settings, 'sqlalchemy.')
DBSession.configure(bind=engine)
Base.metadata.drop_all(engine)
Base.metadata.create_all(engine)
initial_dev_data()

0 comments on commit e776b6c

Please sign in to comment.