diff options
author | Thomas Willingham <founder@kakste.com> | 2012-12-19 19:54:18 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2012-12-19 19:54:18 +0000 |
commit | a2b30f9411f537d9eb15d697970d682869c76a0e (patch) | |
tree | b96702d7ece5d564aaf00cdd950270b0b67ac3e6 /install/update.php | |
parent | 2cfd1a3f085e44d4513fd969bb01be74a59d5784 (diff) | |
parent | 44e70bdca367344c441b1e26e790ac0465953734 (diff) | |
download | volse-hubzilla-a2b30f9411f537d9eb15d697970d682869c76a0e.tar.gz volse-hubzilla-a2b30f9411f537d9eb15d697970d682869c76a0e.tar.bz2 volse-hubzilla-a2b30f9411f537d9eb15d697970d682869c76a0e.zip |
Merge remote-tracking branch 'upstream/master'
Conflicts:
view/tpl/nav.tpl
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index f767c2f22..ad21d9b45 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1002 ); +define( 'UPDATE_VERSION' , 1003 ); /** * @@ -61,3 +61,16 @@ function update_r1001() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + + +function update_r1002() { + $r = q("ALTER TABLE `event` CHANGE `account` `aid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'"); + $r2 = q("alter table `event` drop index `account`, add index (`aid`)"); + + q("drop table contact"); + q("drop table deliverq"); + + if($r && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |