5 description => "Adjust FK constraint for parent item type",
8 my ($dbh, $out) = @$args{qw(dbh out)};
9 if( foreign_key_exists('itemtypes', 'itemtypes_ibfk_1') ) {
11 alter table itemtypes drop foreign key itemtypes_ibfk_1;
15 alter table itemtypes add foreign key itemtypes_ibfk_1 (`parent_type`) REFERENCES `itemtypes` (`itemtype`);