|
@@ -72,7 +72,7 @@ class SQLSetup(object):
|
72
|
72
|
# Table listing the fields of a fieldgroup
|
73
|
73
|
em_field = {"name":"em_field"}
|
74
|
74
|
em_field['columns'] = default_columns + [
|
75
|
|
- {"name":"fieldtype_id", "type":"INTEGER", "extra":{"nullable":False}},
|
|
75
|
+ {"name":"fieldtype", "type":"VARCHAR(50)", "extra":{"nullable":False}},
|
76
|
76
|
{"name":"fieldgroup_id", "type":"INTEGER", "extra":{"foreignkey":"em_fieldgroup.uid", "nullable":False}},
|
77
|
77
|
{"name":"rel_to_type_id", "type":"INTEGER", "extra":{"foreignkey":"em_type.uid", "nullable":False}}, # if relational: type this field refer to
|
78
|
78
|
{"name":"rel_field_id", "type":"INTEGER", "extra":{"foreignkey":"em_type.uid", "nullable":False}}, # if relational: field that specify the rel_to_type_id
|