Magellan Linux

Diff of /alx-src/branches/alx-web-070/scripts/sql-schema/include/schema.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8548 by niro, Mon Feb 8 13:10:52 2016 UTC revision 13670 by niro, Thu Jul 25 14:21:41 2019 UTC
# Line 13  create_database_schema() Line 13  create_database_schema()
13   sql_create_table   sql_create_table
14    
15   TABLE_DEFINITION=(   TABLE_DEFINITION=(
  "cfg_autostart"  
  "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"  
  "serial int(11) NOT NULL"  
  "name varchar(255) NOT NULL"  
  "exec varchar(255) DEFAULT NULL"  
  "enabled tinyint(1) NOT NULL DEFAULT '1'"  
  "flg_modified tinyint(1) NOT NULL DEFAULT '0'"  
  )  
  sql_create_table  
   
  TABLE_DEFINITION=(  
16   "cfg_citrix_serverlist"   "cfg_citrix_serverlist"
17   "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"   "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"
18   "serial int(11) NOT NULL"   "serial int(11) NOT NULL"
# Line 47  create_database_schema() Line 36  create_database_schema()
36   "name varchar(255) NOT NULL"   "name varchar(255) NOT NULL"
37   "exec varchar(255) NOT NULL"   "exec varchar(255) NOT NULL"
38   "comment varchar(255) DEFAULT NULL"   "comment varchar(255) DEFAULT NULL"
39     "enabled tinyint(1) NOT NULL DEFAULT '1'"
40   )   )
41   sql_create_table   sql_create_table
42    
# Line 142  create_database_schema() Line 132  create_database_schema()
132   sql_create_table   sql_create_table
133    
134   TABLE_DEFINITION=(   TABLE_DEFINITION=(
  "cfg_other_menuitems"  
  "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"  
  "serial int(11) NOT NULL"  
  "name varchar(255) DEFAULT NULL"  
  "exec varchar(255) DEFAULT NULL"  
  "workdir varchar(255) DEFAULT NULL"  
  "icon varchar(255) DEFAULT NULL"  
  )  
  sql_create_table  
   
  TABLE_DEFINITION=(  
135   "cfg_printers"   "cfg_printers"
136   "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"   "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"
137   "serial int(11) NOT NULL"   "serial int(11) NOT NULL"
# Line 175  create_database_schema() Line 154  create_database_schema()
154   "screensaver varchar(255) NOT NULL"   "screensaver varchar(255) NOT NULL"
155   "timeout int(11) DEFAULT '10'"   "timeout int(11) DEFAULT '10'"
156   "password varchar(255) DEFAULT NULL"   "password varchar(255) DEFAULT NULL"
157     "dpms tinyint(1) NOT NULL DEFAULT '1'"
158   )   )
159   sql_create_table   sql_create_table
160    
# Line 189  create_database_schema() Line 169  create_database_schema()
169   "domain varchar(255) DEFAULT NULL"   "domain varchar(255) DEFAULT NULL"
170   "password varchar(255) DEFAULT NULL"   "password varchar(255) DEFAULT NULL"
171   "serverlist varchar(255) NOT NULL"   "serverlist varchar(255) NOT NULL"
172   "autostart tinyint(1) NOT NULL DEFAULT '0'"   "autostart tinyint(1) NOT NULL DEFAULT '1'"
173   "enabled tinyint(1) NOT NULL DEFAULT '1'"   "enabled tinyint(1) NOT NULL DEFAULT '1'"
174   "flg_modified tinyint(1) NOT NULL DEFAULT '0'"   "flg_modified tinyint(1) NOT NULL DEFAULT '0'"
175   )   )
# Line 206  create_database_schema() Line 186  create_database_schema()
186   "password varchar(255) DEFAULT NULL"   "password varchar(255) DEFAULT NULL"
187   "domain varchar(255) DEFAULT NULL"   "domain varchar(255) DEFAULT NULL"
188   "shell varchar(255) DEFAULT NULL"   "shell varchar(255) DEFAULT NULL"
189   "autostart tinyint(1) NOT NULL DEFAULT '0'"   "autostart tinyint(1) NOT NULL DEFAULT '1'"
190   "enabled tinyint(1) NOT NULL DEFAULT '1'"   "enabled tinyint(1) NOT NULL DEFAULT '1'"
191   "flg_modified tinyint(1) NOT NULL DEFAULT '0'"   "flg_modified tinyint(1) NOT NULL DEFAULT '0'"
192   )   )
# Line 223  create_database_schema() Line 203  create_database_schema()
203   "domain varchar(255) DEFAULT NULL"   "domain varchar(255) DEFAULT NULL"
204   "password varchar(255) DEFAULT NULL"   "password varchar(255) DEFAULT NULL"
205   "store varchar(255) NOT NULL"   "store varchar(255) NOT NULL"
206   "autostart tinyint(1) NOT NULL DEFAULT '0'"   "autostart tinyint(1) NOT NULL DEFAULT '1'"
207   "enabled tinyint(1) NOT NULL DEFAULT '1'"   "enabled tinyint(1) NOT NULL DEFAULT '1'"
208   "flg_modified tinyint(1) NOT NULL DEFAULT '0'"   "flg_modified tinyint(1) NOT NULL DEFAULT '0'"
209   )   )
# Line 257  create_database_schema() Line 237  create_database_schema()
237   TABLE_DEFINITION=(   TABLE_DEFINITION=(
238   "client_locations"   "client_locations"
239   "location varchar(255) NOT NULL PRIMARY KEY"   "location varchar(255) NOT NULL PRIMARY KEY"
240     "bootserver varchar(255) NOT NULL"
241   "controlserver varchar(255) NOT NULL"   "controlserver varchar(255) NOT NULL"
242   "pxe_default_entry varchar(255) NOT NULL"   "pxe_default_entry varchar(255) NOT NULL"
243   "pxe_prompt tinyint(1) NOT NULL"   "pxe_prompt tinyint(1) NOT NULL"
# Line 275  create_database_schema() Line 256  create_database_schema()
256    
257   TABLE_DEFINITION=(   TABLE_DEFINITION=(
258   "client_serials"   "client_serials"
259   "serial int(11) NOT NULL PRIMARY KEY"   "serial int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"
260   "location varchar(255) NOT NULL"   "location varchar(255) NOT NULL"
261   "mtime int(11) DEFAULT NULL"   "mtime int(11) DEFAULT NULL"
262   "mac varchar(17) NOT NULL"   "mac varchar(17) NOT NULL"
# Line 289  create_database_schema() Line 270  create_database_schema()
270   "serial int(11) NOT NULL PRIMARY KEY"   "serial int(11) NOT NULL PRIMARY KEY"
271   "os varchar(50) NOT NULL"   "os varchar(50) NOT NULL"
272   "utils varchar(50) NOT NULL"   "utils varchar(50) NOT NULL"
273     "arch varchar(50) NOT NULL"
274   )   )
275   sql_create_table   sql_create_table
276    
# Line 369  create_database_schema() Line 351  create_database_schema()
351   "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"   "id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT"
352   "value varchar(255) NOT NULL"   "value varchar(255) NOT NULL"
353   "enabled tinyint(1) NOT NULL DEFAULT '1'"   "enabled tinyint(1) NOT NULL DEFAULT '1'"
354     "description varchar(255) DEFAULT NULL"
355   )   )
356   sql_create_table   sql_create_table
357    
# Line 445  create_database_schema() Line 428  create_database_schema()
428   "enabled tinyint(1) NOT NULL DEFAULT '1'"   "enabled tinyint(1) NOT NULL DEFAULT '1'"
429   )   )
430   sql_create_table   sql_create_table
431    
432     TABLE_DEFINITION=(
433     "client_boot"
434     "serial int(255) NOT NULL PRIMARY KEY"
435     "cmdline varchar(255) DEFAULT NULL"
436     )
437     sql_create_table
438  }  }

Legend:
Removed from v.8548  
changed lines
  Added in v.13670