aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-09 04:55:43 -0700
committerfriendica <info@friendica.com>2013-09-09 04:55:43 -0700
commit0565a6ef01b7c513be8ee90f805867eb2ed664e8 (patch)
treef3d6d2cec435c519b9c3b17cfdc2aaecb74a8683 /install/update.php
parent25a5a5ff4dd457398d762f0ff92f01b134b92eaa (diff)
downloadvolse-hubzilla-0565a6ef01b7c513be8ee90f805867eb2ed664e8.tar.gz
volse-hubzilla-0565a6ef01b7c513be8ee90f805867eb2ed664e8.tar.bz2
volse-hubzilla-0565a6ef01b7c513be8ee90f805867eb2ed664e8.zip
change primary key on updates table
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index 36a85afec..1b6a2218e 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1067 );
+define( 'UPDATE_VERSION' , 1068 );
/**
*
@@ -775,3 +775,10 @@ ADD INDEX ( `site_access` )");
return UPDATE_FAILED;
}
+function update_r1067() {
+ $r = q("ALTER TABLE `updates` DROP PRIMARY KEY , ADD `ud_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST, ADD INDEX ( `ud_hash` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+