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,7 +14,7 @@ transmit calexium_lib/web/CXM_json.anubis
14 14
15 public type HK_Model_Attr: 15 public type HK_Model_Attr:
16 unique, // by default, the values in a column are not required to be all different 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 default(String), // default value (used in case of creation of a NON NULL column 18 default(String), // default value (used in case of creation of a NON NULL column
19 // in a table which already contains some rows) 19 // in a table which already contains some rows)
20 not_null. 20 not_null.
@@ -28,7 +28,7 @@ public define Message @@ -28,7 +28,7 @@ public define Message
28 if hk_model_attr is 28 if hk_model_attr is
29 { 29 {
30 unique then forget(add_string(hk_model_attr_message, "hk_column_attr", "unique")), 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 default(value) then forget(add_string(hk_model_attr_message, "hk_column_attr", "default")); 32 default(value) then forget(add_string(hk_model_attr_message, "hk_column_attr", "default"));
33 forget(add_string(hk_model_attr_message, "value", value)), 33 forget(add_string(hk_model_attr_message, "value", value)),
34 not_null then forget(add_string(hk_model_attr_message, "hk_column_attr", "not_null")) 34 not_null then forget(add_string(hk_model_attr_message, "hk_column_attr", "not_null"))
@@ -46,7 +46,7 @@ public define JsonValue @@ -46,7 +46,7 @@ public define JsonValue
46 { 46 {
47 unique then [ json_member("hk_column_attr", json_string("unique")) ], 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 default(value) then [ json_member("hk_column_attr", json_string("default")), 51 default(value) then [ json_member("hk_column_attr", json_string("default")),
52 json_member("value", json_string(value)) 52 json_member("value", json_string(value))
@@ -65,7 +65,7 @@ public define Maybe(HK_Model_Attr) @@ -65,7 +65,7 @@ public define Maybe(HK_Model_Attr)
65 if *hk_model_attr_message.what = _HK_COLUMN_ATTRIBUTES then 65 if *hk_model_attr_message.what = _HK_COLUMN_ATTRIBUTES then
66 if find_string(hk_model_attr_message, "hk_column_attr") is {failure then failure, success(col_attr) then 66 if find_string(hk_model_attr_message, "hk_column_attr") is {failure then failure, success(col_attr) then
67 if col_attr = "unique" then success(unique) 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 else if col_attr = "default" then 69 else if col_attr = "default" then
70 if find_string(hk_model_attr_message, "value") is {failure then failure, success(value) then 70 if find_string(hk_model_attr_message, "value") is {failure then failure, success(value) then
71 success(default(value)) 71 success(default(value))