Skip to content

Commit

Permalink
Set the database column type to text for 'Workflow/Experiment/Schedul…
Browse files Browse the repository at this point in the history
…e' (chaos-mesh#4151)

* Set the database column type to text for 'Workflow/Experiment/Schedule'

Signed-off-by: moqimoqidea <moqimoqidea@gmail.com>

* Update CHANGELOG.md with content: Set the database column type to text for 'Workflow/Experiment/Schedule'

Signed-off-by: moqimoqidea <moqimoqidea@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>

---------

Signed-off-by: moqimoqidea <moqimoqidea@gmail.com>
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
Co-authored-by: Yue Yang <g1enyy0ung@gmail.com>
  • Loading branch information
moqimoqidea and g1eny0ung committed Aug 18, 2023
1 parent 683fb71 commit 63d1aa5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For more information and how-to, see [RFC: Keep A Changelog](https://github.com/

### Changed

- Nothing
- Set the database column type to text for 'Workflow/Experiment/Schedule' [#4151](https://github.com/chaos-mesh/chaos-mesh/pull/4151)

### Deprecated

Expand Down
2 changes: 1 addition & 1 deletion pkg/dashboard/core/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ type Event struct {
Kind string `json:"kind"`
Type string `json:"type"`
Reason string `json:"reason"`
Message string `json:"message"`
Message string `gorm:"type:text;size:32768" json:"message"`
}
2 changes: 1 addition & 1 deletion pkg/dashboard/core/experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type ExperimentStore interface {
// Experiment represents an experiment instance. Use in db.
type Experiment struct {
ExperimentMeta
Experiment string `gorm:"size:4096"` // JSON string
Experiment string `gorm:"type:text;size:32768"` // JSON string
}

// ExperimentMeta defines the metadata of an experiment. Use in db.
Expand Down
2 changes: 1 addition & 1 deletion pkg/dashboard/core/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type ScheduleStore interface {
// Schedule represents a schedule instance. Use in db.
type Schedule struct {
ScheduleMeta
Schedule string `gorm:"size:4096"` // JSON string
Schedule string `gorm:"type:text;size:32768"` // JSON string
}

// ScheduleMeta defines the metadata of a schedule instance. Use in db.
Expand Down

0 comments on commit 63d1aa5

Please sign in to comment.