Skip to content

Commit b5e752d

Browse files
committed
add upgrade doc for breaking change
1 parent 0e7ae94 commit b5e752d

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ intended for Terraform 0.12.x is [v4.5.0](https://registry.terraform.io/modules/
1313

1414
## Upgrading
1515

16-
The current version is 4.X. The following guides are available to assist with upgrades:
16+
The current version is 8.X. The following guides are available to assist with upgrades:
1717

18+
- [8.0 -> 9.0](./docs/upgrading_to_bigquery_v9.0.md)
19+
- [7.0 -> 8.0](./docs/upgrading_to_bigquery_v8.0.md)
1820
- [3.0 -> 4.0](./docs/upgrading_to_bigquery_v4.0.md)
1921
- [2.0 -> 3.0](./docs/upgrading_to_bigquery_v3.0.md)
2022
- [1.0 -> 2.0](./docs/upgrading_to_bigquery_v2.0.md)

docs/upgrading_to_bigquery_v9.0.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Upgrading to BigQuery v9.0
2+
3+
- The supported provider has been updated to v5.3
4+
- `require_partition_filter` has been deprecated under the `time_partitioning` block and can be used at the top level with the same name instead. (hashicorp/terraform-provider-google#16238)
5+
6+
## Migration Instructions
7+
8+
In the previous release, `require_partition_filter` was a part of the `time_partitioning` block on a `materialized_views` object.
9+
10+
```hcl
11+
module "bigquery" {
12+
source = "terraform-google-modules/bigquery/google"
13+
version = "~> 8.0"
14+
....
15+
materialized_views = [
16+
{
17+
view_id = "foo",
18+
....
19+
time_partitioning = {
20+
....
21+
require_partition_filter = true,
22+
....
23+
},
24+
}
25+
],
26+
...
27+
}
28+
```
29+
30+
In the new release, `require_partition_filter` is a top-level field in the `materialized_views` object.
31+
32+
```hcl
33+
module "bigquery" {
34+
source = "terraform-google-modules/bigquery/google"
35+
version = "~> 9.0"
36+
....
37+
materialized_views = [
38+
{
39+
view_id = "foo",
40+
....
41+
require_partition_filter = true,
42+
time_partitioning = {
43+
....
44+
},
45+
},
46+
],
47+
...
48+
}
49+
```

0 commit comments

Comments
 (0)