Skip to content

Commit 8dd9049

Browse files
committed
Add support for VM 20c Preview in DBAAS
1 parent d374a74 commit 8dd9049

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Added
44
- Support for Handling the VM (hypervisor) reboots info shared with the customer
5+
- Support for VM 20c Preview in DBAAS
56

67
## 3.66.0 (March 11, 2020)
78

oci/database_db_version_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func TestDatabaseDbVersionResource_basic(t *testing.T) {
5959
resource.TestCheckResourceAttr(datasourceName, "compartment_id", compartmentId),
6060
resource.TestCheckResourceAttrSet(datasourceName, "db_versions.#"),
6161
resource.TestCheckResourceAttrSet(datasourceName, "db_versions.0.is_latest_for_major_version"),
62+
resource.TestCheckResourceAttrSet(datasourceName, "db_versions.0.is_preview_db_version"),
6263
resource.TestCheckResourceAttrSet(datasourceName, "db_versions.0.supports_pdb"),
6364
resource.TestCheckResourceAttrSet(datasourceName, "db_versions.0.version"),
6465

oci/database_db_versions_data_source.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func DatabaseDbVersionsDataSource() *schema.Resource {
4444
Type: schema.TypeBool,
4545
Computed: true,
4646
},
47+
"is_preview_db_version": {
48+
Type: schema.TypeBool,
49+
Computed: true,
50+
},
4751
"supports_pdb": {
4852
Type: schema.TypeBool,
4953
Computed: true,
@@ -137,6 +141,10 @@ func (s *DatabaseDbVersionsDataSourceCrud) SetData() error {
137141
dbVersion["is_latest_for_major_version"] = *r.IsLatestForMajorVersion
138142
}
139143

144+
if r.IsPreviewDbVersion != nil {
145+
dbVersion["is_preview_db_version"] = *r.IsPreviewDbVersion
146+
}
147+
140148
if r.SupportsPdb != nil {
141149
dbVersion["supports_pdb"] = *r.SupportsPdb
142150
}

website/docs/d/database_db_versions.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ The following attributes are exported:
4949
The following attributes are exported:
5050

5151
* `is_latest_for_major_version` - True if this version of the Oracle Database software is the latest version for a release.
52+
* `is_preview_db_version` - True if this version of the Oracle Database software is the preview version.
5253
* `supports_pdb` - True if this version of the Oracle Database software supports pluggable databases.
5354
* `version` - A valid Oracle Database version.
5455

0 commit comments

Comments
 (0)