X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FConfig.php;h=c457da1a5a1f74515f0b15537e49b59024c107e2;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=2e8492849c4b9f68abb1586aad52f9406e9c81f2;hpb=afbb3ec37a32314d55e2163da4a2958bf3a6eba9;p=quix0rs-gnu-social.git diff --git a/classes/Config.php b/classes/Config.php index 2e8492849c..c457da1a5a 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -17,16 +17,12 @@ * along with this program. If not, see . */ -if (!defined('STATUSNET')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Table Definition for config */ -require_once INSTALLDIR.'/classes/Memcached_DataObject.php'; - class Config extends Managed_DataObject { ###START_AUTOCODE @@ -35,7 +31,7 @@ class Config extends Managed_DataObject public $__table = 'config'; // table name public $section; // varchar(32) primary_key not_null public $setting; // varchar(32) primary_key not_null - public $value; // varchar(191) not 255 because utf8mb4 takes more space + public $value; // text /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -46,7 +42,7 @@ class Config extends Managed_DataObject 'fields' => array( 'section' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'default' => '', 'description' => 'configuration section'), 'setting' => array('type' => 'varchar', 'length' => 32, 'not null' => true, 'default' => '', 'description' => 'configuration setting'), - 'value' => array('type' => 'varchar', 'length' => 191, 'description' => 'configuration value'), + 'value' => array('type' => 'text', 'description' => 'configuration value'), ), 'primary key' => array('section', 'setting'), );