Open laiminhtrung1997 opened 1 week ago
For usage with postgresql, the data type should be 'TEXT' instead of longblob, as coded here:
rel-11_0 Kernel/System/DB/postgresql.pm, lines 954-957
# performance option
elsif ( $Tag->{Type} =~ /^longblob$/i ) {
$Tag->{Type} = 'TEXT';
}
However, if SQL is executed directly, such a type conversion does not take place. It has to be thought about where to best place a fix for this problem.
Hi @stefanhaerter
I customized the file UpgradeTo11.pm
to text
instead of longblob
to temporarily handle this error. Do you have a plan to fix it?
Hi @laiminhtrung1997,
thank you for putting in the work and testing this out =) I do have a plan, which is the following: There is a SQL processor mechanism in place which receives the statement as XML and converts it to SQL which fits the used database. I am currently working on implementing usage of the respective mechanism in the console command. I am confident that I can provide it within the next days.
@stefanhaerter Thank you once again. Can not wait to see that.
Fix is tested (on MariaDB and PostgreSQL) and will as well be included into the next release.
Steps:
${OTOBO_INSTALL}/entrypoint.sh copy_otobo_next
${OTOBO_HOME}/scripts/DBUpdate-to-11.0.pl
perl ${OTOBO_HOME}/bin/otobo.Console.pl Admin::Package::Upgrade ITSMConfigurationManagement
perl ${OTOBO_HOME}/bin/otobo.Console.pl Admin::ITSM::Configitem::UpgradeTo11
Expected:
There are no ERRORs in the logs.