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

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


 EXEC P_ALTERPK 'PK_MDS_CLEARSETLOG_L', 'T_MDS_CLEARSETLOG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_MDS_CLEARSETLOGENTRY', 'T_MDS_CLEARSETLOGENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_CLEARSETLOGENTRY') CREATE INDEX IDX_MDS_CLEARSETLOGENTRY ON T_MDS_CLEARSETLOGENTRY ( FID ,FSEQ );



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