File_oembed varchar to text changes

No need to have text length limitations in the database for fields which
very well may be longer than what was previously set.
This commit is contained in:
Mikael Nordfeldth 2015-12-27 12:11:29 +01:00
parent 12d77ac3e4
commit feb6b636f4
1 changed files with 6 additions and 6 deletions

View File

@ -49,15 +49,15 @@ class File_oembed extends Managed_DataObject
'version' => array('type' => 'varchar', 'length' => 20, 'description' => 'oEmbed spec. version'),
'type' => array('type' => 'varchar', 'length' => 20, 'description' => 'oEmbed type: photo, video, link, rich'),
'mimetype' => array('type' => 'varchar', 'length' => 50, 'description' => 'mime type of resource'),
'provider' => array('type' => 'varchar', 'length' => 50, 'description' => 'name of this oEmbed provider'),
'provider_url' => array('type' => 'varchar', 'length' => 191, 'description' => 'URL of this oEmbed provider'),
'provider' => array('type' => 'text', 'description' => 'name of this oEmbed provider'),
'provider_url' => array('type' => 'text', 'description' => 'URL of this oEmbed provider'),
'width' => array('type' => 'int', 'description' => 'width of oEmbed resource when available'),
'height' => array('type' => 'int', 'description' => 'height of oEmbed resource when available'),
'html' => array('type' => 'text', 'description' => 'html representation of this oEmbed resource when applicable'),
'title' => array('type' => 'varchar', 'length' => 191, 'description' => 'title of oEmbed resource when available'),
'author_name' => array('type' => 'varchar', 'length' => 50, 'description' => 'author name for this oEmbed resource'),
'author_url' => array('type' => 'varchar', 'length' => 191, 'description' => 'author URL for this oEmbed resource'),
'url' => array('type' => 'varchar', 'length' => 191, 'description' => 'URL for this oEmbed resource when applicable (photo, link)'),
'title' => array('type' => 'text', 'description' => 'title of oEmbed resource when available'),
'author_name' => array('type' => 'text', 'description' => 'author name for this oEmbed resource'),
'author_url' => array('type' => 'text', 'description' => 'author URL for this oEmbed resource'),
'url' => array('type' => 'text', 'description' => 'URL for this oEmbed resource when applicable (photo, link)'),
'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
),
'primary key' => array('file_id'),