[TYPO3-dev] Adding a table to existing extension manually

Christian Ludwig cl at viazenetti.de
Wed Nov 5 12:51:55 CET 2014


Hi Benedikt,

Tables are added and or changed by the database analyzer that can be found in the install tools important actions. Simply click on "Compare current database with specification".
But remember the analyzer needs TCA entries, too.

The easiest way to add tables including TCA, models and repositories ist by using the Extension Builder (extension_builder), that can be installed with the extension manager.

If you want to add tables to an existing extensin I would advice to rename theExtensin folder first, than create a ne extension with exactly the same name as the original extension had. After domain modeling, you will have to merge the two extensions by cherry picking.

Best
Christian

-----Original Message-----
From: Benedikt Wiesnet
Sent: Wednesday, November 05, 2014 10:55 AM
To: typo3-dev at lists.typo3.org
Subject: [TYPO3-dev] Adding a table to existing extension manually

HI *,

I have written an extension for TYPO3 6.2 and need to extend the functionality. For doing this I need a new table in the db and also a model and corresponding repository.

But how can I do this. I have added a CREATE STATEMENT into the ext_tables.sql but when I uninstall the extension from typo3 and install it again, this new table is not being created.

AND how do I map this table to my domain model?

...






More information about the TYPO3-dev mailing list