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

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


 EXEC P_ALTERPK 'PK_MDS_SYSCONFIG_L', 'T_MDS_SYSCONFIG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_MDS_SYSCONFIGENTRY', 'T_MDS_SYSCONFIGENTRY', 'FENTRYID', '1';

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



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