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

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


EXEC P_ALTERPK 'PK_MDS_SETOFFDIM_L', 'T_MDS_SETOFFDIM_L', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_MDS_SETOFFDIM_ENTRY', 'T_MDS_SETOFFDIM_ENTRY', 'FENTRYID', '1';

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


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