X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FGNUsocialVideo%2Fclasses%2FVideo.php;h=9ba395d8cad839157f6f6a3ee75a0528280cda1b;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=9746948e16f93aefc7bc2fc2ef7f2024d188df0e;hpb=e5b070b141d5c0a2b9268d853ba82a26da4ee547;p=quix0rs-gnu-social.git diff --git a/plugins/GNUsocialVideo/classes/Video.php b/plugins/GNUsocialVideo/classes/Video.php index 9746948e16..9ba395d8ca 100644 --- a/plugins/GNUsocialVideo/classes/Video.php +++ b/plugins/GNUsocialVideo/classes/Video.php @@ -39,8 +39,8 @@ class Video extends Managed_DataObject public $__table = 'video'; // table name public $id; // char (36) // UUID - public $uri; // varchar (255) // This is the corresponding notice's uri. - public $url; // varchar (255) + public $uri; // varchar (191) This is the corresponding notice's uri. not 255 because utf8mb4 takes more space + public $url; // varchar (191) not 255 because utf8mb4 takes more space public $profile_id; // int public static function getByNotice(Notice $notice) @@ -63,10 +63,10 @@ class Video extends Managed_DataObject 'not null' => true, 'description' => 'UUID'), 'uri' => array('type' => 'varchar', - 'length' => 255, + 'length' => 191, 'not null' => true), 'url' => array('type' => 'varchar', - 'length' => 255, + 'length' => 191, 'not null' => true), 'profile_id' => array('type' => 'int', 'not null' => true), ),