/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_MDS_EVENT_L', 'T_MDS_EVENT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_EVENT_L_ID') CREATE INDEX IDX_MDS_EVENT_L_ID ON T_MDS_EVENT_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_MDS_EVENT', 'T_MDS_EVENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_EVENT_NU') CREATE INDEX IDX_MDS_EVENT_NU ON T_MDS_EVENT ( FNUMBER );



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