We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

updating fieldtype version

Development and Programming

ender's avatar
ender
1,644 posts
15 years ago
ender's avatar ender

EE 2.1 changes broke parts of one of my custom fieldtypes such that I need to change how the data is stored in the database. I’m looking for a way to run some “update” code after the user has updated my third party code to the next version. The fieldtype API has install and uninstall functions, but these don’t appear to be triggered when the version changes. I can’t find any evidence of an update function. I can certainly do something hack-y but I’d rather go with best practices if there are any here.

Also weird… when I change the version number in my ft.my_fieldtype.php file it updates accordingly on the Add-Ons -> Fieldtypes page in my EE 2.1 CP… however the corresponding record in the exp_fieldtypes table does not update unless I uninstall and reinstall the fieldtype (which of course wipes out any settings and such that might’ve been stored so that’s not really a good idea).

Bugs? I’m doing it wrong? Who knows!

       
ender's avatar
ender
1,644 posts
15 years ago
ender's avatar ender

so… not possible then? feature request time?

       
John Morton's avatar
John Morton
84 posts
14 years ago
John Morton's avatar John Morton

Ty, I’m following up on this a year and a half later. Any update that you know of? I agree with your original post; uninstalling and reinstalling a fieldtype is a severe to add functionality to fieldtype.

       
ender's avatar
ender
1,644 posts
14 years ago
ender's avatar ender

nope never heard anything about it and it wasn’t a widespread issue so I just ignored it and manually changed the values as necessary.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.