226 | | CREATE TABLE !`BiobankSubCategory` ( |
227 | | |
228 | | !`id` int(11) NOT NULL, |
229 | | |
230 | | PRIMARY KEY (!`id`), |
231 | | |
232 | | CONSTRAINT !`biobanksubcategory_ibfk_1` FOREIGN KEY (!`id`) REFERENCES !`OntologyTerm` (!`id`) ON DELETE CASCADE |
233 | | |
234 | | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
235 | | |
236 | | |
237 | | |
238 | | |
239 | | |
240 | | INSERT INTO !BiobankSubCategory (id) |
241 | | |
242 | | SELECT id |
243 | | |
244 | | FROM !BiobankCategory |
245 | | |
246 | | WHERE id NOT IN ("281", "284", "285") ; |
247 | | |
248 | | |
249 | | |
250 | | CREATE TABLE !BiobankPersonRole ( |
251 | | |
252 | | id INTEGER NOT NULL |
253 | | |
254 | | , PRIMARY KEY(id) |
255 | | |
256 | | ); |
257 | | |
258 | | |
259 | | |
260 | | alter table !OntologyTerm modify column !__Type enum('!OntologyTerm','!PersonRole','Species','!AlternateId','!BiobankCategory','!BiobankTopic','!BiobankDataType', '!BiobankSubCategory','!BiobankPersonRole'); |
261 | | |
262 | | |
263 | | |
264 | | |
265 | | |
266 | | ALTER TABLE Biobank DROP FOREIGN KEY biobank_ibfk_5; |
267 | | |
268 | | |
269 | | |
270 | | ALTER TABLE !BiobankSubCategory ADD FOREIGN KEY (id) REFERENCES !OntologyTerm (id) ON DELETE CASCADE; |
271 | | |
272 | | |
273 | | |
274 | | ALTER TABLE !`BiobankSubCategory` |
275 | | |
276 | | ADD CONSTRAINT !`biobank_ibfk_5` |
277 | | |
278 | | FOREIGN KEY (!`id`) REFERENCES !OntologyTerm (id) ON DELETE CASCADE; this exists already from his creation) |
279 | | |
280 | | |
281 | | |
282 | | ALTER TABLE Biobank ADD FOREIGN KEY (!SubCategory) REFERENCES !BiobankSubCategory (id) ON DELETE RESTRICT; |
283 | | |
284 | | |
285 | | |
286 | | ALTER TABLE !`Biobank` |
287 | | |
288 | | ADD CONSTRAINT !`biobank_ibfk_885` |
289 | | |
290 | | FOREIGN KEY (!`SubCategory`) REFERENCES !BiobankSubCategory (id) ON DELETE CASCADE; |
291 | | |
292 | | |
293 | | |
294 | | |
295 | | |
296 | | |
297 | | |
298 | | DELETE FROM !BiobankCategory |
299 | | |
300 | | WHERE id NOT IN ("281", "284", "285") ; |
301 | | |
302 | | |
303 | | |
304 | | |
305 | | |
306 | | |
307 | | |
308 | | ALTER TABLE !BiobankPersonRole ADD FOREIGN KEY (id) REFERENCES !PersonRole (id) ON DELETE CASCADE; |
309 | | |
310 | | |
311 | | |
312 | | |
313 | | |
314 | | ALTER TABLE !`BiobankPersonRole` |
315 | | |
316 | | ADD CONSTRAINT !`BiobankPersonRole_ibfk_33` |
317 | | |
318 | | FOREIGN KEY (!`id`) REFERENCES !PersonRole (id) ON DELETE CASCADE; |
319 | | |
320 | | |
321 | | |
322 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='282'; |
323 | | |
324 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='283'; |
325 | | |
326 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='286'; |
327 | | |
328 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='287'; |
329 | | |
330 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='288'; |
331 | | |
332 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='289'; |
333 | | |
334 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='290'; |
335 | | |
336 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='291'; |
337 | | |
338 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='292'; |
339 | | |
340 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='293'; |
341 | | |
342 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='295'; |
343 | | |
344 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='296'; |
345 | | |
346 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='297'; |
347 | | |
348 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='298'; |
349 | | |
350 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='564'; |
351 | | |
352 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='299'; |
353 | | |
354 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='294'; |
355 | | |
356 | | |
357 | | |
358 | | |
359 | | |
360 | | |
361 | | |
362 | | select * from !OntologyTerm where name="Software Engineer"; |
363 | | |
364 | | delete from !OntologyTerm where id=561; |
365 | | |
366 | | select * from !BiobankPersonRole; |
367 | | |
368 | | insert into !BiobankPersonRole values(561); |
369 | | |
370 | | |
371 | | |
372 | | select * from !OntologyTerm where name="coordinator"; |
373 | | |
374 | | delete from !OntologyTerm where id=593; |
375 | | |
376 | | select * from !BiobankPersonRole; |
377 | | |
378 | | insert into !BiobankPersonRole values(277); |
379 | | |
380 | | |
381 | | |
382 | | select * from !OntologyTerm where name="postdoc"; |
383 | | |
384 | | delete from !OntologyTerm where id=594; |
385 | | |
386 | | select * from !BiobankPersonRole; |
387 | | |
388 | | insert into !BiobankPersonRole values(278); |
389 | | |
390 | | |
391 | | |
392 | | select * from !OntologyTerm where name="administrator"; |
393 | | |
394 | | delete from !OntologyTerm where id=595; |
395 | | |
396 | | select * from !BiobankPersonRole; |
397 | | |
398 | | insert into !BiobankPersonRole values(279); |
399 | | |
400 | | |
401 | | |
402 | | |
403 | | |
404 | | select * from !OntologyTerm where name="IT responsible"; |
405 | | |
406 | | delete from !OntologyTerm where id=596; |
407 | | |
408 | | select * from !BiobankPersonRole; |
409 | | |
410 | | insert into !BiobankPersonRole values(280); |
411 | | |
412 | | |
413 | | |
414 | | //how to make values of Person Role appear in ui , you have to delete some old from DB : |
415 | | |
416 | | |
417 | | |
418 | | create a new Coordinator Role in the ui and remember the id 591 (select * from !PersonRole; --> the latest one, or check from ui ) |
419 | | |
420 | | correct the Person table with t he new entry(that is not show in the ui) : |
421 | | |
422 | | |
423 | | |
424 | | update Person set Roles=591 where Roles=277 |
425 | | |
426 | | |
427 | | |
428 | | delete the old one : |
429 | | |
430 | | |
431 | | |
432 | | delete from !PersonRole where id=277; |
433 | | |
434 | | delete from !BiobankPersonRole where id=277; |
435 | | |
436 | | delete from !OntologyTerm where id=277; |
437 | | |
438 | | |
439 | | |
440 | | repeat the same step for all of them |
441 | | |
442 | | |
443 | | |
444 | | |
445 | | |
446 | | COMMIT; |
447 | | |
448 | | |
449 | | |
450 | | =========================================================== |
451 | | |
452 | | !SubCategory |
453 | | |
454 | | biobank_ibfk_1 |
455 | | |
456 | | CONSTRAINT !`biobank_ibfk_5` FOREIGN KEY (!`SubCategory`) REFERENCES !`BiobankSubCategory` (!`id`) |
457 | | |
458 | | CONSTRAINT !`biobank_ibfk_5` FOREIGN KEY (!`SubCategory`) REFERENCES !`BiobankSubCategory` (!`id`), |
459 | | |
460 | | |
461 | | |
462 | | |
463 | | |
464 | | CREATE TABLE !BiobankPersonRole ( |
465 | | |
466 | | id INTEGER NOT NULL |
467 | | |
468 | | , PRIMARY KEY(id) |
469 | | |
470 | | ); |
471 | | |
472 | | |
473 | | |
474 | | ALTER TABLE !BiobankPersonRole ADD FOREIGN KEY (id) REFERENCES !PersonRole (id) ON DELETE CASCADE; |
475 | | |
476 | | |
477 | | |
478 | | alter table !OntologyTerm modify column !__Type enum('!OntologyTerm','!PersonRole','Species','!AlternateId','!BiobankCategory','!BiobankTopic','!BiobankDataType', '!BiobankSubCategory','!BiobankPersonRole'); |
479 | | |
480 | | |
481 | | |
482 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='282'; |
483 | | |
484 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='283'; |
485 | | |
486 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='286'; |
487 | | |
488 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='287'; |
489 | | |
490 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='288'; |
491 | | |
492 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='289'; |
493 | | |
494 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='290'; |
495 | | |
496 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='291'; |
497 | | |
498 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='292'; |
499 | | |
500 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='293'; |
501 | | |
502 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='295'; |
503 | | |
504 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='296'; |
505 | | |
506 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='297'; |
507 | | |
508 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='298'; |
509 | | |
510 | | UPDATE !OntologyTerm SET !__Type="!BiobankSubCategory" WHERE id='564'; |
511 | | |
512 | | |
513 | | |
514 | | /*below we resolve the problem of duplicate entries in ontology term for !PersonRole*/ |
515 | | |
516 | | |
517 | | |
518 | | select * from !OntologyTerm where name="Software Engineer"; |
519 | | |
520 | | delete from !OntologyTerm where id=561; |
521 | | |
522 | | select * from !BiobankPersonRole; |
523 | | |
524 | | insert into !BiobankPersonRole values(561); |
525 | | |
526 | | |
527 | | |
528 | | select * from !OntologyTerm where name="coordinator"; |
529 | | |
530 | | delete from !OntologyTerm where id=593; |
531 | | |
532 | | select * from !BiobankPersonRole; |
533 | | |
534 | | insert into !BiobankPersonRole values(277); |
535 | | |
536 | | |
537 | | |
538 | | select * from !OntologyTerm where name="postdoc"; |
539 | | |
540 | | delete from !OntologyTerm where id=594; |
541 | | |
542 | | select * from !BiobankPersonRole; |
543 | | |
544 | | insert into !BiobankPersonRole values(278); |
545 | | |
546 | | |
547 | | |
548 | | select * from !OntologyTerm where name="administrator"; |
549 | | |
550 | | delete from !OntologyTerm where id=595; |
551 | | |
552 | | select * from !BiobankPersonRole; |
553 | | |
554 | | insert into !BiobankPersonRole values(279); |
555 | | |
556 | | |
557 | | |
558 | | |
559 | | |
560 | | select * from !OntologyTerm where name="IT responsible"; |
561 | | |
562 | | delete from !OntologyTerm where id=596; |
563 | | |
564 | | select * from !BiobankPersonRole; |
565 | | |
566 | | insert into !BiobankPersonRole values(280); |
567 | | |
568 | | |
569 | | |
570 | | |
571 | | |
572 | | COMMIT; |
| 211 | |
| 212 | {{{ |
| 213 | CREATE TABLE !`BiobankSubCategory` ( |
| 214 | |
| 215 | !`id` int(11) NOT NULL, |
| 216 | |
| 217 | PRIMARY KEY (!`id` ), |
| 218 | |
| 219 | CONSTRAINT !`biobanksubcategory_ibfk_1` FOREIGN KEY (!`id` ) REFERENCES !`OntologyTerm` (!`id` ) ON DELETE CASCADE |
| 220 | |
| 221 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; |
| 222 | |
| 223 | INSERT INTO !BiobankSubCategory (id) |
| 224 | |
| 225 | SELECT id |
| 226 | |
| 227 | FROM !BiobankCategory |
| 228 | |
| 229 | WHERE id NOT IN ("281", "284", "285") ; |
| 230 | |
| 231 | CREATE TABLE !BiobankPersonRole ( |
| 232 | |
| 233 | id INTEGER NOT NULL |
| 234 | |
| 235 | , PRIMARY KEY(id) |
| 236 | |
| 237 | ); |
| 238 | |
| 239 | alter table !OntologyTerm modify column !__ Type enum('!OntologyTerm ','!PersonRole ','Species','!AlternateId ','!BiobankCategory ','!BiobankTopic ','!BiobankDataType ', '!BiobankSubCategory ','!BiobankPersonRole '); |
| 240 | |
| 241 | ALTER TABLE Biobank DROP FOREIGN KEY biobank_ibfk_5; |
| 242 | |
| 243 | ALTER TABLE !BiobankSubCategory ADD FOREIGN KEY (id) REFERENCES !OntologyTerm (id) ON DELETE CASCADE; |
| 244 | |
| 245 | ALTER TABLE !`BiobankSubCategory` |
| 246 | |
| 247 | ADD CONSTRAINT !`biobank_ibfk_5` |
| 248 | |
| 249 | FOREIGN KEY (!`id` ) REFERENCES !OntologyTerm (id) ON DELETE CASCADE; this exists already from his creation) |
| 250 | |
| 251 | ALTER TABLE Biobank ADD FOREIGN KEY (!SubCategory ) REFERENCES !BiobankSubCategory (id) ON DELETE RESTRICT; |
| 252 | |
| 253 | ALTER TABLE !`Biobank` |
| 254 | |
| 255 | ADD CONSTRAINT !`biobank_ibfk_885` |
| 256 | |
| 257 | FOREIGN KEY (!`SubCategory` ) REFERENCES !BiobankSubCategory (id) ON DELETE CASCADE; |
| 258 | |
| 259 | DELETE FROM !BiobankCategory |
| 260 | |
| 261 | WHERE id NOT IN ("281", "284", "285") ; |
| 262 | |
| 263 | ALTER TABLE !BiobankPersonRole ADD FOREIGN KEY (id) REFERENCES !PersonRole (id) ON DELETE CASCADE; |
| 264 | |
| 265 | ALTER TABLE !`BiobankPersonRole` |
| 266 | |
| 267 | ADD CONSTRAINT !`BiobankPersonRole_ibfk_33` |
| 268 | |
| 269 | FOREIGN KEY (!`id` ) REFERENCES !PersonRole (id) ON DELETE CASCADE; |
| 270 | |
| 271 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='282'; |
| 272 | |
| 273 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='283'; |
| 274 | |
| 275 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='286'; |
| 276 | |
| 277 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='287'; |
| 278 | |
| 279 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='288'; |
| 280 | |
| 281 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='289'; |
| 282 | |
| 283 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='290'; |
| 284 | |
| 285 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='291'; |
| 286 | |
| 287 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='292'; |
| 288 | |
| 289 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='293'; |
| 290 | |
| 291 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='295'; |
| 292 | |
| 293 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='296'; |
| 294 | |
| 295 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='297'; |
| 296 | |
| 297 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='298'; |
| 298 | |
| 299 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='564'; |
| 300 | |
| 301 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='299'; |
| 302 | |
| 303 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='294'; |
| 304 | |
| 305 | select * from !OntologyTerm where name="Software Engineer"; |
| 306 | |
| 307 | delete from !OntologyTerm where id=561; |
| 308 | |
| 309 | select * from !BiobankPersonRole ; |
| 310 | |
| 311 | insert into !BiobankPersonRole values(561); |
| 312 | |
| 313 | select * from !OntologyTerm where name="coordinator"; |
| 314 | |
| 315 | delete from !OntologyTerm where id=593; |
| 316 | |
| 317 | select * from !BiobankPersonRole ; |
| 318 | |
| 319 | insert into !BiobankPersonRole values(277); |
| 320 | |
| 321 | select * from !OntologyTerm where name="postdoc"; |
| 322 | |
| 323 | delete from !OntologyTerm where id=594; |
| 324 | |
| 325 | select * from !BiobankPersonRole ; |
| 326 | |
| 327 | insert into !BiobankPersonRole values(278); |
| 328 | |
| 329 | select * from !OntologyTerm where name="administrator"; |
| 330 | |
| 331 | delete from !OntologyTerm where id=595; |
| 332 | |
| 333 | select * from !BiobankPersonRole ; |
| 334 | |
| 335 | insert into !BiobankPersonRole values(279); |
| 336 | |
| 337 | select * from !OntologyTerm where name="IT responsible"; |
| 338 | |
| 339 | delete from !OntologyTerm where id=596; |
| 340 | |
| 341 | select * from !BiobankPersonRole ; |
| 342 | |
| 343 | insert into !BiobankPersonRole values(280); |
| 344 | |
| 345 | //how to make values of Person Role appear in ui , you have to delete some old from DB : |
| 346 | |
| 347 | create a new Coordinator Role in the ui and remember the id 591 (select * from !PersonRole ; --> the latest one, or check from ui ) |
| 348 | |
| 349 | correct the Person table with t he new entry(that is not show in the ui) : |
| 350 | |
| 351 | update Person set Roles=591 where Roles=277 |
| 352 | |
| 353 | delete the old one : |
| 354 | |
| 355 | delete from !PersonRole where id=277; |
| 356 | |
| 357 | delete from !BiobankPersonRole where id=277; |
| 358 | |
| 359 | delete from !OntologyTerm where id=277; |
| 360 | |
| 361 | repeat the same step for all of them |
| 362 | |
| 363 | COMMIT; |
| 364 | |
| 365 | =========================================================== |
| 366 | |
| 367 | !SubCategory |
| 368 | |
| 369 | biobank_ibfk_1 |
| 370 | |
| 371 | CONSTRAINT !`biobank_ibfk_5` FOREIGN KEY (!`SubCategory` ) REFERENCES !`BiobankSubCategory` (!`id` ) |
| 372 | |
| 373 | CONSTRAINT !`biobank_ibfk_5` FOREIGN KEY (!`SubCategory` ) REFERENCES !`BiobankSubCategory` (!`id` ), |
| 374 | |
| 375 | CREATE TABLE !BiobankPersonRole ( |
| 376 | |
| 377 | id INTEGER NOT NULL |
| 378 | |
| 379 | , PRIMARY KEY(id) |
| 380 | |
| 381 | ); |
| 382 | |
| 383 | ALTER TABLE !BiobankPersonRole ADD FOREIGN KEY (id) REFERENCES !PersonRole (id) ON DELETE CASCADE; |
| 384 | |
| 385 | alter table !OntologyTerm modify column !__ Type enum('!OntologyTerm ','!PersonRole ','Species','!AlternateId ','!BiobankCategory ','!BiobankTopic ','!BiobankDataType ', '!BiobankSubCategory ','!BiobankPersonRole '); |
| 386 | |
| 387 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='282'; |
| 388 | |
| 389 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='283'; |
| 390 | |
| 391 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='286'; |
| 392 | |
| 393 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='287'; |
| 394 | |
| 395 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='288'; |
| 396 | |
| 397 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='289'; |
| 398 | |
| 399 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='290'; |
| 400 | |
| 401 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='291'; |
| 402 | |
| 403 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='292'; |
| 404 | |
| 405 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='293'; |
| 406 | |
| 407 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='295'; |
| 408 | |
| 409 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='296'; |
| 410 | |
| 411 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='297'; |
| 412 | |
| 413 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='298'; |
| 414 | |
| 415 | UPDATE !OntologyTerm SET !__ Type="!BiobankSubCategory " WHERE id='564'; |
| 416 | |
| 417 | /*below we resolve the problem of duplicate entries in ontology term for !PersonRole */ |
| 418 | |
| 419 | select * from !OntologyTerm where name="Software Engineer"; |
| 420 | |
| 421 | delete from !OntologyTerm where id=561; |
| 422 | |
| 423 | select * from !BiobankPersonRole ; |
| 424 | |
| 425 | insert into !BiobankPersonRole values(561); |
| 426 | |
| 427 | select * from !OntologyTerm where name="coordinator"; |
| 428 | |
| 429 | delete from !OntologyTerm where id=593; |
| 430 | |
| 431 | select * from !BiobankPersonRole ; |
| 432 | |
| 433 | insert into !BiobankPersonRole values(277); |
| 434 | |
| 435 | select * from !OntologyTerm where name="postdoc"; |
| 436 | |
| 437 | delete from !OntologyTerm where id=594; |
| 438 | |
| 439 | select * from !BiobankPersonRole ; |
| 440 | |
| 441 | insert into !BiobankPersonRole values(278); |
| 442 | |
| 443 | select * from !OntologyTerm where name="administrator"; |
| 444 | |
| 445 | delete from !OntologyTerm where id=595; |
| 446 | |
| 447 | select * from !BiobankPersonRole ; |
| 448 | |
| 449 | insert into !BiobankPersonRole values(279); |
| 450 | |
| 451 | select * from !OntologyTerm where name="IT responsible"; |
| 452 | |
| 453 | delete from !OntologyTerm where id=596; |
| 454 | |
| 455 | select * from !BiobankPersonRole ; |
| 456 | |
| 457 | insert into !BiobankPersonRole values(280); |
| 458 | |
| 459 | COMMIT; |
| 460 | }}} |