streams/Zotlabs/Update/_1142.php

20 lines
329 B
PHP
Raw Normal View History

<?php
namespace Zotlabs\Update;
2021-12-02 23:02:31 +00:00
class _1142
{
public function run()
{
2021-12-02 23:02:31 +00:00
$r1 = q("alter table site add site_dead smallint not null default '0' ");
$r2 = q("create index site_dead on site ( site_dead ) ");
if ($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
2021-12-02 23:02:31 +00:00
}
}