Skip to content

Commit

Permalink
chore: add inserted_at column for config change and item
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored and moshloop committed Nov 26, 2024
1 parent 0477419 commit c793304
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions schema/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ table "config_changes" {
type = bool
comment = "is_pushed when set to true indicates that the config changes has been pushed to upstream."
}
column "inserted_at" {
null = false
type = timestamptz
default = sql("now()")
}

primary_key {
columns = [column.id]
}
Expand Down Expand Up @@ -345,6 +351,11 @@ table "config_items" {
null = true
type = text
}
column "inserted_at" {
null = false
type = timestamptz
default = sql("now()")
}
primary_key {
columns = [column.id]
}
Expand Down

0 comments on commit c793304

Please sign in to comment.