Forráskód Böngészése

系统模板加入icon字段

James Iter 9 éve
szülő
commit
316637ff61
2 módosított fájl, 2 hozzáadás és 0 törlés
  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