terraform-provider-mysql icon indicating copy to clipboard operation
terraform-provider-mysql copied to clipboard

Make database optional in grant resource

Open ClemontX opened this issue 1 year ago • 0 comments

Hey guys,

i don't have much experience with go and in developing terraform providers. I wanted to use this provider to create a simple privilige management. I've discovered the problem that if you want to grant a role to a user, you must define a database for the grant resource. This isn't needed by the latest mysql and mariadb versions (tested). A sample in the MariaDB documentation is here.

So i changed the line in the code which declares the database as required and changed it to optional.

I hope i did everything the right way.

Greets Carl

ClemontX avatar Mar 10 '23 22:03 ClemontX