PluginUpgradeTask runs before new AO table is created

Frédéric Esnault March 17, 2018

Hi community !

I just ran into an issue with the upgrade task of my plugin.

When I install the new plugin version in our Jira instance, the upgrade task (which depends on a new AO table) fails with an error saying the table does not exist. And just after the upgrade task failure message, the logs shows that AO is being created for the plugin....

I'd like to know if there is a way to ask the AO creation to occur before the PluginUpgradeTask, or call it from the upgrade task ?

Or must I use the ActiveObjectsUpgradeTask (but not sure in which order it will run...) ?

Thanks for your answers, guys !

1 answer

0 votes
Jakob Jónasson August 21, 2019

@Frédéric Esnault Any solution to this? I have the same problem with my upgrade task which is populating a new table with QueryDsl.

 

Reading anything from the table with active objects before I insert with qureydsl worked for me.

Frédéric Esnault August 22, 2019

@Jakob Jónasson  I used ActiveObjectsUpgradeTask instead of PluginUpgradeTask and it worked.

Like Jakob Jónasson likes this

Suggest an answer

Log in or Sign up to answer