This commit is contained in:
friendica
2013-07-14 18:52:24 -07:00
parent 0fd83f3fec
commit 12c2cea36f
3 changed files with 19 additions and 11 deletions

View File

@@ -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;
}
}
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;
}