Skip to content

Commit bcdd1c4

Browse files
authored
Merge pull request #214 from oracle/fixExadata
fix for dbsystems attributes
2 parents 3fa4684 + 14c9efd commit bcdd1c4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

resource_obmcs_database_db_system.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,44 +72,58 @@ func DBSystemResource() *schema.Resource {
7272
"database": {
7373
Type: schema.TypeList,
7474
Required: true,
75+
ForceNew: true,
7576
MaxItems: 1,
7677
Elem: &schema.Resource{
7778
Schema: map[string]*schema.Schema{
7879
"admin_password": {
7980
Type: schema.TypeString,
8081
Required: true,
8182
Sensitive: true,
83+
ForceNew: true,
8284
},
8385
"db_name": {
8486
Type: schema.TypeString,
8587
Required: true,
88+
ForceNew: true,
8689
},
8790
"db_workload": {
8891
Type: schema.TypeString,
8992
Optional: true,
93+
ForceNew: true,
94+
Computed: true,
9095
},
9196
"character_set": {
9297
Type: schema.TypeString,
9398
Optional: true,
99+
ForceNew: true,
100+
Computed: true,
94101
},
95102
"ncharacter_set": {
96103
Type: schema.TypeString,
97104
Optional: true,
105+
ForceNew: true,
106+
Computed: true,
98107
},
99108
"pdb_name": {
100109
Type: schema.TypeString,
101110
Optional: true,
111+
ForceNew: true,
112+
Computed: true,
102113
},
103114
},
104115
},
105116
},
106117
"db_version": {
107118
Type: schema.TypeString,
108119
Required: true,
120+
ForceNew: true,
109121
},
110122
"display_name": {
111123
Type: schema.TypeString,
112124
Optional: true,
125+
Computed: true,
126+
ForceNew: true,
113127
},
114128
},
115129
},
@@ -142,10 +156,12 @@ func DBSystemResource() *schema.Resource {
142156
"backup_subnet_id": {
143157
Type: schema.TypeString,
144158
Optional: true,
159+
Computed: true,
145160
ForceNew: true,
146161
},
147162
"cluster_name": {
148163
Type: schema.TypeString,
164+
Computed: true,
149165
Optional: true,
150166
ForceNew: true,
151167
},

0 commit comments

Comments
 (0)