aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-05-08 19:55:21 +0200
committerMax Kostikov <max@kostikov.co>2019-05-08 19:55:21 +0200
commit24f3bc9f0c282f9a0610ee828b4341ee43cecb40 (patch)
treeb6c6c88e45dcaa29cdf11d2997c310d5e840a8db /Zotlabs/Update
parentc200e55f95b0b5530c874fbee76b23af02eaa8cb (diff)
downloadvolse-hubzilla-24f3bc9f0c282f9a0610ee828b4341ee43cecb40.tar.gz
volse-hubzilla-24f3bc9f0c282f9a0610ee828b4341ee43cecb40.tar.bz2
volse-hubzilla-24f3bc9f0c282f9a0610ee828b4341ee43cecb40.zip
Channel update
Diffstat (limited to 'Zotlabs/Update')
-rw-r--r--Zotlabs/Update/_1232.php47
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;
+
+ }
+
+}