CREATE TABLE IF NOT EXISTS `packages` (  `pkg_id` int(11) NOT NULL auto_increment,  `device_id` int(11) NOT NULL,  `name` varchar(64) NOT NULL,  `manager` varchar(16) NOT NULL default '1',  `status` tinyint(1) NOT NULL,  `version` varchar(64) NOT NULL,  `build` varchar(64) NOT NULL,  `arch` varchar(16) NOT NULL,  `size` bigint(20) default NULL,  PRIMARY KEY  (`pkg_id`),  UNIQUE KEY `unique_key` (`device_id`,`name`,`manager`,`arch`,`version`,`build`),  KEY `device_id` (`device_id`)) ENGINE=MyISAM  CHARSET=utf8 COLLATE=utf8_bin;
