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>
Signed-off-by: Kenneth Buck <kenneth.buck@form3.tech>
  • Loading branch information
2 people authored and kenneth-buck-form3 committed Aug 29, 2023
1 parent d27490d commit 17af003
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ For more information and how-to, see [RFC: Keep A Changelog](https://github.com/
- Change `awschaos/*/impl.go` to use `aws_session_token` with static credentials provider so that users can perform awschaos using [temporary AWS credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html) [#4066](https://github.com/chaos-mesh/chaos-mesh/pull/4066)
- Enable consistency for ghcr.io registry [#4091](https://github.com/chaos-mesh/chaos-mesh/pull/4091) [#4134](https://github.com/chaos-mesh/chaos-mesh/pull/4134)
- Prevent mousewheel scroll from changing numeric input values. [#4133](https://github.com/chaos-mesh/chaos-mesh/pull/4133)
- 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 17af003

Please sign in to comment.