Corrected according to https://github.com/langgenius/dify/issues/15936#issuecomment-2727350867
This commit is contained in:
parent
6b7b4bdfcd
commit
b2fb321af8
@ -161,8 +161,7 @@ def migrate_annotation_vector_database():
|
||||
try:
|
||||
# get apps info
|
||||
apps = (
|
||||
db.session.query(App)
|
||||
.filter(App.status == "normal")
|
||||
App.query.filter(App.status == "normal")
|
||||
.order_by(App.created_at.desc())
|
||||
.paginate(page=page, per_page=50)
|
||||
)
|
||||
|
@ -74,7 +74,7 @@ class IconType(Enum):
|
||||
EMOJI = "emoji"
|
||||
|
||||
|
||||
class App(Base):
|
||||
class App(db.Model): # type: ignore[name-defined]
|
||||
__tablename__ = "apps"
|
||||
__table_args__ = (db.PrimaryKeyConstraint("id", name="app_pkey"), db.Index("app_tenant_id_idx", "tenant_id"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user