diff options
author | friendica <info@friendica.com> | 2013-03-06 15:13:54 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-03-06 15:13:54 -0800 |
commit | c5d0da43e57cf812dd3a88b04740728f7ae65523 (patch) | |
tree | 451edffe9046b558cfeff238f218574a5385e9fd /install/update.php | |
parent | 5754d18286b4fbeeea362eea2d95296c83c59a11 (diff) | |
download | volse-hubzilla-c5d0da43e57cf812dd3a88b04740728f7ae65523.tar.gz volse-hubzilla-c5d0da43e57cf812dd3a88b04740728f7ae65523.tar.bz2 volse-hubzilla-c5d0da43e57cf812dd3a88b04740728f7ae65523.zip |
tweaky tweak, plus add share tracking db, and don't show acl for guest postings, and experiment with compressing pcss on the fly
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index afb4b08b9..2d06e406a 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1033 ); +define( 'UPDATE_VERSION' , 1034 ); /** * @@ -410,3 +410,26 @@ KEY `xchan` (`xchan`) return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1033() { + $r = q("CREATE TABLE if not exists `shares` ( +`share_id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , +`share_type` INT NOT NULL DEFAULT '0', +`share_target` INT UNSIGNED NOT NULL DEFAULT '0', +`share_xchan` CHAR( 255 ) NOT NULL DEFAULT '', +KEY `share_type` (`share_type`), +KEY `share_target` (`share_target`), +KEY `share_xchan` (`share_xchan`) +) ENGINE = MYISAM DEFAULT CHARSET = utf8"); + + // if these fail don't bother reporting it + + q("drop table gcign"); + q("drop table gcontact"); + q("drop table glink"); + + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |