@crythias
Yes, how to solve this issue because other steps went well during update process. Its an issue for good .sql file to run in right order to do update database. I believe that i used wrong sql file or misorder it.
What i did so far,
STEP 1: update as per guide
Code: Select all
cat scripts/DBUpdate-to-4.postgresql.sql | psql --set ON_ERROR_STOP=on --single-transaction otrs otrs
scripts/DBUpdate-to-4.pl
issue after step 1: Not able to create ticket
Error log:
Code: Select all
Need TicketNumber!
Need TicketID!
Need ObjectID!
ERROR: null value in column "valid_id" violates not-null constraint
------------------------------------------------------------------------------------------------------------------------------------
STEP 2:
To execute these scripts to create ticket
Code: Select all
psql otrs < scripts/database/otrs-schema.postgresql.sql
psql otrs < scripts/database/otrs-initial_insert.postgresql.sql
psql otrs < scripts/database/otrs-schema-post.postgresql.sql
SAME issue after step 2: Not able to create ticket
Code: Select all
Error log:
Need TicketNumber!
Need TicketID!
Need ObjectID!
ERROR: null value in column "valid_id" violates not-null constraint
------------------------------------------------------------------------------------------------------------------------------------
STEP 3:
I did this sql to create ticket:
Code: Select all
ALTER TABLE ticket DROP valid_id cascade
Issue Solved to create ticket BUT there is no valid_id in ticket table,
which is not normal. So, its a big problem.
Next ??
I mean to make sure all tables with all joins in database without any loss of data.