diff options
author | Max Kostikov <max@kostikov.co> | 2018-09-27 23:42:11 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-09-27 23:42:11 +0200 |
commit | 98b3946fca91fbacb662c14a1545e8eb1982ef3e (patch) | |
tree | c868a638b2bd5e34f44b0f408fcbc46983f76836 | |
parent | c15de3b68b2fecdaec70e5978f9b592ddfc57013 (diff) | |
download | volse-hubzilla-98b3946fca91fbacb662c14a1545e8eb1982ef3e.tar.gz volse-hubzilla-98b3946fca91fbacb662c14a1545e8eb1982ef3e.tar.bz2 volse-hubzilla-98b3946fca91fbacb662c14a1545e8eb1982ef3e.zip |
rename groups and group_members tables for MySQL 8 compatibility
-rw-r--r-- | Zotlabs/Update/_1221.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Zotlabs/Update/_1221.php b/Zotlabs/Update/_1221.php new file mode 100644 index 000000000..252fcaa90 --- /dev/null +++ b/Zotlabs/Update/_1221.php @@ -0,0 +1,20 @@ +<?php + +namespace Zotlabs\Update; + +class _1221 { + + function run() { + + $r1 = q("ALTER table " . TQUOT . 'groups' . TQUOT . " rename to pgrp "); + $r2 = q("ALTER table " . TQUOT . 'group_member' . TQUOT . " rename to pgrp_member "); + + + if($r1 && $r2) { + return UPDATE_SUCCESS; + } + return UPDATE_FAILED; + + } + +} |