Skip to content

Commit

Permalink
make bigquery dataset dataset_id forcenew (#4726) (#8973)
Browse files Browse the repository at this point in the history
* make bigquery dataset dataset_id forcenew

* make project_id and datasetReference input true as well

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Apr 21, 2021
1 parent 14f347d commit 025dc40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changelog/4726.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
```release-note:bug
bigquery: fixed `dataset_id` to force new resource if name is changed.
```
```release-note:breaking-change
bigquery: updating `dataset_id` or `project_id` in `google_bigquery_dataset` will now recreate the resource
```
1 change: 1 addition & 0 deletions google/resource_big_query_dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func resourceBigQueryDataset() *schema.Resource {
"dataset_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validateDatasetId,
Description: `A unique ID for this dataset, without the project name. The ID
must contain only letters (a-z, A-Z), numbers (0-9), or
Expand Down

0 comments on commit 025dc40

Please sign in to comment.