Update Database on Plugin update (1 post)

  1. aviaxis
    Posted 5 years ago #


    I have an issue with my plugin and I would be very thankful if somebody here could help me.

    Plugin version 1.0.2 create a table with 2 columns in the blog's DB. I know... I should have used wordpress tables but I thought this was the best solution for me at the time.

    Now, with version 1.1.0 I need a third column in that table.

    Is there a hook, or an action or something that is triggered when the plugin is updated? So I could write some 'alter table add column balablaa...' code in my plugin when it is updated from some older version?

    Thak You very much!

Topic Closed

This topic has been closed to new replies.

About this Topic