diff options
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/install/update.php b/install/update.php index 051090768..f02676e2a 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1050 ); +define( 'UPDATE_VERSION' , 1051 ); /** * @@ -609,4 +609,12 @@ function update_r1049() { if($r) return UPDATE_SUCCESS; return UPDATE_FAILED; -}
\ No newline at end of file +} + +function update_r1050() { + $r = q("ALTER TABLE `xtag` DROP PRIMARY KEY , ADD `xtag_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST , ADD INDEX ( `xtag_hash` ) "); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |