Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 13 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
36 | public function alterTable_etablissement() |
||
37 | { |
||
38 | global $xoopsDB; |
||
39 | $tbl = $xoopsDB->prefix('extcal_etablissement'); |
||
40 | |||
41 | $sql = <<<__sql__ |
||
42 | ALTER TABLE `{$tbl}` |
||
43 | CHANGE `desc` `description` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL; |
||
44 | __sql__; |
||
45 | |||
46 | $xoopsDB->queryF($sql); |
||
47 | //echo "<hr>{$sql}<hr>"; |
||
48 | } |
||
49 | //---------------------------------------------------- |
||
53 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.