Set SQL type to Data field in deploymentData structure.
Context
While running the start simulation action, the actions framework threw an error when saving the deployment data.
Error:
(/home/$USER/go/src/gitlab.com/ignitionrobotics/web/cloudsim/pkg/actions/deployment_data.go:115)
[2021-03-01 17:59:51] Error 1406: Data too long for column 'data' at row 1
Data:
{
"PlatformGetter":null,
"ServicesGetter":null,
"GroupID":"c01ce1fb-afe8-4fbd-ae1d-043aebbff9a0",
"GazeboServerPod":null,
"CreateMachinesInput":null,
"CreateMachinesOutput":null,
"ParentGroupID":null,
"UpstreamName":"",
"GazeboServerIP":"",
"WebsocketConnection":null
}
Change
This MR sets text
SQL type to the Data
field saving the json object described above.
It also adds text
SQL tye to the Error
field in the DeploymentError
structure.
Other information
SQL data type information:
TEXT: Holds a string with a maximum length of 65,535 bytes
Additional documentation
Edited by Marcos Huck