X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FOauth_application_user.php;h=60b2e8fa2c505caaca88bc52aeb707cca2aeb2f3;hb=refs%2Fheads%2Fupstream-changes%2Fgoogle-analytics-removal;hp=4d2567246506f68a45a32af658c2f1775d92a649;hpb=c751be1c0639dd02432b8f7ddd365a91504e331c;p=quix0rs-gnu-social.git diff --git a/classes/Oauth_application_user.php b/classes/Oauth_application_user.php index 4d25672465..60b2e8fa2c 100644 --- a/classes/Oauth_application_user.php +++ b/classes/Oauth_application_user.php @@ -13,14 +13,10 @@ class Oauth_application_user extends Managed_DataObject public $profile_id; // int(4) primary_key not_null public $application_id; // int(4) primary_key not_null public $access_type; // tinyint(1) - public $token; // varchar(255) + public $token; // varchar(191) not 255 because utf8mb4 takes more space public $created; // datetime not_null public $modified; // timestamp not_null default_CURRENT_TIMESTAMP - /* Static get */ - function staticGet($k,$v=NULL) { - return Memcached_DataObject::staticGet('Oauth_application_user',$k,$v); - } /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -31,7 +27,7 @@ class Oauth_application_user extends Managed_DataObject 'profile_id' => array('type' => 'int', 'not null' => true, 'description' => 'user of the application'), 'application_id' => array('type' => 'int', 'not null' => true, 'description' => 'id of the application'), 'access_type' => array('type' => 'int', 'size' => 'tiny', 'default' => 0, 'description' => 'access type, bit 1 = read, bit 2 = write'), - 'token' => array('type' => 'varchar', 'length' => 255, 'description' => 'request or access token'), + 'token' => array('type' => 'varchar', 'length' => 191, 'description' => 'request or access token'), 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'), 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'), ),