From 27f3d0f6b93aa27fbbd34993a72cef1fb36b347f Mon Sep 17 00:00:00 2001 From: totoro Date: Thu, 19 Jan 2017 09:59:08 +0100 Subject: [PATCH] remove indexed as attribute of column --- types/model/columns.anubis | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/model/columns.anubis b/types/model/columns.anubis index d290799..cf998b9 100644 --- a/types/model/columns.anubis +++ b/types/model/columns.anubis @@ -14,7 +14,7 @@ transmit calexium_lib/web/CXM_json.anubis public type HK_Model_Attr: unique, // by default, the values in a column are not required to be all different - indexed, // by default, a column is not indexed +// indexed, // by default, a column is not indexed default(String), // default value (used in case of creation of a NON NULL column // in a table which already contains some rows) not_null. @@ -28,7 +28,7 @@ public define Message if hk_model_attr is { unique then forget(add_string(hk_model_attr_message, "hk_column_attr", "unique")), - indexed then forget(add_string(hk_model_attr_message, "hk_column_attr", "indexed")), +// indexed then forget(add_string(hk_model_attr_message, "hk_column_attr", "indexed")), default(value) then forget(add_string(hk_model_attr_message, "hk_column_attr", "default")); forget(add_string(hk_model_attr_message, "value", value)), not_null then forget(add_string(hk_model_attr_message, "hk_column_attr", "not_null")) @@ -46,7 +46,7 @@ public define JsonValue { unique then [ json_member("hk_column_attr", json_string("unique")) ], - indexed then [ json_member("hk_column_attr", json_string("indexed")) ], +// indexed then [ json_member("hk_column_attr", json_string("indexed")) ], default(value) then [ json_member("hk_column_attr", json_string("default")), json_member("value", json_string(value)) @@ -65,7 +65,7 @@ public define Maybe(HK_Model_Attr) if *hk_model_attr_message.what = _HK_COLUMN_ATTRIBUTES then if find_string(hk_model_attr_message, "hk_column_attr") is {failure then failure, success(col_attr) then if col_attr = "unique" then success(unique) - else if col_attr = "indexed" then success(indexed) +// else if col_attr = "indexed" then success(indexed) else if col_attr = "default" then if find_string(hk_model_attr_message, "value") is {failure then failure, success(value) then success(default(value)) -- libgit2 0.21.4