Quellcode durchsuchen

系统模板加入icon字段

James Iter vor 9 Jahren
Ursprung
Commit
316637ff61
2 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 1 0
      misc/init.sql
  2. 1 0
      models/os_template.py

+ 1 - 0
misc/init.sql

@@ -56,6 +56,7 @@ CREATE TABLE IF NOT EXISTS os_template(
     label VARCHAR(255) NOT NULL,
     path VARCHAR(255) NOT NULL,
     active BOOLEAN NOT NULL DEFAULT TRUE,
+    icon VARCHAR(255) NOT NULL,
     os_init_id BIGINT UNSIGNED NOT NULL DEFAULT 0,
     PRIMARY KEY (id))
     ENGINE=InnoDB

+ 1 - 0
models/os_template.py

@@ -23,6 +23,7 @@ class OSTemplate(ORM):
         self.label = None
         self.path = None
         self.active = None
+        self.icon = None
         self.os_init_id = None
 
     @staticmethod