Skip to content

Commit

Permalink
fix(product-changelog): add version field
Browse files Browse the repository at this point in the history
  • Loading branch information
quanghuynguyen1902 committed Jan 16, 2024
1 parent 220ca52 commit a14d7fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- +migrate Up
ALTER TABLE product_changelogs ADD COLUMN IF NOT EXISTS version text;

-- +migrate Down
ALTER TABLE product_changelogs DROP COLUMN IF EXISTS version;
1 change: 1 addition & 0 deletions pkg/model/product_bot_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type ProductChangelogs struct {
ThumbnailUrl string `json:"thumbnail_url"`
FileName string `json:"file_name"`
IsExpired bool `json:"is_expired"`
Version string `json:"version"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Expand Down

0 comments on commit a14d7fc

Please sign in to comment.