mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-22 09:55:15 +00:00
22 lines
425 B
PHP
22 lines
425 B
PHP
<?php
|
|
|
|
namespace Zotlabs\Update;
|
|
|
|
class _1226
|
|
{
|
|
|
|
public function run()
|
|
{
|
|
|
|
if (ACTIVE_DBTYPE == DBTYPE_POSTGRES) {
|
|
$r = q("alter table item add item_level bigint NOT NULL DEFAULT '0'");
|
|
} else {
|
|
$r = q("alter table item add item_level int(10) NOT NULL DEFAULT 0 ");
|
|
}
|
|
|
|
if ($r) {
|
|
return UPDATE_SUCCESS;
|
|
}
|
|
return UPDATE_FAILED;
|
|
}
|
|
}
|