aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-10-19 16:07:14 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-10-19 16:07:14 -0700
commit57e0bfc5a9d03c6e1f2d8708daf59ecdba0a7ad0 (patch)
treeceb880c1954a20332450b247f717073c592f87fa /install/update.php
parentb49972a623ae8f021899e2732031ba585b79a4ac (diff)
downloadvolse-hubzilla-57e0bfc5a9d03c6e1f2d8708daf59ecdba0a7ad0.tar.gz
volse-hubzilla-57e0bfc5a9d03c6e1f2d8708daf59ecdba0a7ad0.tar.bz2
volse-hubzilla-57e0bfc5a9d03c6e1f2d8708daf59ecdba0a7ad0.zip
add the project name to site info packet
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index ffea36d54..cc8dc6ae5 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1157 );
+define( 'UPDATE_VERSION' , 1158 );
/**
*
@@ -1774,3 +1774,13 @@ function update_r1155() {
function update_r1156() {
return UPDATE_SUCCESS;
}
+
+function update_r1157() {
+ $r1 = q("alter table site add site_project char(255) not null default '' ");
+ $r2 = q("create index site_project on site ( site_project ) ");
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+
+}
+