[Typo3-dev] version checking within extensions

Martin T. Kutschker Martin.T.Kutschker at blackbox.net
Thu Mar 18 16:26:28 CET 2004


Wolfgang Klinger wrote:
>  Hi
> On 15:48 Thu 18 Mar     , Martin T. Kutschker wrote:
> 
>>Hiding the tt_content part in ext_tables.sql is trickier. Any ideas?
> 
>  Hmm, create two ext_tables.sql, one for each version, check the current
>  version and rename/copy the right files in ext_emconf.php...

Argh! Where should the copy code live? Is there any hook I could use?

>  But this should definitely be integrated in 
>  getFieldDefinitions_sqlContent with markers or similar...

Sounds better.

Perhaps

@if TYPO3_VERSION > 3.5

or something like this. The @ is a suggestion for a preprocessor lead-in.

Might come in handy later with DBAL, eg

@if DB = mysql
  @if DB_VERSION > 4.1
  @end
@elseif DB = oracle
@end

Masi





More information about the TYPO3-dev mailing list