forked from fgerards/fluidcontent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass.ext_update.php
36 lines (32 loc) · 874 Bytes
/
class.ext_update.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* Class ext_update
* Performs update tasks for extension Fluidcontent
*/
// @codingStandardsIgnoreStart
class ext_update
{
/**
* @return boolean
*/
public function access()
{
return true;
}
/**
* @return string
*/
public function main()
{
$GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_reflection');
$GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_reflection_tags');
$GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_object');
$GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cf_extbase_object_tags');
$GLOBALS['TYPO3_DB']->exec_UPDATEquery(
'tt_content',
'CType = \'fed_fce\'',
['CType' => 'fluidcontent_content']
);
return $GLOBALS['TYPO3_DB']->sql_affected_rows().' rows have been updated';
}
}