13 lines
307 B
Python
Executable file
13 lines
307 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
from sourcing.model import Base
|
|
from sourcing.database import init_db, session
|
|
from sourcing import create_app
|
|
|
|
app = create_app('config.default')
|
|
db_url = app.config['DB_URL']
|
|
init_db(db_url)
|
|
engine = session.get_bind()
|
|
# Base.metadata.drop_all(engine)
|
|
Base.metadata.create_all(engine)
|