/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SM_QUOTATIONBILL', 'T_SM_QUOTATIONBILL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_QUOTION_FBILLNO') CREATE INDEX IDX_SM_QUOTION_FBILLNO ON T_SM_QUOTATIONBILL ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_SM_QUOTATIONENTRY', 'T_SM_QUOTATIONENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_QUOTIONENTRY_FID') CREATE INDEX IDX_SM_QUOTIONENTRY_FID ON T_SM_QUOTATIONENTRY ( FID );



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