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

 EXEC P_ALTERPK 'PK_T_BOTP_CONVERTLOG', 'T_BOTP_CONVERTLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BOTP_CONVERTLOG' AND KSQL_INDNAME = 'IDX_BOTP_CONVERTLOG_OPTYPE') CREATE INDEX IDX_BOTP_CONVERTLOG_OPTYPE ON T_BOTP_CONVERTLOG ( FOPTYPE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BOTP_CONVERTLOG' AND KSQL_INDNAME = 'IDX_BOTP_CONVERTLOG_STARTTIME') CREATE INDEX IDX_BOTP_CONVERTLOG_STARTTIME ON T_BOTP_CONVERTLOG ( FSTARTTIME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BOTP_CONVERTLOG' AND KSQL_INDNAME = 'IDX_BOTP_CONVERTLOG_FSBILLNO') CREATE INDEX IDX_BOTP_CONVERTLOG_FSBILLNO ON T_BOTP_CONVERTLOG ( FSBILLNO );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_BOTP_CONVERTLOG' AND KSQL_INDNAME = 'IDX_BOTP_CONVERTLOG_FTBILLNO') CREATE INDEX IDX_BOTP_CONVERTLOG_FTBILLNO ON T_BOTP_CONVERTLOG ( FTBILLNO );



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