mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-21 08:35:23 +00:00
30 lines
337 B
PHP
30 lines
337 B
PHP
|
<?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;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|