/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_MSPLAN_EQTNEEDPLAN', 'T_MSPLAN_EQTNEEDPLAN', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MSPLAN_EQTNEEDPLAN_FK') CREATE INDEX IDX_MSPLAN_EQTNEEDPLAN_FK ON T_MSPLAN_EQTNEEDPLAN ( FBILLSTATUS );


 EXEC P_ALTERPK 'PK_MSPLAN_EQTNEEDPLANENTRY', 'T_MSPLAN_EQTNEEDPLANENTRY', 'FENTRYID', '1';

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



/**End D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
