/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/

 EXEC P_ALTERPK 'PK_BD_IGNOREREFCHECK', 'T_BD_IGNOREREFCHECK', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_IGNOREREFCHECK_BILL') CREATE INDEX IDX_BD_IGNOREREFCHECK_BILL ON T_BD_IGNOREREFCHECK ( FENTITYNUMBER );


EXEC p_DropIdx 'IDX_BOTP_BILLTRACKER_TID', 'T_BOTP_BILLTRACKER';
EXEC p_DropIdx 'IDX_BOTP_BILLTRACKER_SID', 'T_BOTP_BILLTRACKER';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BOTP_BILLTRACKER_TID') CREATE INDEX IDX_BOTP_BILLTRACKER_TID ON T_BOTP_BILLTRACKER ( FTBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BOTP_BILLTRACKER_SID') CREATE INDEX IDX_BOTP_BILLTRACKER_SID ON T_BOTP_BILLTRACKER ( FSBILLID );


/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
