streams/Zotlabs/Update/_1162.php

21 lines
466 B
PHP
Raw Normal View History

<?php
namespace Zotlabs\Update;
2021-12-02 23:02:31 +00:00
class _1162
{
public function run()
{
$r1 = q("alter table iconfig add sharing int not null default '0' ");
2021-12-02 23:02:31 +00:00
if (ACTIVE_DBTYPE == DBTYPE_POSTGRES)
$r2 = q("create index \"iconfig_sharing\" on iconfig (\"sharing\") ");
else
$r2 = q("alter table iconfig add index ( sharing ) ");
if ($r1 && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
}