diff options
author | friendica <info@friendica.com> | 2014-04-02 15:13:50 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-04-02 15:13:50 -0700 |
commit | 27fec9cb6460a897098bde11b15a9543d09562db (patch) | |
tree | 3031c6c19d90df6bb6f8c4f3efd1c1421a94635b /install/update.php | |
parent | 0a097b833750ad8941dba03e6821c13facebd597 (diff) | |
download | volse-hubzilla-27fec9cb6460a897098bde11b15a9543d09562db.tar.gz volse-hubzilla-27fec9cb6460a897098bde11b15a9543d09562db.tar.bz2 volse-hubzilla-27fec9cb6460a897098bde11b15a9543d09562db.zip |
more efficient public feed fetching
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 55e404e4e..d7a87fad4 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1105 ); +define( 'UPDATE_VERSION' , 1106 ); /** * @@ -1173,3 +1173,12 @@ function update_r1104() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1105() { + $r = q("ALTER TABLE `site` ADD `site_pull` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `site_update` , +CHANGE `site_sync` `site_sync` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', ADD INDEX ( `site_pull` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + |