Browse CVS Repository
Diff of /xoonips-library/xnpbulletin/install_funcs.php
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 152 |
|
|
| 153 |
global $xoopsDB; |
global $xoopsDB; |
| 154 |
switch ($oldversion) { //remember that version is multiplied with 100 to get an integer |
switch ($oldversion) { //remember that version is multiplied with 100 to get an integer |
| 155 |
|
case 200: |
| 156 |
|
$table = $xoopsDB->prefix("xnpbulletin_item_detail_child_author"); |
| 157 |
|
$sql = "ALTER TABLE $table ADD author_affiliation_translation varchar(255) NOT NULL"; |
| 158 |
|
$result = $xoopsDB->query($sql); |
| 159 |
|
if( !$result ){ |
| 160 |
|
echo "ERROR: " . $xoopsDB->error(); |
| 161 |
|
return false; |
| 162 |
|
} |
| 163 |
|
|
| 164 |
default: |
default: |
| 165 |
return true; |
return true; |
| 166 |
} |
} |
|
|
Legend:
| Removed from v.1.3 |
|
| changed lines |
| |
Added in v.1.4 |
|
|
|