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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user