Browse Source

Schéma: uid as integer, no column named 'class'

ArnAud 9 years ago
parent
commit
58a4d7c681
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      Database/sqlsetup.py

+ 3
- 4
Database/sqlsetup.py View File

27
         uids = {
27
         uids = {
28
                 "name":"uids",
28
                 "name":"uids",
29
                 "columns":[
29
                 "columns":[
30
-                    {"name":"uid",          "type":"VARCHAR(50)", "extra":{"nullable":False, "primarykey":True}},
31
-                    {"name":"class",        "type":"VARCHAR(50)"},
32
-                    {"name":"type",         "type":"VARCHAR(50)"}
30
+                    {"name":"uid",          "type":"INTEGER", "extra":{"nullable":False, "primarykey":True, 'autoincrement':True}},
31
+                    {"name":"table",        "type":"VARCHAR(50)"}
33
                 ]
32
                 ]
34
             }
33
             }
35
         tables.append(uids)
34
         tables.append(uids)
38
         # Table listing the classes
37
         # Table listing the classes
39
         em_class = {"name":"em_class"}
38
         em_class = {"name":"em_class"}
40
         em_class['columns'] = default_columns + [
39
         em_class['columns'] = default_columns + [
41
-            {"name":"classtype",    "type":"INTEGER"},
40
+            {"name":"classtype",    "type":"VARCHAR(50)"},
42
             {"name":"sortcolumn",   "type":"VARCHAR(50)", "extra":{"default":"rank"}},
41
             {"name":"sortcolumn",   "type":"VARCHAR(50)", "extra":{"default":"rank"}},
43
             {"name":"icon",         "type":"INTEGER"},
42
             {"name":"icon",         "type":"INTEGER"},
44
         ]
43
         ]

Loading…
Cancel
Save