From 5ccc0f4fc3ce95b14aa7c7902d03e908f229a586 Mon Sep 17 00:00:00 2001 From: sfc-gh-afedorov Date: Tue, 4 Aug 2020 13:43:07 -0700 Subject: [PATCH] [dc] Remove vestigial column is AzIC --- migrations/v1_9_5-v1_9_6.md | 7 +++++++ src/connectors/azure_collect.py | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 migrations/v1_9_5-v1_9_6.md diff --git a/migrations/v1_9_5-v1_9_6.md b/migrations/v1_9_5-v1_9_6.md new file mode 100644 index 000000000..18a988b34 --- /dev/null +++ b/migrations/v1_9_5-v1_9_6.md @@ -0,0 +1,7 @@ +## Update Azure Inventory and Configuration Connections + +To update a default connection to v1.9.6, execute the following SQL: + +~~~ +ALTER TABLE azure_collect_sql_servers_auditing_settings DROP COLUMN subscription_id; +~~~ diff --git a/src/connectors/azure_collect.py b/src/connectors/azure_collect.py index 091cd3738..d1568ad27 100644 --- a/src/connectors/azure_collect.py +++ b/src/connectors/azure_collect.py @@ -716,7 +716,6 @@ def access_token_cache(cloud, client_id, tenant, secret, resource, _creds={}): 'sql_servers_auditing_settings': [ ('recorded_at', 'TIMESTAMP_LTZ'), ('tenant_id', 'VARCHAR(50)'), - ('subscription_id', 'VARCHAR(50)'), ('server_full_id', 'VARCHAR(5000)'), ('error', 'VARIANT'), ('id', 'STRING'), @@ -1779,7 +1778,6 @@ def connect(connection_name, options): 'response': { 'headerDate': 'recorded_at', 'tenantId': 'tenant_id', - 'subscriptionId': 'subscription_id', 'serverFullId': 'server_full_id', 'error': 'error', 'id': 'id',