Commit 3c3ae9e1 authored by Matija Obreza's avatar Matija Obreza
Browse files

Database upgrade script and default logging for hazelcast

parent 65088475
CREATE TABLE `acce` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`createdBy` bigint(20) DEFAULT NULL,
`createdDate` datetime DEFAULT NULL,
`lastModifiedBy` bigint(20) DEFAULT NULL,
`lastModifiedDate` datetime DEFAULT NULL,
`version` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4527661 DEFAULT CHARSET=utf8;
insert into acce (id, createdBy, createdDate, lastModifiedBy, lastModifiedDate, version) (select id, createdBy, createdDate, lastModifiedBy, lastModifiedDate, version from accession);
CREATE TABLE `accessionhistoric` (
`acceNumb` varchar(128) NOT NULL,
`acqDate` varchar(12) DEFAULT NULL,
`acqSrc` varchar(3) DEFAULT NULL,
`available` bit(1) DEFAULT NULL,
`duplSite` varchar(64) DEFAULT NULL,
`historic` bit(1) NOT NULL,
`inSGSV` bit(1) DEFAULT NULL,
`inTrust` bit(1) DEFAULT NULL,
`instCode` varchar(10) NOT NULL,
`mlsStat` bit(1) DEFAULT NULL,
`orgCty` varchar(3) DEFAULT NULL,
`sampStat` int(11) DEFAULT NULL,
`storage` varchar(64) DEFAULT NULL,
`taxGenus` bigint(20) NOT NULL,
`id` bigint(20) NOT NULL,
`orgCtyId` bigint(20) DEFAULT NULL,
`instituteId` bigint(20) NOT NULL,
`taxonomyId2` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
KEY `FK_k3a4cn0gsh3txk906atafvth8` (`orgCtyId`),
KEY `FK_sb6xl6odb8a452voccjrp19u2` (`instituteId`),
KEY `FK_elk7dus9ftf9gk022xji17bo6` (`taxonomyId2`),
CONSTRAINT `FK_40uwbbf9uh8gd9nwu98wkbtp3` FOREIGN KEY (`id`) REFERENCES `acce` (`id`),
CONSTRAINT `FK_elk7dus9ftf9gk022xji17bo6` FOREIGN KEY (`taxonomyId2`) REFERENCES `taxonomy2` (`id`),
CONSTRAINT `FK_k3a4cn0gsh3txk906atafvth8` FOREIGN KEY (`orgCtyId`) REFERENCES `country` (`id`),
CONSTRAINT `FK_sb6xl6odb8a452voccjrp19u2` FOREIGN KEY (`instituteId`) REFERENCES `faoinstitute` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Works at this stage!
-- Need to re-link the foreign keys to acce
alter table accessionremark drop foreign key FK_14wnxv01em2rvthpqemjgbq1;
alter table accessionremark add CONSTRAINT `FK_14wnxv01em2rvthpqemjgbq1` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessioncollect drop foreign key FK_3xjhvjcunn2ievi36gmuvf6nk, drop key FK_3xjhvjcunn2ievi36gmuvf6nk;
alter table accessioncollect add CONSTRAINT `FK_3xjhvjcunn2ievi36gmuvf6nk` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessionbreeding drop foreign key FK_5p3so2h9yrmba9cfqi2bajecx, drop key FK_5p3so2h9yrmba9cfqi2bajecx;
alter table accessionbreeding add CONSTRAINT `FK_5p3so2h9yrmba9cfqi2bajecx` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessiontrait drop foreign key FK_9xidxw74qsfww0xphxbjjasds, drop key FK_9xidxw74qsfww0xphxbjjasds;
alter table accessiontrait add CONSTRAINT `FK_9xidxw74qsfww0xphxbjjasds` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessionname drop foreign key FK_cyxjwhft5lmn8pspony5id2wu;
alter table accessionname add CONSTRAINT `FK_cyxjwhft5lmn8pspony5id2wu` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessionstorage drop foreign key FK_gdetq4hqn7jjq7qfxhihjxew9;
alter table accessionstorage add CONSTRAINT `FK_gdetq4hqn7jjq7qfxhihjxew9` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessionexchange drop foreign key FK_hdmatkum28ks4fluvfl0j095j, drop key FK_hdmatkum28ks4fluvfl0j095j;
alter table accessionexchange add CONSTRAINT `FK_hdmatkum28ks4fluvfl0j095j` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessionalias drop foreign key FK_jvig0qnx2f3jbgw9v6g0a4bjv;
alter table accessionalias add CONSTRAINT `FK_jvig0qnx2f3jbgw9v6g0a4bjv` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table accessiongeo drop foreign key FK_mrtltk1iiohn7x6p6b9saxfee, drop key FK_mrtltk1iiohn7x6p6b9saxfee;
alter table accessiongeo add CONSTRAINT `FK_mrtltk1iiohn7x6p6b9saxfee` FOREIGN KEY (`accessionId`) REFERENCES `acce` (`id`);
alter table `1` drop foreign key genesys_Accession_1;
alter table `10` drop foreign key genesys_Accession_10;
alter table `100` drop foreign key genesys_Accession_100;
alter table `1000` drop foreign key genesys_Accession_1000;
alter table `1001` drop foreign key genesys_Accession_1001;
alter table `1002` drop foreign key genesys_Accession_1002;
alter table `1003` drop foreign key genesys_Accession_1003;
alter table `1004` drop foreign key genesys_Accession_1004;
alter table `1005` drop foreign key genesys_Accession_1005;
alter table `1006` drop foreign key genesys_Accession_1006;
alter table `1007` drop foreign key genesys_Accession_1007;
alter table `1008` drop foreign key genesys_Accession_1008;
alter table `1009` drop foreign key genesys_Accession_1009;
alter table `101` drop foreign key genesys_Accession_101;
alter table `1010` drop foreign key genesys_Accession_1010;
alter table `1011` drop foreign key genesys_Accession_1011;
alter table `1012` drop foreign key genesys_Accession_1012;
alter table `1013` drop foreign key genesys_Accession_1013;
alter table `1014` drop foreign key genesys_Accession_1014;
alter table `1015` drop foreign key genesys_Accession_1015;
alter table `1016` drop foreign key genesys_Accession_1016;
alter table `1017` drop foreign key genesys_Accession_1017;
alter table `1018` drop foreign key genesys_Accession_1018;
alter table `1019` drop foreign key genesys_Accession_1019;
alter table `102` drop foreign key genesys_Accession_102;
alter table `1020` drop foreign key genesys_Accession_1020;
alter table `1021` drop foreign key genesys_Accession_1021;
alter table `1023` drop foreign key genesys_Accession_1023;
alter table `1024` drop foreign key genesys_Accession_1024;
alter table `1025` drop foreign key genesys_Accession_1025;
alter table `1026` drop foreign key genesys_Accession_1026;
alter table `1027` drop foreign key genesys_Accession_1027;
alter table `1028` drop foreign key genesys_Accession_1028;
alter table `1029` drop foreign key genesys_Accession_1029;
alter table `103` drop foreign key genesys_Accession_103;
alter table `1030` drop foreign key genesys_Accession_1030;
alter table `1031` drop foreign key genesys_Accession_1031;
alter table `1032` drop foreign key genesys_Accession_1032;
alter table `1033` drop foreign key genesys_Accession_1033;
alter table `1034` drop foreign key genesys_Accession_1034;
alter table `1035` drop foreign key genesys_Accession_1035;
alter table `1036` drop foreign key genesys_Accession_1036;
alter table `1037` drop foreign key genesys_Accession_1037;
alter table `1038` drop foreign key genesys_Accession_1038;
alter table `1039` drop foreign key genesys_Accession_1039;
alter table `104` drop foreign key genesys_Accession_104;
alter table `1040` drop foreign key genesys_Accession_1040;
alter table `1041` drop foreign key genesys_Accession_1041;
alter table `1042` drop foreign key genesys_Accession_1042;
alter table `1043` drop foreign key genesys_Accession_1043;
alter table `1044` drop foreign key genesys_Accession_1044;
alter table `1045` drop foreign key genesys_Accession_1045;
alter table `1046` drop foreign key genesys_Accession_1046;
alter table `1047` drop foreign key genesys_Accession_1047;
alter table `1048` drop foreign key genesys_Accession_1048;
alter table `1049` drop foreign key genesys_Accession_1049;
alter table `105` drop foreign key genesys_Accession_105;
alter table `1050` drop foreign key genesys_Accession_1050;
alter table `1051` drop foreign key genesys_Accession_1051;
alter table `1052` drop foreign key genesys_Accession_1052;
alter table `1053` drop foreign key genesys_Accession_1053;
alter table `1054` drop foreign key genesys_Accession_1054;
alter table `1055` drop foreign key genesys_Accession_1055;
alter table `1056` drop foreign key genesys_Accession_1056;
alter table `1057` drop foreign key genesys_Accession_1057;
alter table `1058` drop foreign key genesys_Accession_1058;
alter table `1059` drop foreign key genesys_Accession_1059;
alter table `106` drop foreign key genesys_Accession_106;
alter table `1060` drop foreign key genesys_Accession_1060;
alter table `1061` drop foreign key genesys_Accession_1061;
alter table `1062` drop foreign key genesys_Accession_1062;
alter table `1063` drop foreign key genesys_Accession_1063;
alter table `1064` drop foreign key genesys_Accession_1064;
alter table `1065` drop foreign key genesys_Accession_1065;
alter table `1066` drop foreign key genesys_Accession_1066;
alter table `1067` drop foreign key genesys_Accession_1067;
alter table `1068` drop foreign key genesys_Accession_1068;
alter table `1069` drop foreign key genesys_Accession_1069;
alter table `107` drop foreign key genesys_Accession_107;
alter table `1070` drop foreign key genesys_Accession_1070;
alter table `1071` drop foreign key genesys_Accession_1071;
alter table `1072` drop foreign key genesys_Accession_1072;
alter table `1073` drop foreign key genesys_Accession_1073;
alter table `1074` drop foreign key genesys_Accession_1074;
alter table `1075` drop foreign key genesys_Accession_1075;
alter table `1076` drop foreign key genesys_Accession_1076;
alter table `1077` drop foreign key genesys_Accession_1077;
alter table `1078` drop foreign key genesys_Accession_1078;
alter table `1079` drop foreign key genesys_Accession_1079;
alter table `108` drop foreign key genesys_Accession_108;
alter table `1080` drop foreign key genesys_Accession_1080;
alter table `1081` drop foreign key genesys_Accession_1081;
alter table `1082` drop foreign key genesys_Accession_1082;
alter table `1083` drop foreign key genesys_Accession_1083;
alter table `1084` drop foreign key genesys_Accession_1084;
alter table `1085` drop foreign key genesys_Accession_1085;
alter table `1086` drop foreign key genesys_Accession_1086;
alter table `1087` drop foreign key genesys_Accession_1087;
alter table `1088` drop foreign key genesys_Accession_1088;
alter table `1089` drop foreign key genesys_Accession_1089;
alter table `109` drop foreign key genesys_Accession_109;
alter table `1090` drop foreign key genesys_Accession_1090;
alter table `1091` drop foreign key genesys_Accession_1091;
alter table `1092` drop foreign key genesys_Accession_1092;
alter table `1093` drop foreign key genesys_Accession_1093;
alter table `1094` drop foreign key genesys_Accession_1094;
alter table `1095` drop foreign key genesys_Accession_1095;
alter table `1096` drop foreign key genesys_Accession_1096;
alter table `1097` drop foreign key genesys_Accession_1097;
alter table `1098` drop foreign key genesys_Accession_1098;
alter table `11` drop foreign key genesys_Accession_11;
alter table `110` drop foreign key genesys_Accession_110;
alter table `1100` drop foreign key genesys_Accession_1100;
alter table `1101` drop foreign key genesys_Accession_1101;
alter table `1102` drop foreign key genesys_Accession_1102;
alter table `1103` drop foreign key genesys_Accession_1103;
alter table `1104` drop foreign key genesys_Accession_1104;
alter table `1105` drop foreign key genesys_Accession_1105;
alter table `1106` drop foreign key genesys_Accession_1106;
alter table `1107` drop foreign key genesys_Accession_1107;
alter table `1108` drop foreign key genesys_Accession_1108;
alter table `1109` drop foreign key genesys_Accession_1109;
alter table `111` drop foreign key genesys_Accession_111;
alter table `1110` drop foreign key genesys_Accession_1110;
alter table `1111` drop foreign key genesys_Accession_1111;
alter table `1112` drop foreign key genesys_Accession_1112;
alter table `1113` drop foreign key genesys_Accession_1113;
alter table `1114` drop foreign key genesys_Accession_1114;
alter table `1115` drop foreign key genesys_Accession_1115;
alter table `1116` drop foreign key genesys_Accession_1116;
alter table `1117` drop foreign key genesys_Accession_1117;
alter table `1118` drop foreign key genesys_Accession_1118;
alter table `1119` drop foreign key genesys_Accession_1119;
alter table `112` drop foreign key genesys_Accession_112;
alter table `1120` drop foreign key genesys_Accession_1120;
alter table `1121` drop foreign key genesys_Accession_1121;
alter table `1122` drop foreign key genesys_Accession_1122;
alter table `1123` drop foreign key genesys_Accession_1123;
alter table `1124` drop foreign key genesys_Accession_1124;
alter table `1125` drop foreign key genesys_Accession_1125;
alter table `1126` drop foreign key genesys_Accession_1126;
alter table `1127` drop foreign key genesys_Accession_1127;
alter table `1128` drop foreign key genesys_Accession_1128;
alter table `1129` drop foreign key genesys_Accession_1129;
alter table `113` drop foreign key genesys_Accession_113;
alter table `1130` drop foreign key genesys_Accession_1130;
alter table `1131` drop foreign key genesys_Accession_1131;
alter table `1132` drop foreign key genesys_Accession_1132;
alter table `1133` drop foreign key genesys_Accession_1133;
alter table `1134` drop foreign key genesys_Accession_1134;
alter table `1135` drop foreign key genesys_Accession_1135;
alter table `1136` drop foreign key genesys_Accession_1136;
alter table `1137` drop foreign key genesys_Accession_1137;
alter table `1138` drop foreign key genesys_Accession_1138;
alter table `1139` drop foreign key genesys_Accession_1139;
alter table `114` drop foreign key genesys_Accession_114;
alter table `1140` drop foreign key genesys_Accession_1140;
alter table `1141` drop foreign key genesys_Accession_1141;
alter table `1142` drop foreign key genesys_Accession_1142;
alter table `1143` drop foreign key genesys_Accession_1143;
alter table `1144` drop foreign key genesys_Accession_1144;
alter table `1145` drop foreign key genesys_Accession_1145;
alter table `1146` drop foreign key genesys_Accession_1146;
alter table `1147` drop foreign key genesys_Accession_1147;
alter table `1148` drop foreign key genesys_Accession_1148;
alter table `1149` drop foreign key genesys_Accession_1149;
alter table `115` drop foreign key genesys_Accession_115;
alter table `1150` drop foreign key genesys_Accession_1150;
alter table `1151` drop foreign key genesys_Accession_1151;
alter table `1152` drop foreign key genesys_Accession_1152;
alter table `1153` drop foreign key genesys_Accession_1153;
alter table `1154` drop foreign key genesys_Accession_1154;
alter table `1155` drop foreign key genesys_Accession_1155;
alter table `1156` drop foreign key genesys_Accession_1156;
alter table `1157` drop foreign key genesys_Accession_1157;
alter table `1159` drop foreign key genesys_Accession_1159;
alter table `116` drop foreign key genesys_Accession_116;
alter table `1160` drop foreign key genesys_Accession_1160;
alter table `1161` drop foreign key genesys_Accession_1161;
alter table `1162` drop foreign key genesys_Accession_1162;
alter table `1163` drop foreign key genesys_Accession_1163;
alter table `1164` drop foreign key genesys_Accession_1164;
alter table `1165` drop foreign key genesys_Accession_1165;
alter table `1166` drop foreign key genesys_Accession_1166;
alter table `1167` drop foreign key genesys_Accession_1167;
alter table `1168` drop foreign key genesys_Accession_1168;
alter table `1169` drop foreign key genesys_Accession_1169;
alter table `117` drop foreign key genesys_Accession_117;
alter table `1170` drop foreign key genesys_Accession_1170;
alter table `1171` drop foreign key genesys_Accession_1171;
alter table `1172` drop foreign key genesys_Accession_1172;
alter table `1173` drop foreign key genesys_Accession_1173;
alter table `1174` drop foreign key genesys_Accession_1174;
alter table `1175` drop foreign key genesys_Accession_1175;
alter table `1176` drop foreign key genesys_Accession_1176;
alter table `1177` drop foreign key genesys_Accession_1177;
alter table `1178` drop foreign key genesys_Accession_1178;
alter table `1179` drop foreign key genesys_Accession_1179;
alter table `118` drop foreign key genesys_Accession_118;
alter table `1180` drop foreign key genesys_Accession_1180;
alter table `1181` drop foreign key genesys_Accession_1181;
alter table `1182` drop foreign key genesys_Accession_1182;
alter table `1183` drop foreign key genesys_Accession_1183;
alter table `1184` drop foreign key genesys_Accession_1184;
alter table `1185` drop foreign key genesys_Accession_1185;
alter table `1186` drop foreign key genesys_Accession_1186;
alter table `1187` drop foreign key genesys_Accession_1187;
alter table `1188` drop foreign key genesys_Accession_1188;
alter table `1189` drop foreign key genesys_Accession_1189;
alter table `119` drop foreign key genesys_Accession_119;
alter table `1190` drop foreign key genesys_Accession_1190;
alter table `1191` drop foreign key genesys_Accession_1191;
alter table `1192` drop foreign key genesys_Accession_1192;
alter table `1193` drop foreign key genesys_Accession_1193;
alter table `1194` drop foreign key genesys_Accession_1194;
alter table `1195` drop foreign key genesys_Accession_1195;
alter table `1196` drop foreign key genesys_Accession_1196;
alter table `1197` drop foreign key genesys_Accession_1197;
alter table `1198` drop foreign key genesys_Accession_1198;
alter table `1199` drop foreign key genesys_Accession_1199;
alter table `12` drop foreign key genesys_Accession_12;
alter table `120` drop foreign key genesys_Accession_120;
alter table `1200` drop foreign key genesys_Accession_1200;
alter table `1201` drop foreign key genesys_Accession_1201;
alter table `1202` drop foreign key genesys_Accession_1202;
alter table `1203` drop foreign key genesys_Accession_1203;
alter table `1204` drop foreign key genesys_Accession_1204;
alter table `1205` drop foreign key genesys_Accession_1205;
alter table `1206` drop foreign key genesys_Accession_1206;
alter table `1207` drop foreign key genesys_Accession_1207;
alter table `1208` drop foreign key genesys_Accession_1208;
alter table `1209` drop foreign key genesys_Accession_1209;
alter table `1210` drop foreign key genesys_Accession_1210;
alter table `1211` drop foreign key genesys_Accession_1211;
alter table `1212` drop foreign key genesys_Accession_1212;
alter table `1213` drop foreign key genesys_Accession_1213;
alter table `1214` drop foreign key genesys_Accession_1214;
alter table `1215` drop foreign key genesys_Accession_1215;
alter table `1216` drop foreign key genesys_Accession_1216;
alter table `1217` drop foreign key genesys_Accession_1217;
alter table `1218` drop foreign key genesys_Accession_1218;
alter table `1219` drop foreign key genesys_Accession_1219;
alter table `1220` drop foreign key genesys_Accession_1220;
alter table `1221` drop foreign key genesys_Accession_1221;
alter table `1222` drop foreign key genesys_Accession_1222;
alter table `1223` drop foreign key genesys_Accession_1223;
alter table `1224` drop foreign key genesys_Accession_1224;
alter table `1225` drop foreign key genesys_Accession_1225;
alter table `1226` drop foreign key genesys_Accession_1226;
alter table `1227` drop foreign key genesys_Accession_1227;
alter table `1228` drop foreign key genesys_Accession_1228;
alter table `1229` drop foreign key genesys_Accession_1229;
alter table `123` drop foreign key genesys_Accession_123;
alter table `1230` drop foreign key genesys_Accession_1230;
alter table `1231` drop foreign key genesys_Accession_1231;
alter table `1232` drop foreign key genesys_Accession_1232;
alter table `1233` drop foreign key genesys_Accession_1233;
alter table `1234` drop foreign key genesys_Accession_1234;
alter table `1235` drop foreign key genesys_Accession_1235;
alter table `1236` drop foreign key genesys_Accession_1236;
alter table `1237` drop foreign key genesys_Accession_1237;
alter table `1238` drop foreign key genesys_Accession_1238;
alter table `1239` drop foreign key genesys_Accession_1239;
alter table `124` drop foreign key genesys_Accession_124;
alter table `1240` drop foreign key genesys_Accession_1240;
alter table `1241` drop foreign key genesys_Accession_1241;
alter table `1242` drop foreign key genesys_Accession_1242;
alter table `1243` drop foreign key genesys_Accession_1243;
alter table `1244` drop foreign key genesys_Accession_1244;
alter table `1245` drop foreign key genesys_Accession_1245;
alter table `1246` drop foreign key genesys_Accession_1246;
alter table `1247` drop foreign key genesys_Accession_1247;
alter table `1248` drop foreign key genesys_Accession_1248;
alter table `1249` drop foreign key genesys_Accession_1249;
alter table `125` drop foreign key genesys_Accession_125;
alter table `1250` drop foreign key genesys_Accession_1250;
alter table `1251` drop foreign key genesys_Accession_1251;
alter table `1252` drop foreign key genesys_Accession_1252;
alter table `1253` drop foreign key genesys_Accession_1253;
alter table `1254` drop foreign key genesys_Accession_1254;
alter table `1255` drop foreign key genesys_Accession_1255;
alter table `1256` drop foreign key genesys_Accession_1256;
alter table `1257` drop foreign key genesys_Accession_1257;
alter table `1258` drop foreign key genesys_Accession_1258;
alter table `1259` drop foreign key genesys_Accession_1259;
alter table `126` drop foreign key genesys_Accession_126;
alter table `1260` drop foreign key genesys_Accession_1260;
alter table `1261` drop foreign key genesys_Accession_1261;
alter table `1262` drop foreign key genesys_Accession_1262;
alter table `1263` drop foreign key genesys_Accession_1263;
alter table `1264` drop foreign key genesys_Accession_1264;
alter table `1265` drop foreign key genesys_Accession_1265;
alter table `1266` drop foreign key genesys_Accession_1266;
alter table `1267` drop foreign key genesys_Accession_1267;
alter table `1268` drop foreign key genesys_Accession_1268;
alter table `1269` drop foreign key genesys_Accession_1269;
alter table `127` drop foreign key genesys_Accession_127;
alter table `1270` drop foreign key genesys_Accession_1270;
alter table `1271` drop foreign key genesys_Accession_1271;
alter table `1272` drop foreign key genesys_Accession_1272;
alter table `1273` drop foreign key genesys_Accession_1273;
alter table `128` drop foreign key genesys_Accession_128;
alter table `129` drop foreign key genesys_Accession_129;
alter table `13` drop foreign key genesys_Accession_13;
alter table `130` drop foreign key genesys_Accession_130;
alter table `131` drop foreign key genesys_Accession_131;
alter table `132` drop foreign key genesys_Accession_132;
alter table `14` drop foreign key genesys_Accession_14;
alter table `15` drop foreign key genesys_Accession_15;
alter table `16` drop foreign key genesys_Accession_16;
alter table `17` drop foreign key genesys_Accession_17;
alter table `18` drop foreign key genesys_Accession_18;
alter table `19` drop foreign key genesys_Accession_19;
alter table `2` drop foreign key genesys_Accession_2;
alter table `20` drop foreign key genesys_Accession_20;
alter table `21` drop foreign key genesys_Accession_21;
alter table `22` drop foreign key genesys_Accession_22;
alter table `221` drop foreign key genesys_Accession_221;
alter table `222` drop foreign key genesys_Accession_222;
alter table `223` drop foreign key genesys_Accession_223;
alter table `224` drop foreign key genesys_Accession_224;
alter table `225` drop foreign key genesys_Accession_225;
alter table `226` drop foreign key genesys_Accession_226;
alter table `227` drop foreign key genesys_Accession_227;
alter table `228` drop foreign key genesys_Accession_228;
alter table `229` drop foreign key genesys_Accession_229;
alter table `23` drop foreign key genesys_Accession_23;
alter table `230` drop foreign key genesys_Accession_230;
alter table `231` drop foreign key genesys_Accession_231;
alter table `232` drop foreign key genesys_Accession_232;
alter table `233` drop foreign key genesys_Accession_233;
alter table `234` drop foreign key genesys_Accession_234;
alter table `235` drop foreign key genesys_Accession_235;
alter table `236` drop foreign key genesys_Accession_236;
alter table `237` drop foreign key genesys_Accession_237;
alter table `238` drop foreign key genesys_Accession_238;
alter table `239` drop foreign key genesys_Accession_239;
alter table `24` drop foreign key genesys_Accession_24;
alter table `240` drop foreign key genesys_Accession_240;
alter table `241` drop foreign key genesys_Accession_241;
alter table `242` drop foreign key genesys_Accession_242;
alter table `243` drop foreign key genesys_Accession_243;
alter table `244` drop foreign key genesys_Accession_244;
alter table `245` drop foreign key genesys_Accession_245;
alter table `246` drop foreign key genesys_Accession_246;
alter table `247` drop foreign key genesys_Accession_247;
alter table `25` drop foreign key genesys_Accession_25;
alter table `251` drop foreign key genesys_Accession_251;
alter table `252` drop foreign key genesys_Accession_252;
alter table `253` drop foreign key genesys_Accession_253;
alter table `254` drop foreign key genesys_Accession_254;
alter table `255` drop foreign key genesys_Accession_255;
alter table `256` drop foreign key genesys_Accession_256;
alter table `257` drop foreign key genesys_Accession_257;
alter table `258` drop foreign key genesys_Accession_258;
alter table `259` drop foreign key genesys_Accession_259;
alter table `26` drop foreign key genesys_Accession_26;
alter table `260` drop foreign key genesys_Accession_260;
alter table `261` drop foreign key genesys_Accession_261;
alter table `262` drop foreign key genesys_Accession_262;
alter table `263` drop foreign key genesys_Accession_263;
alter table `264` drop foreign key genesys_Accession_264;
alter table `265` drop foreign key genesys_Accession_265;
alter table `266` drop foreign key genesys_Accession_266;
alter table `27` drop foreign key genesys_Accession_27;
alter table `28` drop foreign key genesys_Accession_28;
alter table `289` drop foreign key genesys_Accession_289;
alter table `29` drop foreign key genesys_Accession_29;
alter table `290` drop foreign key genesys_Accession_290;
alter table `291` drop foreign key genesys_Accession_291;
alter table `292` drop foreign key genesys_Accession_292;
alter table `293` drop foreign key genesys_Accession_293;
alter table `294` drop foreign key genesys_Accession_294;
alter table `295` drop foreign key genesys_Accession_295;
alter table `296` drop foreign key genesys_Accession_296;
alter table `297` drop foreign key genesys_Accession_297;
alter table `298` drop foreign key genesys_Accession_298;
alter table `299` drop foreign key genesys_Accession_299;
alter table `3` drop foreign key genesys_Accession_3;
alter table `30` drop foreign key genesys_Accession_30;
alter table `300` drop foreign key genesys_Accession_300;
alter table `301` drop foreign key genesys_Accession_301;
alter table `302` drop foreign key genesys_Accession_302;
alter table `303` drop foreign key genesys_Accession_303;
alter table `304` drop foreign key genesys_Accession_304;
alter table `305` drop foreign key genesys_Accession_305;
alter table `306` drop foreign key genesys_Accession_306;
alter table `307` drop foreign key genesys_Accession_307;
alter table `308` drop foreign key genesys_Accession_308;
alter table `309` drop foreign key genesys_Accession_309;
alter table `31` drop foreign key genesys_Accession_31;
alter table `32` drop foreign key genesys_Accession_32;
alter table `320` drop foreign key genesys_Accession_320;
alter table `321` drop foreign key genesys_Accession_321;
alter table `322` drop foreign key genesys_Accession_322;
alter table `323` drop foreign key genesys_Accession_323;
alter table `324` drop foreign key genesys_Accession_324;
alter table `325` drop foreign key genesys_Accession_325;
alter table `326` drop foreign key genesys_Accession_326;
alter table `327` drop foreign key genesys_Accession_327;
alter table `328` drop foreign key genesys_Accession_328;
alter table `329` drop foreign key genesys_Accession_329;
alter table `33` drop foreign key genesys_Accession_33;
alter table `330` drop foreign key genesys_Accession_330;
alter table `331` drop foreign key genesys_Accession_331;
alter table `332` drop foreign key genesys_Accession_332;
alter table `34` drop foreign key genesys_Accession_34;
alter table `347` drop foreign key genesys_Accession_347;
alter table `348` drop foreign key genesys_Accession_348;
alter table `349` drop foreign key genesys_Accession_349;
alter table `35` drop foreign key genesys_Accession_35;
alter table `350` drop foreign key genesys_Accession_350;
alter table `351` drop foreign key genesys_Accession_351;
alter table `352` drop foreign key genesys_Accession_352;
alter table `353` drop foreign key genesys_Accession_353;
alter table `354` drop foreign key genesys_Accession_354;
alter table `356` drop foreign key genesys_Accession_356;
alter table `357` drop foreign key genesys_Accession_357;
alter table `358` drop foreign key genesys_Accession_358;
alter table `359` drop foreign key genesys_Accession_359;
alter table `36` drop foreign key genesys_Accession_36;
alter table `360` drop foreign key genesys_Accession_360;
alter table `361` drop foreign key genesys_Accession_361;
alter table `362` drop foreign key genesys_Accession_362;
alter table `363` drop foreign key genesys_Accession_363;
alter table `364` drop foreign key genesys_Accession_364;
alter table `365` drop foreign key genesys_Accession_365;
alter table `366` drop foreign key genesys_Accession_366;
alter table `367` drop foreign key genesys_Accession_367;
alter table `368` drop foreign key genesys_Accession_368;
alter table `369` drop foreign key genesys_Accession_369;
alter table `37` drop foreign key genesys_Accession_37;
alter table `370` drop foreign key genesys_Accession_370;
alter table `371` drop foreign key genesys_Accession_371;
alter table `372` drop foreign key genesys_Accession_372;
alter table `373` drop foreign key genesys_Accession_373;
alter table `374` drop foreign key genesys_Accession_374;
alter table `375` drop foreign key genesys_Accession_375;
alter table `376` drop foreign key genesys_Accession_376;
alter table `377` drop foreign key genesys_Accession_377;
alter table `378` drop foreign key genesys_Accession_378;
alter table `379` drop foreign key genesys_Accession_379;
alter table `38` drop foreign key genesys_Accession_38;
alter table `380` drop foreign key genesys_Accession_380;
alter table `381` drop foreign key genesys_Accession_381;
alter table `382` drop foreign key genesys_Accession_382;
alter table `383` drop foreign key genesys_Accession_383;
alter table `384` drop foreign key genesys_Accession_384;
alter table `385` drop foreign key genesys_Accession_385;
alter table `386` drop foreign key genesys_Accession_386;
alter table `387` drop foreign key genesys_Accession_387;
alter table `388` drop foreign key genesys_Accession_388;
alter table `389` drop foreign key genesys_Accession_389;
alter table `39` drop foreign key genesys_Accession_39;
alter table `390` drop foreign key genesys_Accession_390;
alter table `391` drop foreign key genesys_Accession_391;
alter table `392` drop foreign key genesys_Accession_392;
alter table `393` drop foreign key genesys_Accession_393;
alter table `394` drop foreign key genesys_Accession_394;
alter table `395` drop foreign key genesys_Accession_395;
alter table `396` drop foreign key genesys_Accession_396;
alter table `397` drop foreign key genesys_Accession_397;
alter table `398` drop foreign key genesys_Accession_398;
alter table `399` drop foreign key genesys_Accession_399;
alter table `4` drop foreign key genesys_Accession_4;
alter table `40` drop foreign key genesys_Accession_40;
alter table `400` drop foreign key genesys_Accession_400;
alter table `401` drop foreign key genesys_Accession_401;
alter table `402` drop foreign key genesys_Accession_402;
alter table `403` drop foreign key genesys_Accession_403;
alter table `404` drop foreign key genesys_Accession_404;
alter table `405` drop foreign key genesys_Accession_405;
alter table `406` drop foreign key genesys_Accession_406;
alter table `407` drop foreign key genesys_Accession_407;
alter table `408` drop foreign key genesys_Accession_408;
alter table `409` drop foreign key genesys_Accession_409;
alter table `41` drop foreign key genesys_Accession_41;
alter table `410` drop foreign key genesys_Accession_410;
alter table `411` drop foreign key genesys_Accession_411;
alter table `412` drop foreign key genesys_Accession_412;
alter table `413` drop foreign key genesys_Accession_413;
alter table `414` drop foreign key genesys_Accession_414;
alter table `415` drop foreign key genesys_Accession_415;
alter table `416` drop foreign key genesys_Accession_416;
alter table `417` drop foreign key genesys_Accession_417;
alter table `418` drop foreign key genesys_Accession_418;
alter table `419` drop foreign key genesys_Accession_419;
alter table `42` drop foreign key genesys_Accession_42;
alter table `420` drop foreign key genesys_Accession_420;
alter table `421` drop foreign key genesys_Accession_421;
alter table `422` drop foreign key genesys_Accession_422;
alter table `423` drop foreign key genesys_Accession_423;
alter table `424` drop foreign key genesys_Accession_424;
alter table `425` drop foreign key genesys_Accession_425;
alter table `426` drop foreign key genesys_Accession_426;
alter table `427` drop foreign key genesys_Accession_427;
alter table `428` drop foreign key genesys_Accession_428;
alter table `429` drop foreign key genesys_Accession_429;
alter table `43` drop foreign key genesys_Accession_43;
alter table `430` drop foreign key genesys_Accession_430;