summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-06-26 11:51:50 +0200
committerAnton Khirnov <anton@khirnov.net>2022-06-26 11:51:50 +0200
commit03dda1eb13b8aec22a1a7a69fae56f1acf7dfa87 (patch)
tree297dbcda7f47ddd14c199f1c992c52ae2452739d
parentc441e411d0ac68a78554d15e302a74fdeabb7420 (diff)
Remove flask_migrate dependency.
-rwxr-xr-xfhost.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/fhost.py b/fhost.py
index ea2b8d7..1fd24d0 100755
--- a/fhost.py
+++ b/fhost.py
@@ -22,7 +22,6 @@
from flask import Flask, abort, escape, make_response, redirect, request, send_from_directory, url_for, Response
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
-from flask_migrate import Migrate, MigrateCommand
from hashlib import sha256
from humanize import naturalsize
from magic import Magic
@@ -82,10 +81,8 @@ if not os.path.exists(app.config["FHOST_STORAGE_PATH"]):
os.mkdir(app.config["FHOST_STORAGE_PATH"])
db = SQLAlchemy(app)
-migrate = Migrate(app, db)
manager = Manager(app)
-manager.add_command("db", MigrateCommand)
su = UrlEncoder(alphabet='DEQhd2uFteibPwq0SWBInTpA_jcZL5GKz3YCR14Ulk87Jors9vNHgfaOmMXy6Vx-', block_size=16)