Hallo,
die Extension hat sich upgedatet und das ist gut, bloß durch die Änderung der Datenbank sind jetzt alle Ausnahmen für die Events weg
Das problem genauer:
in Contao(2.11.x) mit der Extension calendar_extended(1.0.11) wurden mehrere Events mit Ausnahmen angelegt. Nach dem Upgrade auf Contao 3.2.7 und nach dem Update der Extension auf die Version 3.2.0 sind die Ausnahmen bei den Events weg. Der Grund ist, die Datenbank hat sich geändert und die Ausnahme-Arrays werden anders gespeichert.
Array mit Ausnahmen vorher:
tabelle: tl_calendar_events feld: repeatExceptions
Code:
a:7:{
i:0;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1398470400";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
i:1;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1398988800";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
i:2;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1399075200";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
i:3;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1399593600";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
i:4;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1399680000";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
i:5;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1400198400";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
i:6;a:1:{s:6:"values";a:5:{s:9:"exception";s:10:"1400284800";s:6:"action";s:4:"move";s:13:"new_exception";s:0:"";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"20:00";}}
}
Array mit Ausnahmen in der neuen Version:
tabelle: tl_calendar_events feld: repeatExceptions und exceptionList
Code:
repeatExceptions
a:2:{
i:0;a:6:{s:9:"exception";s:10:"1398596400";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"12:00";s:6:"action";s:4:"move";s:13:"new_exception";s:6:"0 days";s:6:"reason";s:4:"Test";}
i:1;a:6:{s:9:"exception";s:10:"1398682800";s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"12:00";s:6:"action";s:4:"move";s:13:"new_exception";s:6:"0 days";s:6:"reason";s:5:"Test2";}
}
exceptionList
a:2:{
i:1398556800;a:7:{s:9:"exception";i:1398556800;s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"12:00";s:6:"action";s:4:"move";s:13:"new_exception";s:6:"0 days";s:6:"reason";s:4:"Test";s:14:"exception_date";s:10:"2014-04-27";}
i:1398643200;a:7:{s:9:"exception";i:1398643200;s:9:"new_start";s:5:"11:00";s:7:"new_end";s:5:"12:00";s:6:"action";s:4:"move";s:13:"new_exception";s:6:"0 days";s:6:"reason";s:5:"Test2";s:14:"exception_date";s:10:"2014-04-28";}
}
Es sind schon viele Änderungen in den Arrays, daher die Frage, gibt es eine Möglichkeit die Ausnahmen aus der alten Tabelle in die neue Tabelle zu übertragen?
Danke und LG Gregor
Lesezeichen