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: