  ADD PRIMARY KEY (`id`);
 
 --
+-- Indexes for table `historyactivityinstance`
+--
+ALTER TABLE `historyactivityinstance`
+ ADD PRIMARY KEY (`ID`);
+
+--
+-- Indexes for table `historycontrolflow`
+--
+ALTER TABLE `historycontrolflow`
+ ADD PRIMARY KEY (`id`);
+
+--
 -- Indexes for table `reference`
 --
 ALTER TABLE `reference`

--

INSERT INTO `gatewayinstance` (`id`, `type`, `gateway_state`) VALUES
(100, 'AND', 'init'),
(636, 'AND', 'init'),
(639, 'AND', 'init'),

(109, 226, 1, 1),
(110, 226, 5, 2),
(111, 228, 1, 1),
(112, 228, 5, 2),
(113, 244, 1, 1),
(114, 244, 5, 2),
(115, 246, 1, 1),
(116, 246, 5, 2),
(117, 248, 1, 1),
(118, 248, 5, 2),
(119, 250, 1, 1),
(120, 250, 5, 2),
(121, 252, 1, 1),
(122, 252, 5, 2),
(123, 255, 1, 1),
(124, 255, 5, 2),
(125, 257, 1, 1),
(126, 257, 5, 2),
(127, 259, 1, 1),
(128, 259, 5, 2),
(129, 261, 1, 1),
(130, 261, 5, 2),
(131, 262, 1, 1),
(132, 262, 5, 2),
(133, 263, 4, 1),
(134, 263, 6, 2),
(135, 265, 1, 1),
(136, 265, 5, 2),
(137, 266, 1, 1),
(138, 266, 5, 2),
(139, 270, 1, 1),
(140, 270, 5, 2),
(141, 279, 1, 1),
(142, 279, 5, 2),
(143, 281, 1, 1),
(144, 281, 5, 2),
(145, 282, 1, 1),
(146, 282, 5, 2),
(147, 284, 1, 1),
(148, 284, 5, 2),
(149, 47, 1, 1),
(150, 47, 5, 2),
(151, 94, 1, 1),
(152, 94, 5, 2),
(153, 285, 1, 1),
(154, 285, 5, 2),
(155, 286, 4, 1),
(156, 286, 6, 2),
(157, 1, 1, 1),
(158, 1, 5, 2),
(159, 309, 4, 1),
(160, 309, 6, 2),
(161, 123, 2, 1),
(162, 123, 5, 2),
(163, 310, 4, 1),
(164, 310, 6, 2),
(165, 312, 4, 1),
(166, 312, 6, 2),
(167, 313, 3, 1),
(168, 313, 5, 2),
(169, 314, 2, 1),
(170, 314, 5, 2),
(171, 315, 2, 1),
(172, 315, 6, 2),
(173, 316, 4, 1),
(174, 316, 6, 2),
(175, 317, 2, 1),
(176, 317, 6, 2),
(177, 318, 3, 1),
(178, 318, 6, 2),
(179, 319, 2, 1),
(180, 319, 6, 2),
(181, 320, 3, 1),
(182, 320, 5, 2),
(183, 321, 1, 1),
(184, 321, 5, 2),
(185, 322, 1, 1),
(186, 322, 5, 2),
(187, 323, 4, 1),
(188, 323, 6, 2),
(189, 324, 2, 1),
(190, 324, 6, 2),
(191, 325, 4, 1),
(192, 325, 6, 2);

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

