ForceNew is required when changing the locale, ctype, and encoding.

This will cause someone some grief.  TODO: Figure out how to prevent
someone from blowing off their foot if they twiddle this after the
fact.
This commit is contained in:
Sean Chittenden 2016-09-05 23:40:28 -07:00
parent 547dcf27e1
commit 5b66bf0745
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 3 additions and 0 deletions

View File

@ -38,18 +38,21 @@ func resourcePostgreSQLDatabase() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "Character set encoding to use in the new database",
},
"lc_collate": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "Collation order (LC_COLLATE) to use in the new database",
},
"lc_ctype": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "Character classification (LC_CTYPE) to use in the new database",
},
"tablespace_name": {