diff options
author | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-02-25 02:05:16 +0100 |
---|---|---|
committer | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-02-25 02:05:16 +0100 |
commit | f12b0fe316a4a1c285935a30b282ef82c1b0f6a5 (patch) | |
tree | e95c1d6d5fb64315fa3afedf3132daf6fbeaaac5 /install/update.php | |
parent | 8944d7a7a226601e4b32ea7f7febc166a3ce272d (diff) | |
parent | 6300f47cdcd921141b8f98b71d373d53aa3d80f2 (diff) | |
download | volse-hubzilla-f12b0fe316a4a1c285935a30b282ef82c1b0f6a5.tar.gz volse-hubzilla-f12b0fe316a4a1c285935a30b282ef82c1b0f6a5.tar.bz2 volse-hubzilla-f12b0fe316a4a1c285935a30b282ef82c1b0f6a5.zip |
Merge branch 'master' of https://github.com/redmatrix/hubzilla
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index d21295be7..0f9b3ab28 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1163 ); +define( 'UPDATE_VERSION' , 1164 ); /** * @@ -2003,4 +2003,19 @@ function update_r1162() { if($r1 && $r2) return UPDATE_SUCCESS; return UPDATE_FAILED; +} + +function update_r1163() { + + if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { + $r1 = q("alter table channel add channel_moved text not null default '' "); + $r2 = q("create index \"channel_channel_moved\" on channel (\"channel_moved\") "); + } + else { + $r1 = q("alter table channel add channel_moved char(255) not null default '' "); + $r2 = q("alter table channel add index ( channel_moved ) "); + } + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; }
\ No newline at end of file |