streams/Zotlabs/Update/_1002.php

21 lines
428 B
PHP
Raw Normal View History

<?php
namespace Zotlabs\Update;
2021-12-02 23:02:31 +00:00
class _1002
{
public function run()
{
$r = q("ALTER TABLE `event` CHANGE `account` `aid` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0'");
$r2 = q("alter table `event` drop index `account`, add index (`aid`)");
2021-12-02 23:02:31 +00:00
q("drop table contact");
q("drop table deliverq");
2021-12-02 23:02:31 +00:00
if ($r && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
}