How to up the database table when my application is installed or enabled?

Hello everyone :slight_smile:

I would like to up/install the database table when my application is installed / enabled.

How I do it ?

Thanks in advance :slight_smile:

Thanks @Cult :slight_smile:

Hmmmโ€ฆ I donโ€™t understand your message :no_mouth:

I have already created a migration file :slight_smile:

I am searching how to trigger this file when I install my application :slight_smile:

update the version in appinfo/info.xml and the update screen will trigger automatically

Yes @nickvergessen have the solution, I thought you wanted to update an already existing database ;p.

Thanks I am testing that !!! :slight_smile:

I created my first migration with the version 0000 and in my info.xml it writes โ€œ0.0.10โ€.

Can I upgrade to โ€œ0.8.0โ€ in info.xml file and generate a migration file with the version 0080 ?

Ah no ! ^^

Iโ€™m sorry, I misspoke ^^โ€™

On the dev environment. I uninstall my application, I cloned the project then I install it again with the occ command : occ app:install my_application and I donโ€™t see my new database table :confused:

Edit 08/07/2021 : My application is insalled on another server and the table was well created. I donโ€™t understand why ?! :open_mouth: