optimized-query
Some checks failed
Deploy on push / deploy (push) Failing after 10s

This commit is contained in:
2024-10-31 19:48:06 +03:00
parent f29eb5f35a
commit 8c05589168
2 changed files with 104 additions and 151 deletions

View File

@@ -1,6 +1,6 @@
import time
from sqlalchemy import ARRAY, Boolean, Column, ForeignKey, Integer, String
from sqlalchemy import JSON, Boolean, Column, ForeignKey, Integer, String
from services.db import Base
@@ -25,4 +25,4 @@ class Topic(Base):
community = Column(ForeignKey("community.id"), default=1)
oid = Column(String, nullable=True, comment="Old ID")
parent_ids = Column(ARRAY(Integer), nullable=True, comment="Parent Topic IDs")
parent_ids = Column(JSON, nullable=True, comment="Parent Topic IDs")