streams/Zotlabs/Update/_1235.php

30 lines
337 B
PHP
Raw Normal View History

2019-09-11 02:31:08 +00:00
<?php
namespace Zotlabs\Update;
class _1235 {
function run() {
$r = q("ALTER TABLE item add replyto text NOT NULL DEFAULT ''");
if($r)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
function verify() {
$columns = db_columns('item');
if(in_array('replyto',$columns)) {
return true;
}
return false;
}
}