diff --git a/db_scripts/mosip_prereg/ddl/batch_job_execution.sql b/db_scripts/mosip_prereg/ddl/batch_job_execution.sql index cebd2d9ba9..20f74fdbe4 100644 --- a/db_scripts/mosip_prereg/ddl/batch_job_execution.sql +++ b/db_scripts/mosip_prereg/ddl/batch_job_execution.sql @@ -13,7 +13,7 @@ CREATE TABLE prereg.batch_job_execution EXIT_MESSAGE VARCHAR(2500) , LAST_UPDATED TIMESTAMP, constraint JOB_INST_EXEC_FK foreign key (JOB_INSTANCE_ID) - references prereg.batch_job_instance(JOB_INSTANCE_ID) + references BATCH_JOB_INSTANCE(JOB_INSTANCE_ID) ) WITH ( OIDS = FALSE