INSERT INTO `module` (
`name` ,
`script` ,
`class` ,
`active` ,
`public` ,
`canreference` ,
`laymenInsert`
)
VALUES (
'YouTube', 'modules/youtube/youtube.inc', 'YouTube', '1', '1', '0', '0'
);

CREATE TABLE `youtube` (
`id` int(11) NOT NULL auto_increment,
`url` varchar(255) NOT NULL,
`width` int(50) NOT NULL,
`height` int(50) NOT NULL,
PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

UPDATE `module` SET `name` = 'Social Video',
`script` = 'modules/social_video/SocialVideo.inc',
`class` = 'SocialVideo' WHERE CONVERT( `module`.`class` USING utf8 ) = 'YouTube' LIMIT 1 ;

 RENAME TABLE `youtube`  TO `unisite_amagazela`.`socialVideo` ;

ALTER TABLE `socialVideo`
  DROP `url`,
  DROP `width`,
  DROP `height`;

ALTER TABLE `socialVideo` ADD `embed` TEXT NOT NULL ;