I have a problem with you that I would like to upgrade OTRS from 4.0 to 5.0.2. When I try to update the database, I get the following error message:
Code: Select all
Step 3 of 16: Migrate Database Column Types...[Fri Oct 18 12:21:22 2019] DBUpdate-to-5.pl: DBD::Pg::db do failed: ERROR: cannot alter type of a column used by a view or rule
[Fri Oct 18 12:21:22 2019] DBUpdate-to-5.pl: DETAIL: rule _RETURN on view jegyek depends on column "id" at /opt/otrs/Kernel/System/DB.pm line 449.
ERROR: OTRS-DBUpdate-to-5.pl-10 Perl: 5.14.2 OS: linux Time: Fri Oct 18 12:21:22 2019
Message: ERROR: cannot alter type of a column used by a view or rule
DETAIL: rule _RETURN on view jegyek depends on column "id", SQL: 'ALTER TABLE ticket ALTER id TYPE BIGINT'
Traceback (30134):
Module: main::_MigrateDatabaseColumnTypes Line: 330
Module: scripts/DBUpdate-to-5.pl Line: 158
ERROR: OTRS-DBUpdate-to-5.pl-10 Perl: 5.14.2 OS: linux Time: Fri Oct 18 12:21:22 2019
Message: Error during execution of 'ALTER TABLE ticket ALTER id TYPE BIGINT'!
Traceback (30134):
Module: main::_MigrateDatabaseColumnTypes Line: 332
Module: scripts/DBUpdate-to-5.pl Line: 158
error.
[Fri Oct 18 12:21:22 2019] DBUpdate-to-5.pl: Died at scripts/DBUpdate-to-5.pl line 163.
I looked at the given line in the /Kernel/System/DB.pl file, but it contains the structure I think.
Please help what's the problem.
Thanks in advance!
Have a nice day!