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,9 +27,8 @@ class SQLSetup(object):
27 27
         uids = {
28 28
                 "name":"uids",
29 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 34
         tables.append(uids)
@@ -38,7 +37,7 @@ class SQLSetup(object):
38 37
         # Table listing the classes
39 38
         em_class = {"name":"em_class"}
40 39
         em_class['columns'] = default_columns + [
41
-            {"name":"classtype",    "type":"INTEGER"},
40
+            {"name":"classtype",    "type":"VARCHAR(50)"},
42 41
             {"name":"sortcolumn",   "type":"VARCHAR(50)", "extra":{"default":"rank"}},
43 42
             {"name":"icon",         "type":"INTEGER"},
44 43
         ]

Loading…
Cancel
Save