Typo3 10.4.1 Extension Builder: No tables created for new extension

468 views Asked by At

I have a TYPO3 10.4.1 installation (composer mode) on ubuntu 20.04 with php 7.4 and a mariadb database and installed the extension "Extension Builder" (v10-compatibility). When I create a new extension with domain model using the Extension Builder and save it there appears no errors, also when I add it to the composer.json and run the composer require command. However, there are no tables created in the database.

Does anyone has an idea where to start looking for the problem?

Thanks a lot in advance!

1

There are 1 answers

0
Florian Rival On BEST ANSWER

You can add the extension "typo3_console" (composer req helhum/typo3-console) and then add this section in your composer.json :

"scripts": {
    "install-updateschema": [
        "typo3cms database:updateschema"
    ]
}

This will automatically update database schema with a composer install/update.

More information here : https://docs.typo3.org/typo3cms/extensions/typo3_console/5.6.0/CommandReference/Index.html