This repository has been archived on 2024-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
core/Zotlabs/Update/_1213.php
2018-05-20 20:48:52 +02:00

29 lines
395 B
PHP

<?php
namespace Zotlabs\Update;
class _1213 {
function run() {
if(ACTIVE_DBTYPE == DBTYPE_MYSQL) {
q("START TRANSACTION");
$r = q("ALTER TABLE abconfig
DROP INDEX chan,
DROP INDEX xchan,
ADD INDEX chan_xchan (chan, xchan)
");
if($r) {
q("COMMIT");
return UPDATE_SUCCESS;
}
else {
q("ROLLBACK");
return UPDATE_FAILED;
}
}
}
}