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

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


 EXEC P_ALTERPK 'PK_T_SM_LOGISTICSINFOENTRY', 'T_SM_LOGISTICSINFOENTRY', 'FENTRYID', '1';

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



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