fix bug for migration

This commit is contained in:
TuxCoder 2022-02-20 16:54:35 +01:00
parent 2a119b6ef8
commit 01803ec20a

View file

@ -16,6 +16,7 @@ import json
import logging import logging
import crypt import crypt
from flask_sqlalchemy import SQLAlchemy, orm from flask_sqlalchemy import SQLAlchemy, orm
from flask_migrate import Migrate
from datetime import datetime from datetime import datetime
import uuid import uuid
import pyotp import pyotp
@ -27,7 +28,7 @@ ldap_conn = None # type: Connection
base_dn = '' base_dn = ''
db = SQLAlchemy() # type: SQLAlchemy db = SQLAlchemy() # type: SQLAlchemy
migrate = Migrate()
class UserSignUp(db.Model): class UserSignUp(db.Model):
id = db.Column(db.Integer, primary_key=True) id = db.Column(db.Integer, primary_key=True)