aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2015-01-28 17:40:39 -0800
committerHabeas Codice <habeascodice@federated.social>2015-01-28 17:40:39 -0800
commitd59bd31a682a58e0d34a66e06ce8f504189f98d5 (patch)
tree3a34b706f63f8f41bb76c5a049f3bc356d8c265f /install/update.php
parent1a537888333afb052e9eb4954091fd163f5b78d1 (diff)
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.tar.gz
volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.tar.bz2
volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php13
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