diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 04:15:21 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-28 04:15:21 -0700 |
commit | edbcba6f113a5c8b709cdbfca892e845b5096ede (patch) | |
tree | b66d328d5f4c77c9d7d0bdcd704c72639e22a8b7 /install/update.php | |
parent | ed876a9c529f59fa62bb45805aa4f355fe0e2c0d (diff) | |
download | volse-hubzilla-edbcba6f113a5c8b709cdbfca892e845b5096ede.tar.gz volse-hubzilla-edbcba6f113a5c8b709cdbfca892e845b5096ede.tar.bz2 volse-hubzilla-edbcba6f113a5c8b709cdbfca892e845b5096ede.zip |
schema support for additional site types
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index 9f4457600..059d69d14 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1155 ); +define( 'UPDATE_VERSION' , 1156 ); /** * @@ -1875,3 +1875,12 @@ function update_r1154() { } + +function update_r1155() { + + $r1 = q("alter table site add site_type smallint not null default '0' "); + $r2 = q("create index site_type on site ( site_type ) "); + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |