Commit 27f3d0f6b93aa27fbbd34993a72cef1fb36b347f

Authored by totoro
1 parent 55d484c7

remove indexed as attribute of column

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
types/model/columns.anubis
... ... @@ -14,7 +14,7 @@ transmit calexium_lib/web/CXM_json.anubis
14 14  
15 15 public type HK_Model_Attr:
16 16 unique, // by default, the values in a column are not required to be all different
17   - indexed, // by default, a column is not indexed
  17 +// indexed, // by default, a column is not indexed
18 18 default(String), // default value (used in case of creation of a NON NULL column
19 19 // in a table which already contains some rows)
20 20 not_null.
... ... @@ -28,7 +28,7 @@ public define Message
28 28 if hk_model_attr is
29 29 {
30 30 unique then forget(add_string(hk_model_attr_message, "hk_column_attr", "unique")),
31   - indexed then forget(add_string(hk_model_attr_message, "hk_column_attr", "indexed")),
  31 +// indexed then forget(add_string(hk_model_attr_message, "hk_column_attr", "indexed")),
32 32 default(value) then forget(add_string(hk_model_attr_message, "hk_column_attr", "default"));
33 33 forget(add_string(hk_model_attr_message, "value", value)),
34 34 not_null then forget(add_string(hk_model_attr_message, "hk_column_attr", "not_null"))
... ... @@ -46,7 +46,7 @@ public define JsonValue
46 46 {
47 47 unique then [ json_member("hk_column_attr", json_string("unique")) ],
48 48  
49   - indexed then [ json_member("hk_column_attr", json_string("indexed")) ],
  49 +// indexed then [ json_member("hk_column_attr", json_string("indexed")) ],
50 50  
51 51 default(value) then [ json_member("hk_column_attr", json_string("default")),
52 52 json_member("value", json_string(value))
... ... @@ -65,7 +65,7 @@ public define Maybe(HK_Model_Attr)
65 65 if *hk_model_attr_message.what = _HK_COLUMN_ATTRIBUTES then
66 66 if find_string(hk_model_attr_message, "hk_column_attr") is {failure then failure, success(col_attr) then
67 67 if col_attr = "unique" then success(unique)
68   - else if col_attr = "indexed" then success(indexed)
  68 +// else if col_attr = "indexed" then success(indexed)
69 69 else if col_attr = "default" then
70 70 if find_string(hk_model_attr_message, "value") is {failure then failure, success(value) then
71 71 success(default(value))
... ...