blob: 9e085a351ff7d33a22a3d958aa052eaf0d38dd40 (
plain) (
tree)
|
|
<?php
namespace Zotlabs\Update;
class _1132 {
function run() {
if(ACTIVE_DBTYPE == DBTYPE_POSTGRES) { // correct previous failed update
$r1 = q("ALTER TABLE abook ADD abook_rating_text TEXT NOT NULL DEFAULT '' ");
$r2 = q("ALTER TABLE xlink ADD xlink_rating_text TEXT NOT NULL DEFAULT '' ");
if(!$r1 || !$r2)
return UPDATE_FAILED;
}
return UPDATE_SUCCESS;
}
}
|