 --
 ALTER TABLE `gallery`
   ADD PRIMARY KEY (`id`),
-  ADD UNIQUE KEY `id_UNIQUE` (`id`),
-  ADD KEY `fk_gallery_image1_idx` (`image_id`);
+  ADD UNIQUE KEY `id_UNIQUE` (`id`);
 
 --
 -- Indexes for table `image`


CREATE TABLE `gallery` (
  `id` int(10) UNSIGNED NOT NULL,
  `image_id` int(10) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL,
  `description` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

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


  `gallery_id` int(10) UNSIGNED NOT NULL,
  `title` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `image`
--

INSERT INTO `image` (`id`, `gallery_id`, `title`) VALUES
(1, 1, 'Lorem ipsum dolor sit'),
(2, 1, 'Et dolore magna aliqua'),
(3, 1, 'Aliquip ex ea commodo'),
(4, 1, 'Cillum dolore eu fugiat'),
(5, 1, 'Qui officia deserunt mollit'),
(6, 1, 'Elit sed do eiusmod'),
(7, 1, 'Nostrud exercitation ullamco laboris'),
(8, 1, 'In reprehenderit in voluptate'),
(9, 1, 'Occaecat cupidatat non proident'),
(10, 2, 'Sit amet'),
(11, 2, 'Aliqua ut'),
(12, 2, 'Commodo consequat'),
(13, 2, 'Eu fugiat'),
(14, 2, 'Mollit anim'),
(15, 2, 'Tempor incididunt'),
(16, 2, 'Ullamco laboris'),
(17, 2, 'In voluptate'),
(18, 2, 'Non proident'),
(19, 3, ''),
(20, 3, ''),
(21, 3, ''),
(22, 3, ''),
(23, 3, ''),
(24, 3, ''),
(25, 3, ''),
(26, 3, ''),
(27, 3, ''),
(28, 4, ''),
(29, 4, ''),
(30, 4, ''),
(31, 4, ''),
(32, 4, ''),
(33, 4, ''),
(34, 4, ''),
(35, 4, ''),
(36, 4, ''),
(37, 5, ''),
(38, 5, ''),
(39, 5, ''),
(40, 5, ''),
(41, 5, ''),
(42, 5, ''),
(43, 5, ''),
(44, 5, ''),
(45, 5, ''),
(46, 6, ''),
(47, 6, ''),
(48, 6, ''),
(49, 6, ''),
(50, 6, ''),
(51, 6, ''),
(52, 6, ''),
(53, 6, ''),
(54, 6, ''),
(55, 7, ''),
(56, 7, ''),
(57, 7, ''),
(58, 7, ''),
(59, 7, ''),
(60, 7, ''),
(61, 7, ''),
(62, 7, ''),
(63, 7, ''),
(64, 8, ''),
(65, 8, ''),
(66, 8, ''),
(67, 8, ''),
(68, 8, ''),
(69, 8, ''),
(70, 8, ''),
(71, 8, ''),
(72, 8, ''),
(73, 9, ''),
(74, 9, ''),
(75, 9, ''),
(76, 9, ''),
(77, 9, ''),
(78, 9, ''),
(79, 9, ''),
(80, 9, ''),
(81, 9, '');

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

