diff options
author | Max Kostikov <max@kostikov.co> | 2019-05-08 19:55:21 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-05-08 19:55:21 +0200 |
commit | 5bf9a9828c4000c8f293efc17bc094c026a5dc0a (patch) | |
tree | b6c6c88e45dcaa29cdf11d2997c310d5e840a8db /Zotlabs/Update | |
parent | c200e55f95b0b5530c874fbee76b23af02eaa8cb (diff) | |
parent | 24f3bc9f0c282f9a0610ee828b4341ee43cecb40 (diff) | |
download | volse-hubzilla-5bf9a9828c4000c8f293efc17bc094c026a5dc0a.tar.gz volse-hubzilla-5bf9a9828c4000c8f293efc17bc094c026a5dc0a.tar.bz2 volse-hubzilla-5bf9a9828c4000c8f293efc17bc094c026a5dc0a.zip |
Merge branch 'channel_update' into 'dev'
Channel update
See merge request hubzilla/core!1639
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r-- | Zotlabs/Update/_1232.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1232.php b/Zotlabs/Update/_1232.php new file mode 100644 index 000000000..d1e3d75b5 --- /dev/null +++ b/Zotlabs/Update/_1232.php @@ -0,0 +1,47 @@ +<?php + +namespace Zotlabs\Update; + +class _1232 { + + function run() { + + if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { + return UPDATE_SUCCESS; + } + else { + q("START TRANSACTION"); + + $r = q("ALTER TABLE channel + DROP channel_r_stream, + DROP channel_r_profile, + DROP channel_r_photos, + DROP channel_r_abook, + DROP channel_w_stream, + DROP channel_w_wall, + DROP channel_w_tagwall, + DROP channel_w_comment, + DROP channel_w_mail, + DROP channel_w_photos, + DROP channel_w_chat, + DROP channel_a_delegate, + DROP channel_r_storage, + DROP channel_w_storage, + DROP channel_r_pages, + DROP channel_w_pages, + DROP channel_a_republish, + DROP channel_w_like" + ); + } + + if($r) { + q("COMMIT"); + return UPDATE_SUCCESS; + } + + q("ROLLBACK"); + return UPDATE_FAILED; + + } + +} |