You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have an application which requires a MySQL database instance running with sql_require_primary_key=false.
The default value for a Digital Ocean MySQL database is true.
Changing the sql_require_primary_key configuration via the API is possible: curl -H 'Authorization: Bearer XXX' -XPATCH --data '{"config": {"sql_require_primary_key": false}}' https://api.digitalocean.com/v2/databases/{YOUR_DATABASE_CLUSER_ID}/config).
It'd be more convenient if this could be done via the digitalocean_database_cluster resource.
Describe the solution you'd like
A new sql_require_primary_key field may be added to the digitalocean_database_cluster resource which would influence the sql_require_primary_key configuration setting.
Describe alternatives you've considered
For now, I'm changing sql_require_primary_key manually via the API, outside of Terraform.
My manual changes do not seem to get undone by subsequent Terraform runs, so it's usable.
The text was updated successfully, but these errors were encountered:
If these two endpoints are enough to create the new resource I am open to create a new PR with this new resource and at least the sql_require_primary_key parameter. Later it could be upgraded with other config parameters.
Is your feature request related to a problem? Please describe.
I have an application which requires a MySQL database instance running with
sql_require_primary_key=false
.The default value for a Digital Ocean MySQL database is
true
.Changing the
sql_require_primary_key
configuration via the API is possible:curl -H 'Authorization: Bearer XXX' -XPATCH --data '{"config": {"sql_require_primary_key": false}}' https://api.digitalocean.com/v2/databases/{YOUR_DATABASE_CLUSER_ID}/config
).It'd be more convenient if this could be done via the
digitalocean_database_cluster
resource.Describe the solution you'd like
A new
sql_require_primary_key
field may be added to thedigitalocean_database_cluster
resource which would influence thesql_require_primary_key
configuration setting.Describe alternatives you've considered
For now, I'm changing
sql_require_primary_key
manually via the API, outside of Terraform.My manual changes do not seem to get undone by subsequent Terraform runs, so it's usable.
The text was updated successfully, but these errors were encountered: