X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FUser_username.php;h=0173a6efc4a0d647c76122014841363d2ce47946;hb=b4342434167f0ce0785b2de0efb58b94cf7cf9d2;hp=b252ee31565f58234859ca87ac1eaa23bdd7123e;hpb=c1a0132cab9a7426d765502fa8ccbcd1434a887e;p=quix0rs-gnu-social.git diff --git a/classes/User_username.php b/classes/User_username.php index b252ee3156..0173a6efc4 100644 --- a/classes/User_username.php +++ b/classes/User_username.php @@ -11,8 +11,8 @@ class User_username extends Managed_DataObject public $__table = 'user_username'; // table name public $user_id; // int(4) not_null - public $provider_name; // varchar(255) primary_key not_null - public $username; // varchar(255) primary_key not_null + public $provider_name; // varchar(191) primary_key not_null not 255 because utf8mb4 takes more space + public $username; // varchar(191) primary_key not_null not 255 because utf8mb4 takes more space public $created; // datetime() not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP @@ -23,8 +23,8 @@ class User_username extends Managed_DataObject { return array( 'fields' => array( - 'provider_name' => array('type' => 'varchar', 'length' => 255, 'description' => 'provider name'), - 'username' => array('type' => 'varchar', 'length' => 255, 'description' => 'username'), + 'provider_name' => array('type' => 'varchar', 'length' => 191, 'description' => 'provider name'), + 'username' => array('type' => 'varchar', 'length' => 191, 'description' => 'username'), 'user_id' => array('type' => 'int', 'not null' => true, 'description' => 'notice id this title relates to'), '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'),