|
@@ 75-80 (lines=6) @@
|
| 72 |
|
|
| 73 |
|
$msgTable = 'smallworld_messages'; |
| 74 |
|
$column = 'message'; |
| 75 |
|
if ($successA = $tables->useTable($msgTable)) { // if this returns false, there is no table |
| 76 |
|
$attributes = $tables->getColumnAttributes($msgTable, $column); |
| 77 |
|
if (false === mb_strpos($attributes, ' TEXT')) { // assumes it's already been updated if TEXT found |
| 78 |
|
$successA = $tables->alterColumn($msgTable, $column, ' TEXT '); |
| 79 |
|
} |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
$comTable = 'smallworld_comments'; |
| 83 |
|
$column = 'comment'; |
|
@@ 84-89 (lines=6) @@
|
| 81 |
|
|
| 82 |
|
$comTable = 'smallworld_comments'; |
| 83 |
|
$column = 'comment'; |
| 84 |
|
if ($successB = $tables->useTable($comTable)) { // if this returns false, there is no table |
| 85 |
|
$attributes = $tables->getColumnAttributes($comTable, $column); |
| 86 |
|
if (false === mb_strpos($attributes, ' TEXT')) { // assumes it's already been updated if 'TEXT' not found |
| 87 |
|
$successB = $tables->alterColumn($comTable, $column, ' TEXT '); |
| 88 |
|
} |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
// now create smallworld_settings table if it doesn't exist |
| 92 |
|
$sTable = 'smallworld_settings'; |