streams/Zotlabs/Update/_1021.php

19 lines
381 B
PHP
Raw Normal View History

<?php
namespace Zotlabs\Update;
2021-12-02 23:02:31 +00:00
class _1021
{
public function run()
{
2021-12-02 23:02:31 +00:00
$r = q("ALTER TABLE `abook` CHANGE `abook_connnected` `abook_connected` DATETIME NOT NULL DEFAULT '0001-01-01 00:00:00',
drop index `abook_connnected`, add index ( `abook_connected` ) ");
2021-12-02 23:02:31 +00:00
2021-12-03 03:01:39 +00:00
if ($r) {
2021-12-02 23:02:31 +00:00
return UPDATE_SUCCESS;
2021-12-03 03:01:39 +00:00
}
2021-12-02 23:02:31 +00:00
return UPDATE_FAILED;
}
2021-12-03 03:01:39 +00:00
}