mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-06-06 07:59:53 +08:00
feat(db): update model to support JSON
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import Column, Integer, String, Sequence
|
||||
from sqlalchemy import Column, Integer, String, Sequence, JSON
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.db import db_query, db_update, Base
|
||||
@@ -12,7 +12,7 @@ class SystemConfig(Base):
|
||||
# 主键
|
||||
key = Column(String, index=True)
|
||||
# 值
|
||||
value = Column(String, nullable=True)
|
||||
value = Column(JSON, nullable=True)
|
||||
|
||||
@staticmethod
|
||||
@db_query
|
||||
|
||||
Reference in New Issue
Block a user