alter table app_inspection drop constraint app_inspection_project_app_id_fk; alter table app_inspection add constraint app_inspection_app_id_fk foreign key (project_app_id) references app;