1
0
mirror of https://github.com/janLo/wallabag-kindle-consumer synced 2026-06-19 19:08:00 +00:00

Add option to ctreate the db

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
This commit is contained in:
2018-03-22 03:42:12 +01:00
parent f538de7e98
commit fb65e2c877
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -55,6 +55,11 @@ def session_maker(config):
return Session
def create_db(config):
engine = create_engine(config.db_uri)
Base.metadata.create_all(engine)
def re_create_db(config):
engine = create_engine(config.db_uri)
Base.metadata.drop_all(engine)