 --
 
 CREATE TABLE IF NOT EXISTS `op_credential` (
-  `id` varchar(6) NOT NULL,
+  `id` varchar(30) NOT NULL,
   `owner` varchar(255) NOT NULL,
   `name` varchar(255) DEFAULT NULL,
   `image` text,

-- --------------------------------------------------------

--
-- Table structure for table `op_elementTag`
--

CREATE TABLE IF NOT EXISTS `op_elementTag` (
  `id` varchar(6) NOT NULL,
  `type` enum('photo') NOT NULL,
  `element` varchar(6) NOT NULL DEFAULT 'photo',
  `tag` varchar(255) NOT NULL,
  UNIQUE KEY `id` (`id`,`type`,`element`,`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tag mapping table for photos (and videos in the future)';

-- --------------------------------------------------------


  `size` int(11) DEFAULT NULL,
  `width` int(11) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `extra` text,
  `exif` text,
  `views` int(11) DEFAULT NULL,
  `status` int(11) DEFAULT NULL,
  `permission` int(11) DEFAULT NULL,
