diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-19 16:18:04 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-19 16:18:04 -0700 |
commit | ea37882b9533b2d6054a36568ef6ab9cc834478e (patch) | |
tree | 1e5ad716071560311bc0f19c5fc8519132e4630c /install/update.php | |
parent | 9f424bb20881841926976417d7eea04c0c14bdb3 (diff) | |
parent | 599a0c66b221f2c3a86462f920856d68630142cd (diff) | |
download | volse-hubzilla-ea37882b9533b2d6054a36568ef6ab9cc834478e.tar.gz volse-hubzilla-ea37882b9533b2d6054a36568ef6ab9cc834478e.tar.bz2 volse-hubzilla-ea37882b9533b2d6054a36568ef6ab9cc834478e.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts:
include/zot.php
install/schema_mysql.sql
install/schema_postgres.sql
install/update.php
mod/zfinger.php
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index dc9377892..d6b543466 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1157 ); +define( 'UPDATE_VERSION' , 1158 ); /** * @@ -1907,3 +1907,13 @@ function update_r1156() { return UPDATE_FAILED; } +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; + +} + + |