Hi List, is it save to remove old update functions from module.install. E.g. is it safe to remove D5-based update functions in D6 versions? Thanks, Eric
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 As far as I know, updating by more than one major release at once is not supported in core (old update functions are removed from newer branches) - - so you can probably do the same in contrib. On 08.12.2008 19:25, Eric-Alexander Schaefer wrote:
Hi List,
is it save to remove old update functions from module.install. E.g. is it safe to remove D5-based update functions in D6 versions?
Thanks, Eric
- -- Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare, The lone and level sands stretch far away. - --------------------------------------------- AOL: realarancaytar / 282026638 XMPP: arancaytar.ilyaran@gmail.com PGP: http://ermarian.net/downloads/0x27CA5C74 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkk9aCgACgkQeJewkCfKXHS/fwCdGpOlpNYuxdAnLjTZPQirdP7e scgAoPS5myg7Z4H+zGRWnEOXQjjqblIk =9xFd -----END PGP SIGNATURE-----
On 08 Dec 2008, at 8:32 PM, Arancaytar wrote:
As far as I know, updating by more than one major release at once is not supported in core (old update functions are removed from newer branches) - - so you can probably do the same in contrib.
d6 has a special hook for this, something like hook_updates_removed
On Mon, Dec 8, 2008 at 10:36 AM, Adrian Rossouw <adrian@bryght.com> wrote:
On 08 Dec 2008, at 8:32 PM, Arancaytar wrote:
As far as I know, updating by more than one major release at once is not supported in core (old update functions are removed from newer branches) - - so you can probably do the same in contrib.
d6 has a special hook for this, something like hook_updates_removed
not according to api.drupal.org... if it really exists then we need to update http://drupal.org/node/217912 andrew
Drupal core does keep the code for two major version updates. However, that full 2-version upgrade path is not well-tested since core developers rarely do it. Updates sometimes use the API at the time, and the API can change. This could potentially be covered by unit tests. So go ahead and try upgrading 2-versions if you need to, but keep a backup. For modules, you should provide what you can support. Keeping 2 major releases is a good place to start, but feel free to do what works for you and your module's users. -Neil On Mon, Dec 8, 2008 at 10:32 AM, Arancaytar <arancaytar.ilyaran@gmail.com> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
As far as I know, updating by more than one major release at once is not supported in core (old update functions are removed from newer branches) - - so you can probably do the same in contrib.
On 08.12.2008 19:25, Eric-Alexander Schaefer wrote:
Hi List,
is it save to remove old update functions from module.install. E.g. is it safe to remove D5-based update functions in D6 versions?
Thanks, Eric
- -- Nothing beside remains. Round the decay Of that colossal wreck, boundless and bare, The lone and level sands stretch far away. - --------------------------------------------- AOL: realarancaytar / 282026638 XMPP: arancaytar.ilyaran@gmail.com PGP: http://ermarian.net/downloads/0x27CA5C74 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkk9aCgACgkQeJewkCfKXHS/fwCdGpOlpNYuxdAnLjTZPQirdP7e scgAoPS5myg7Z4H+zGRWnEOXQjjqblIk =9xFd -----END PGP SIGNATURE-----
-- Neil Drumm http://delocalizedham.com
Quoting Eric-Alexander Schaefer <eric.schaefer@eas-consulting.de>:
Hi List,
is it save to remove old update functions from module.install. E.g. is it safe to remove D5-based update functions in D6 versions?
If you state that to upgrade from version 5.x-1.0 you must upgrade to version 5.x-1.N where N is the latest version then maybe it might be OK. It depends on the user base and the expectations of the module. -- Earnie http://r-feed.com Make a Drupal difference and review core patches. -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
participants (6)
-
Adrian Rossouw -
andrew morton -
Arancaytar -
Earnie Boyd -
Eric-Alexander Schaefer -
Neil Drumm