/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MSPLAN_constraint.sql **/
 EXEC P_ALTERPK 'PK_MSPLAN_DCENTRY_L', 'T_MSPLAN_DATACONFIGENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_DCENTRY_L') CREATE INDEX IDX_MSPLAN_DCENTRY_L ON T_MSPLAN_DATACONFIGENTRY_L ( FENTRYID ,FLOCALEID );

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