Thema Frühjahrsputz und Migration, es geht um die Funktion
effectively_installed()
. Soweit ich das verstanden habe, ist das eigentlich nur dann notwendig, wenn man bei der Installation einer Ext und der Ausführung der Migration eine alte 3.0 Installation bzw. besser gesagt eine alte 3.0 DB berücksichtigen muss. In der 3.1+ Ära ist das aber "eigentlich" nicht notwendig, wenn man keine 3.0 Strukturen mehr berücksichtigen muss. Allerdings finden sich hierzu widersprüchliche Informationen in der Ext Doku.Im Kapitel "Extensions » Tutorial: Migrations":
https://area51.phpbb.com/docs/dev/3.3.x ... migrations
Dort heisst es:
The effectively_installed() method is used primarily to help transition from a previous database installer method (such as a MOD that used UMIL) to migrations. However, we recommend using it all the time to ensure safer migrations.
Im separaten Kapitel "Migrations » Getting started":
https://area51.phpbb.com/docs/dev/3.3.x ... arted.html
Dort heisst es:
If it returns true, the Migration is marked as installed without applying any changes. This function is not required and typically should not be needed. This is only needed if you are trying to allow updates from a system that may currently be installed, but where migrations haven’t been run yet (e.g. updating a mod from 3.0.x to 3.1.x).
Es geht um exakt die gleiche Funktion, aber mit gegensätzlichen Aussagen. Weiss jemand näheres, bzw. weiss jemand welcher Abschnitt denn nun gültig ist? Technisch sehe ich keinen Grund mehr, weiterhin
effectively_installed()
zu benutzen, wenn es keine 3.0 Vorgeschichte gibt.