Hi greyfox,
(A)
if it was the very first attempt to process step #5526: I can't image what went wrong.
You may try to declare a primary by hand, just for diagnosis:
SQL> alter table your_ilias_database.book_obj_use_book add constraint xyz primary key (obj_id, book_obj_id);
This should work, if not: you should get an idea of what is wrong.
*IF* it works, you should remove this primary key - see below in (B).
(B)
If it was NOT the very first attempt, the primary key may exists already => then step #5526 (if executed again) gets error 1068:
ERROR 1068 (42000): Multiple primary key defined
This could happen if the update process war disrupted anyhow AFTER the execution of the alter statement, but BEFORE the successful execution of this very step could be written to the settings.
I guess: step 5526 is the nominated next step to be done actually?
If so, check the existance of the primary key with:
SQL> show index on your_ilias_database.book_obj_use_book;
You may get (positively):
+-------------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-------------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| book_obj_use_book | 0 | PRIMARY | 1 | obj_id | A | 0 | NULL | NULL | | BTREE | | |
| book_obj_use_book | 0 | PRIMARY | 2 | book_ref_id | A | 0 | NULL | NULL | | BTREE | | |
+-------------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
2 rows in set (0.000 sec)
Now you can do either -
drop the primary key:
SQL> alter table your_ilias_database.book_obj_use_book drop primary key;
or -
step over to next step (#5527) by modifying the settings:
SQL> update your_ilias_database.settings set value = '5527' where module = 'common' and keyword = 'db_version' and value = '5526';
wbr