mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Move the Select class before the config classes in db model to avoid potential errors when upgrading the database
This commit is contained in:
parent
11154cb43f
commit
03bc5538fd
1 changed files with 9 additions and 9 deletions
|
|
@ -90,6 +90,15 @@ class Settings(Base):
|
|||
plugin = relationship("Plugins", back_populates="settings")
|
||||
|
||||
|
||||
class Selects(Base):
|
||||
__tablename__ = "bw_selects"
|
||||
|
||||
setting_id = Column(String(256), ForeignKey("bw_settings.id", onupdate="cascade", ondelete="cascade"), primary_key=True)
|
||||
value = Column(String(256), primary_key=True)
|
||||
|
||||
setting = relationship("Settings", back_populates="selects")
|
||||
|
||||
|
||||
class Global_values(Base):
|
||||
__tablename__ = "bw_global_values"
|
||||
|
||||
|
|
@ -186,15 +195,6 @@ class Custom_configs(Base):
|
|||
service = relationship("Services", back_populates="custom_configs")
|
||||
|
||||
|
||||
class Selects(Base):
|
||||
__tablename__ = "bw_selects"
|
||||
|
||||
setting_id = Column(String(256), ForeignKey("bw_settings.id", onupdate="cascade", ondelete="cascade"), primary_key=True)
|
||||
value = Column(String(256), primary_key=True)
|
||||
|
||||
setting = relationship("Settings", back_populates="selects")
|
||||
|
||||
|
||||
class Instances(Base):
|
||||
__tablename__ = "bw_instances"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue