streams/Zotlabs/Update/_1137.php
2021-12-03 10:02:31 +11:00

17 lines
No EOL
329 B
PHP

<?php
namespace Zotlabs\Update;
class _1137
{
public function run()
{
$r1 = q("alter table site add site_valid smallint not null default '0' ");
$r2 = q("create index site_valid on site ( site_valid ) ");
if ($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
}