diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-09 16:52:00 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-09 16:52:00 -0700 |
commit | 03357481f73d506ae36be9858dc757842408c6a9 (patch) | |
tree | a69772d6caf71f4986a26eb80d00ac4e8750b995 /install/update.php | |
parent | ec1dcb8f2eccfd1a0dfc9c7eccea788a4b385e41 (diff) | |
parent | 805e2a28ee81febee2742587a1640b5fae1387a2 (diff) | |
download | volse-hubzilla-03357481f73d506ae36be9858dc757842408c6a9.tar.gz volse-hubzilla-03357481f73d506ae36be9858dc757842408c6a9.tar.bz2 volse-hubzilla-03357481f73d506ae36be9858dc757842408c6a9.zip |
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts:
install/schema_mysql.sql
mod/home.php
mod/page.php
view/nl/messages.po
view/nl/strings.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 13a45d301..62c976218 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1142 ); +define( 'UPDATE_VERSION' , 1143 ); /** * @@ -1645,4 +1645,15 @@ function update_r1141() { return UPDATE_SUCCESS; return UPDATE_FAILED; +} + +function update_r1142() { + + $r1 = q("alter table site add site_dead smallint not null default '0' "); + $r2 = q("create index site_dead on site ( site_dead ) "); + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; + + }
\ No newline at end of file |