docker: persist extra_configs in the template DB table

The extra_configs schema field needs a column on the docker_templates table
to actually round-trip through the controller DB (the schema alone is
accepted but dropped by the SQLAlchemy model mapping). Add the JSON column
and an Alembic migration so existing databases get it on upgrade.
This commit is contained in:
YueGuobin committed 2026-08-14 00:20:08 +08:00
1 parent 08e37a4509
commit 088f1da77a
2 files changed
+27

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ class DockerTemplate(Template):
console_resolution = Column(String)
extra_hosts = Column(String)
extra_volumes = Column(JSON)
extra_configs = Column(JSON)
memory = Column(Integer)
cpus = Column(Float)
custom_adapters = Column(JSON)