diff options
author | Mario <mario@mariovavti.com> | 2022-01-19 09:41:16 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-01-19 09:41:16 +0000 |
commit | df71168ab76531b399829ebad3f363b563f135ad (patch) | |
tree | 166e2eba2c1168aec8bb29de7fa2bf66c514b646 /Zotlabs/Update/_1251.php | |
parent | e93b26bf546d4e94ceefc071a0ac9bd1faadc91b (diff) | |
download | volse-hubzilla-df71168ab76531b399829ebad3f363b563f135ad.tar.gz volse-hubzilla-df71168ab76531b399829ebad3f363b563f135ad.tar.bz2 volse-hubzilla-df71168ab76531b399829ebad3f363b563f135ad.zip |
fix channel app naming and translation and cleanup apps with an db update
Diffstat (limited to 'Zotlabs/Update/_1251.php')
-rw-r--r-- | Zotlabs/Update/_1251.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1251.php b/Zotlabs/Update/_1251.php new file mode 100644 index 000000000..ee72075d1 --- /dev/null +++ b/Zotlabs/Update/_1251.php @@ -0,0 +1,23 @@ +<?php + +namespace Zotlabs\Update; + +class _1251 { + + function run() { + + dbq("START TRANSACTION"); + + $r = dbq("DELETE FROM app WHERE (app_name = 'Channel Home' OR app_name = 'Permission Categories') AND app_system = 1"); + + if($r) { + dbq("COMMIT"); + return UPDATE_SUCCESS; + } + + dbq("ROLLBACK"); + return UPDATE_FAILED; + + } + +} |