diff options
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 22c069d2f..55ff4b542 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1049 ); +define( 'UPDATE_VERSION' , 105- ); /** * @@ -601,3 +601,12 @@ function update_r1048() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + + +function update_r1049() { + $r = q("ALTER TABLE `term` ADD `parent_hash` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `term_hash` , ADD INDEX ( `parent_hash` ) "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +}
\ No newline at end of file |