From 41be8d706729a49bf48550a5f0f3fc6f4d64c6cd Mon Sep 17 00:00:00 2001 From: authName Date: Thu, 12 Oct 2023 21:05:23 +0800 Subject: [PATCH] change column name to accessibility Match-id-bb6730eb750e1b6d78cf58189467f74a23e3f929 --- .../src/operations/operation_common/db_adapter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/core_service/src/operations/operation_common/db_adapter.rs b/services/core_service/src/operations/operation_common/db_adapter.rs index 30d28ee..aeac185 100644 --- a/services/core_service/src/operations/operation_common/db_adapter.rs +++ b/services/core_service/src/operations/operation_common/db_adapter.rs @@ -22,7 +22,7 @@ use db_operator::{ database_table_helper::{ do_transaction, DefaultDatabaseHelper, - G_COLUMN_ACCESS_TYPE, G_COLUMN_SECRET, G_COLUMN_ALIAS, G_COLUMN_AUTH_TYPE, + G_COLUMN_ACCESSIBILITY, G_COLUMN_SECRET, G_COLUMN_ALIAS, G_COLUMN_AUTH_TYPE, G_COLUMN_SYNC_TYPE, G_COLUMN_CRITICAL1, G_COLUMN_CRITICAL2, G_COLUMN_CRITICAL3, G_COLUMN_CRITICAL4, G_COLUMN_NORMAL1, G_COLUMN_NORMAL2, G_COLUMN_NORMAL3, G_COLUMN_NORMAL4, G_COLUMN_REQUIRE_PASSWORD_SET } @@ -51,7 +51,7 @@ fn convert_extra_value_into_db_value(value: &InnerValue) -> Result { fn get_tag_column_name(tag: &Tag) -> Option<&str> { match *tag { - Tag::Accessibility => Some(G_COLUMN_ACCESS_TYPE), + Tag::Accessibility => Some(G_COLUMN_ACCESSIBILITY), Tag::Secret => Some(G_COLUMN_SECRET), Tag::Alias => Some(G_COLUMN_ALIAS), Tag::AuthType => Some(G_COLUMN_AUTH_TYPE), @@ -205,7 +205,7 @@ fn convert_db_data_into_asset(tag: &Tag, data: &ResultDataValue) -> Option Option { match column { - G_COLUMN_ACCESS_TYPE => Some(Tag::Accessibility), + G_COLUMN_ACCESSIBILITY => Some(Tag::Accessibility), G_COLUMN_SECRET => Some(Tag::Secret), G_COLUMN_ALIAS => Some(Tag::Alias), G_COLUMN_AUTH_TYPE => Some(Tag::AuthType),