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:
|
try:
|
||||||
# get apps info
|
# get apps info
|
||||||
apps = (
|
apps = (
|
||||||
db.session.query(App)
|
App.query.filter(App.status == "normal")
|
||||||
.filter(App.status == "normal")
|
|
||||||
.order_by(App.created_at.desc())
|
.order_by(App.created_at.desc())
|
||||||
.paginate(page=page, per_page=50)
|
.paginate(page=page, per_page=50)
|
||||||
)
|
)
|
||||||
|
@ -74,7 +74,7 @@ class IconType(Enum):
|
|||||||
EMOJI = "emoji"
|
EMOJI = "emoji"
|
||||||
|
|
||||||
|
|
||||||
class App(Base):
|
class App(db.Model): # type: ignore[name-defined]
|
||||||
__tablename__ = "apps"
|
__tablename__ = "apps"
|
||||||
__table_args__ = (db.PrimaryKeyConstraint("id", name="app_pkey"), db.Index("app_tenant_id_idx", "tenant_id"))
|
__table_args__ = (db.PrimaryKeyConstraint("id", name="app_pkey"), db.Index("app_tenant_id_idx", "tenant_id"))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user