Skip to content

Commit cf9ae69

Browse files
Changes after review
1 parent 9aef17a commit cf9ae69

File tree

3 files changed

+1
-27
lines changed

3 files changed

+1
-27
lines changed

pkg/resources/current_account.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@ func CurrentAccount() *schema.Resource {
7575
StateContext: TrackingImportWrapper(resources.CurrentAccount, schema.ImportStatePassthroughContext),
7676
},
7777

78-
//SchemaVersion: 1,
79-
//StateUpgraders: []schema.StateUpgrader{
80-
// {
81-
// Version: 0,
82-
// // setting type to cty.EmptyObject is a bit hacky here but following https://developer.hashicorp.com/terraform/plugin/framework/migrating/resources/state-upgrade#sdkv2-1 would require lots of repetitive code; this should work with cty.EmptyObject
83-
// Type: cty.EmptyObject,
84-
// Upgrade: v2_10_0_CurrentAccountStateUpgrader,
85-
// },
86-
//},
87-
8878
Timeouts: defaultTimeouts,
8979
}
9080
}

pkg/resources/current_account_state_upgraders.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

pkg/resources/current_organization_account.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/resources"
1313
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/schemas"
1414
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk"
15+
"github.com/hashicorp/go-cty/cty"
1516
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
1617
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/customdiff"
1718
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

0 commit comments

Comments
 (0)