Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to not drop MySQL and PostgreSQL DB when storage_mb value is changed #1532

Merged
merged 3 commits into from
Jul 10, 2018

Conversation

WodansSon
Copy link
Collaborator

@WodansSon WodansSon commented Jul 10, 2018

Fixes issue #1522
Test Results

(fixes #1522 )

@WodansSon WodansSon added this to the 1.9.0 milestone Jul 10, 2018
Copy link

@JunyiYi JunyiYi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple change. LGTM

@tombuildsstuff
Copy link
Contributor

@jeffreyCline can you run all of the Postgres/MySQL tests for this?

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the docs issue is fixed this otherwise LGTM 👍🏼

@@ -138,7 +138,6 @@ func resourceArmPostgreSQLServer() *schema.Resource {
"storage_mb": {
Type: schema.TypeInt,
Required: true,
ForceNew: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update the docs to mention that this is no longer ForceNew? (And above)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I thought about that after I did the initial push. I'll update those now.

Copy link
Collaborator Author

@WodansSon WodansSon Jul 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just looked at the documentation and the original text does not mention that it will ForceNew so I believe this is a no op:

  • storage_mb - (Required) Max storage allowed for a server. Possible values are between 5120 MB(5GB) and 1048576 MB(1TB) for the Basic SKU and between 5120 MB(5GB) and 4194304 MB(4TB) for General Purpose/Memory Optimized SKUs. For more information see the product documentation.

@katbyte
Copy link
Collaborator

katbyte commented Jul 10, 2018

@tombuildsstuff I am running them now

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jeffreyCline,

Outside the docs requiring an update this LGTM 👍

@katbyte
Copy link
Collaborator

katbyte commented Jul 10, 2018

tests pass:
screen shot 2018-07-10 at 14 29 52
screen shot 2018-07-10 at 14 29 48

@katbyte katbyte merged commit 4a94648 into master Jul 10, 2018
@katbyte katbyte deleted the b-mysql-postgre-update branch July 10, 2018 21:36
katbyte added a commit that referenced this pull request Jul 10, 2018
@ghost
Copy link

ghost commented Mar 30, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MySQL and PG should be inplace update when updating storage etc.
4 participants