diff options
author | friendica <info@friendica.com> | 2015-01-27 20:00:43 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-27 20:00:43 -0800 |
commit | a2cdd1499c968c31ae1b95933231f80be5fc639b (patch) | |
tree | 231780d92f46a0f265e79fa478c3b7e7fc84d085 /install/update.php | |
parent | 0bfbe6d61d3c6250a162a29d2cdb0ec78ad02f1d (diff) | |
parent | 145b30adfc21b7f29d1431ebd1e2e0f4ebd853bf (diff) | |
download | volse-hubzilla-a2cdd1499c968c31ae1b95933231f80be5fc639b.tar.gz volse-hubzilla-a2cdd1499c968c31ae1b95933231f80be5fc639b.tar.bz2 volse-hubzilla-a2cdd1499c968c31ae1b95933231f80be5fc639b.zip |
Merge branch 'master' into tres
Conflicts:
include/socgraph.php
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 8cd25f1bf..346b2c25a 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1134 ); +define( 'UPDATE_VERSION' , 1135 ); /** * @@ -1537,3 +1537,14 @@ function update_r1133() { return UPDATE_FAILED; } + +function update_r1134() { + if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { + $r = q("ALTER TABLE xlink ADD xlink_static numeric(1) NOT NULL DEFAULT '0', create index xlink_static on xlink ( \"xlink_static\" ) "); + } + else + $r = q("ALTER TABLE xlink ADD xlink_static TINYINT( 1 ) NOT NULL DEFAULT '0', ADD INDEX ( xlink_static ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +}
\ No newline at end of file |