Skip to content

Commit

Permalink
added planmodifier for storage_used and updated at to solve pulumi di…
Browse files Browse the repository at this point in the history
…ff issue (#16)
  • Loading branch information
KnockOutEZ authored Sep 30, 2024
1 parent 0504d6c commit 9707f75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internals/provider/database/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ func (r *databaseResource) Schema(_ context.Context, _ resource.SchemaRequest, r
},
"updated_at": schema.StringAttribute{
Description: "The timestamp when the database was last updated.",
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
Computed: true,
},
"pg_version": schema.StringAttribute{
Expand All @@ -93,6 +96,9 @@ func (r *databaseResource) Schema(_ context.Context, _ resource.SchemaRequest, r
},
"storage_used": schema.Int64Attribute{
Description: "The amount of storage used by the database in bytes.",
PlanModifiers: []planmodifier.Int64{
int64planmodifier.UseStateForUnknown(),
},
Computed: true,
},
"domain": schema.StringAttribute{
Expand Down

0 comments on commit 9707f75

Please sign in to comment.