Migration von 5.0 auf 5.1 (und 5.2) läuft in 5.1.21 und 5.1.27 auf Fehler
Beschreibung
Die Migrationen 5.1.21 und 5.1.27 sind als Bugfix in 5.0 portiert worden und verwenden dort das datumsbasierte Namensschema, daher werden sie beim Update auf 5.1 noch mal ausgeführt. Das läuft aber auf (separate, aber gleichartige) Fehler:
== Migrating 5.1.21 ===========================================================
Add missing indices on some tables
-------------------------------------------------------------------------------
In StudipPDO.class.php line 169:
[PDOException (42000)]
SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name
'range_id'
Exception trace:
PDO->exec() at lib/classes/StudipPDO.class.php:169
StudipPDO->exec() at db/migrations/5.1.21_missing_indices_v50.php:12
== Migrating 5.1.27 ===========================================================
Alter cw_user_progresses table, add index for block_id
-------------------------------------------------------------------------------
In StudipPDO.class.php line 169:
[PDOException (42000)]
SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name
'block_id'
Exception trace:
PDO->exec() at lib/classes/StudipPDO.class.php:169
StudipPDO->exec() at db/migrations/5.1.27_add_index_to_cw_user_progresses_v50.php:13