-
Notifications
You must be signed in to change notification settings - Fork 79
postgresql_schema: Add drop_cascade option. #108
Conversation
774915e
to
4c6ac2f
Compare
@@ -196,6 +196,32 @@ func TestAccPostgresqlSchema_Database(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func TestAccPostgresqlSchema_DropCascade(t *testing.T) { | |||
var testAccPostgresqlSchemaConfig = ` | |||
resource "postgresql_schema" "test_restrict" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resource "test_restrict" but drop_cascade is true
I think it might be better to name resource as "test_cascade"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I changed the test behavior in the middle but not the resource name !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
This allows to delete cascade all dependent objects while deleting a schema.
4c6ac2f
to
26b84d8
Compare
@cyrilgdn |
AFAIK yes, I also tried to create this test (that's why the naming was not coherent) and tried this |
@navi86 Are you agree to merge it like that? I want to create a new release (with this feature inside) and Hashicorp devs will be OOO for the end of the year so it'd be great if I can ask them today. |
sure, LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This allows to delete cascade all dependent objects while deleting a schema.
fix #101