Skip to content

Commit

Permalink
Change times to bigints (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinapathak authored Mar 20, 2019
1 parent e168f5a commit d11691d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [v0.2.5]
- Modified record schema in `db` package

## [v0.2.4]
- Modified record schema in `db` package

Expand Down Expand Up @@ -56,7 +59,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Initial creation
- Created `db` and `xvault` package

[Unreleased]: https://github.com/Comcast/codex/compare/v0.2.4...HEAD
[Unreleased]: https://github.com/Comcast/codex/compare/v0.2.5...HEAD
[v0.2.5]: https://github.com/Comcast/codex/compare/v0.2.4...v0.2.5
[v0.2.4]: https://github.com/Comcast/codex/compare/v0.2.3...v0.2.4
[v0.2.3]: https://github.com/Comcast/codex/compare/v0.2.2...v0.2.3
[v0.2.2]: https://github.com/Comcast/codex/compare/v0.2.1...v0.2.2
Expand Down
4 changes: 2 additions & 2 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ type Record struct {
ID int `json:"id" gorm:"type:bigint;AUTO_INCREMENT"`
Type int `json:"type"`
DeviceID string `json:"deviceid" gorm:"not null;index"`
BirthDate time.Time `json:"birthdate" gorm:"type:timestamp;not null;index"`
DeathDate time.Time `json:"deathdate" gorm:"type:timestamp;not null;index"`
BirthDate time.Time `json:"birthdate" gorm:"type:bigint;not null;index"`
DeathDate time.Time `json:"deathdate" gorm:"type:bigint;not null;index"`
Data []byte `json:"data" gorm:"not null"`
}

Expand Down

0 comments on commit d11691d

Please sign in to comment.