[TYPO3-core] Quickstart extension in TYPO3 4.0
Franz Holzinger
franz at fholzinger.com
Sat Mar 18 09:49:11 CET 2006
Hello Karsten,
>>+ foreach($update_statements['create_table'] as $string)
>>{ + $GLOBALS['TYPO3_DB']->admin_query($string);
>>+ }
>>Create tables should come before add and change.
>>
>>+ // Importing static tables?
>>Should come before updating tables and fields. Maybe an extension wants
>>to update the static tables like sr_static_info does.
>>
>>
>
>I won't change the order of that code, as it has a proven record of working -
>it is from checkDBupdates() a few lines up in the source. The generated
>statements are independent by the way. So it is not needed to move the create
>before the add/change, because there will never be an add statement for a
>table thatstill has to be created. Similarly the static import is always for
>the one extension, and if you install sr_static_info_tables *today*, it is
>handled the same way, if you import static data.
>
>
Maybe this can be changed later, when it should be needed.
+1
- Franz
More information about the TYPO3-team-core
mailing list