13 lines
268 B
Python
Executable File
13 lines
268 B
Python
Executable File
from flask_migrate import Migrate, MigrateCommand
|
|
from flask_script import Manager
|
|
|
|
from main import app, db
|
|
|
|
migrate = Migrate(app, db, compare_type=True)
|
|
|
|
manager = Manager(app)
|
|
manager.add_command('db', MigrateCommand)
|
|
|
|
if __name__ == '__main__':
|
|
manager.run()
|