diff options
author | JackLivio <jack@livio.io> | 2019-04-09 15:51:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 15:51:19 -0400 |
commit | 9b3d77829b5241a7b23bfbe450d69036d41d5d91 (patch) | |
tree | 27d377975eef39ab4030fa26ad25dc41e86bbd24 /src/components/policy/policy_regular/src/sql_pt_queries.cc | |
parent | bf33c29fd8e712bf3c6f0cc6177fcb902a01b69b (diff) | |
parent | cd94a8db2cb92ae850700b9346b09dc8e201da35 (diff) | |
download | sdl_core-9b3d77829b5241a7b23bfbe450d69036d41d5d91.tar.gz |
Merge pull request #2881 from smartdevicelink/feature/policy_allow_unknown_rpc_pass_through5.1.0_RC3release/5.1.0
App Services Allow Unknown RPC Passthrough
Diffstat (limited to 'src/components/policy/policy_regular/src/sql_pt_queries.cc')
-rw-r--r-- | src/components/policy/policy_regular/src/sql_pt_queries.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/components/policy/policy_regular/src/sql_pt_queries.cc b/src/components/policy/policy_regular/src/sql_pt_queries.cc index 708a29c34a..a97b0ab153 100644 --- a/src/components/policy/policy_regular/src/sql_pt_queries.cc +++ b/src/components/policy/policy_regular/src/sql_pt_queries.cc @@ -143,6 +143,7 @@ const std::string kCreateSchema = " `auth_token` VARCHAR(65535), " " `cloud_transport_type` VARCHAR(255), " " `icon_url` VARCHAR(65535), " + " `allow_unknown_rpc_passthrough` BOOLEAN, " " `remote_control_denied` BOOLEAN NOT NULL DEFAULT 0, " " CONSTRAINT `fk_application_hmi_level1` " " FOREIGN KEY(`default_hmi`) " @@ -626,8 +627,9 @@ const std::string kInsertApplication = "INSERT OR IGNORE INTO `application` (`id`, `priority_value`, " "`is_revoked`, `memory_kb`, `heart_beat_timeout_ms`, `certificate`, " "`hybrid_app_preference_value`, `endpoint`, `enabled`, `auth_token`, " - "`cloud_transport_type`, `icon_url`) VALUES " - "(?,?,?,?,?,?,?,?,?,?,?,?)"; + "`cloud_transport_type`, `icon_url`, `allow_unknown_rpc_passthrough`) " + "VALUES " + "(?,?,?,?,?,?,?,?,?,?,?,?,?)"; const std::string kInsertAppGroup = "INSERT INTO `app_group` (`application_id`, `functional_group_id`)" @@ -752,7 +754,8 @@ const std::string kSelectUserMsgsVersion = const std::string kSelectAppPolicies = "SELECT `id`, `priority_value`, `memory_kb`, " " `heart_beat_timeout_ms`, `certificate`, `hybrid_app_preference_value`, " - " `endpoint`, `enabled`, `auth_token`, `cloud_transport_type`, `icon_url` " + " `endpoint`, `enabled`, `auth_token`, `cloud_transport_type`, `icon_url`, " + " `allow_unknown_rpc_passthrough` " "FROM " " `application`"; @@ -876,14 +879,17 @@ const std::string kInsertApplicationFull = " `default_hmi`, `priority_value`, `is_revoked`, `is_default`, " " `is_predata`, `memory_kb`, `heart_beat_timeout_ms`, " " `certificate`, `hybrid_app_preference_value`, `endpoint`, `enabled`, " - " `auth_token`, `cloud_transport_type`, `icon_url`) " - " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; + " `auth_token`, `cloud_transport_type`, `icon_url`, " + "`allow_unknown_rpc_passthrough`) " + " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; const std::string kSelectApplicationFull = "SELECT `keep_context`, `steal_focus`, `default_hmi`, `priority_value`, " " `is_revoked`, `is_default`, `is_predata`, `memory_kb`," " `heart_beat_timeout_ms`, `certificate`, `hybrid_app_preference_value`, " - " `endpoint`, `enabled`, `auth_token`, `cloud_transport_type`, `icon_url` " + " `endpoint`, `enabled`, `auth_token`, `cloud_transport_type`, " + "`icon_url`, " + " `allow_unknown_rpc_passthrough` " "FROM `application` " "WHERE `id` = " "?"; |