From b36e13bdacbd2fb7d938c87843bfd00c1d4f2d89 Mon Sep 17 00:00:00 2001 From: ParthaI Date: Fri, 1 Apr 2022 12:12:09 +0530 Subject: [PATCH 1/3] Change the column type for read_scale & create_mode in azure_sql_database. closes #454 --- azure/table_azure_sql_database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/table_azure_sql_database.go b/azure/table_azure_sql_database.go index 7cf96599..ee9373fa 100644 --- a/azure/table_azure_sql_database.go +++ b/azure/table_azure_sql_database.go @@ -198,13 +198,13 @@ func tableAzureSqlDatabase(_ context.Context) *plugin.Table { { Name: "create_mode", Description: "Specifies the mode of database creation.", - Type: proto.ColumnType_JSON, + Type: proto.ColumnType_STRING, Transform: transform.FromField("DatabaseProperties.CreateMode"), }, { Name: "read_scale", Description: "ReadScale indicates whether read-only connections are allowed to this database or not if the database is a geo-secondary.", - Type: proto.ColumnType_JSON, + Type: proto.ColumnType_STRING, Transform: transform.FromField("DatabaseProperties.ReadScale"), }, { From a392f952402c7d3a0724b73776dfc42e5ae31ab5 Mon Sep 17 00:00:00 2001 From: ParthaI Date: Fri, 1 Apr 2022 12:37:12 +0530 Subject: [PATCH 2/3] Update --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 438aa9ef..65677be4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/turbot/steampipe-plugin-azure -go 1.17 +go 1.18 require ( github.com/Azure/azure-sdk-for-go v58.0.0+incompatible From d1365a8d127da43127b76d63c45a7ab8e4b0a257 Mon Sep 17 00:00:00 2001 From: ParthaI Date: Fri, 1 Apr 2022 12:39:30 +0530 Subject: [PATCH 3/3] Revert "Update" This reverts commit a392f952402c7d3a0724b73776dfc42e5ae31ab5. --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 65677be4..438aa9ef 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/turbot/steampipe-plugin-azure -go 1.18 +go 1.17 require ( github.com/Azure/azure-sdk-for-go v58.0.0+incompatible