This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-asset-manager/webservice/bam/manage.py

15 lines
317 B
Python
Raw Normal View History

2014-11-05 18:52:18 +01:00
#!/usr/bin/env python3
from application import app, db
from flask.ext.script import Manager
from flask.ext.migrate import Migrate, MigrateCommand
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
def create_all_tables():
db.create_all()
manager.run()