cloudstack/engine
Gabriel Beims Bräscher 9410a70454
schema: increase size of column 'value' at table 'account_details' (#6080)
This PR increases the column value at table account_details from 255 chars to 4096, matching with the value allowed in the API command for updating the configuration of accounts.

When the value length is bigger than 255, the following log is presented right after the updateConfiguration API call:

2022-03-09 17:50:24,627 ERROR [c.c.a.ApiServer] (qtp30578394-234766:ctx-cad18b45 ctx-32e954dd) (logid:0948e203) unhandled exception executing api command: [Ljava.lang.String;@117c6ba7
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: com.mysql.cj.jdbc.ClientPreparedStatement: INSERT INTO account_details (account_details.account_id, account_details.name, account_details.value) VALUES (123, _binary'api.allowed.source.cidr.list', _binary'<huge binary>')
	at com.cloud.utils.db.GenericDaoBase.persist(GenericDaoBase.java:1450)
	at jdk.internal.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	....
	....
	....
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'value' at row 1
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:104)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1092)
	... 83 more


Co-authored-by: Bart Meyers <bart.meyers@cldin.eu>
2022-08-12 23:42:50 +05:30
..
api Updating pom.xml version numbers for release 4.17.1.0-SNAPSHOT 2022-06-06 12:19:44 -03:00
components-api kvm: Updated PowerFlex/ScaleIO storage plugin to support separate (storage) network for Hosts(KVM)/Storage connection. (#6367) 2022-06-27 14:42:51 +05:30
network Updating pom.xml version numbers for release 4.17.1.0-SNAPSHOT 2022-06-06 12:19:44 -03:00
orchestration fix pseudo random behaviour in pool selection (#6307) 2022-06-10 08:06:23 -03:00
schema schema: increase size of column 'value' at table 'account_details' (#6080) 2022-08-12 23:42:50 +05:30
service Updating pom.xml version numbers for release 4.17.1.0-SNAPSHOT 2022-06-06 12:19:44 -03:00
storage kvm: Fix for Revert volume snapshot (#6527) 2022-07-20 11:34:02 +05:30
pom.xml Updating pom.xml version numbers for release 4.17.1.0-SNAPSHOT 2022-06-06 12:19:44 -03:00