From 77de5694f73e5ad1443bb99407d2e8aec9a87320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Cie=C5=9Blak?= Date: Thu, 1 Feb 2024 14:04:30 +0100 Subject: [PATCH] chore: add missing deprecation message (#2451) --- pkg/resources/database_grant.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/resources/database_grant.go b/pkg/resources/database_grant.go index 06efe42b7f..cf80147dc3 100644 --- a/pkg/resources/database_grant.go +++ b/pkg/resources/database_grant.go @@ -86,7 +86,8 @@ func DatabaseGrant() *TerraformGrantResource { Delete: DeleteDatabaseGrant, Update: UpdateDatabaseGrant, - Schema: databaseGrantSchema, + DeprecationMessage: "This resource is deprecated and will be removed in a future major version release. Please use snowflake_grant_privileges_to_account_role instead.", + Schema: databaseGrantSchema, Importer: &schema.ResourceImporter{ StateContext: func(ctx context.Context, d *schema.ResourceData, m interface{}) ([]*schema.ResourceData, error) { parts := strings.Split(d.Id(), helpers.IDDelimiter)