/**Begin D:\k3Cloud\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_MDS_FCDATADTLENT_BAK', 'T_MDS_FCDATADTLENT_BAK', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_FCDATADTLENT_BAK_FID') CREATE INDEX IDX_MDS_FCDATADTLENT_BAK_FID ON T_MDS_FCDATADTLENT_BAK ( FID );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_FCDATADTLENT_BAK_FSID') CREATE INDEX IDX_MDS_FCDATADTLENT_BAK_FSID ON T_MDS_FCDATADTLENT_BAK ( FSOURCEDATAID );


 EXEC P_ALTERPK 'PK_MDS_FCDATATSENTRY_ALGOX', 'T_MDS_FCDATATSENTRY_ALGOX', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_FCDATATSENT_ALGOX_FID') CREATE INDEX IDX_MDS_FCDATATSENT_ALGOX_FID ON T_MDS_FCDATATSENTRY_ALGOX ( FID );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_MDS_FCDATATSENT_ALGOX_FSID') CREATE INDEX IDX_MDS_FCDATATSENT_ALGOX_FSID ON T_MDS_FCDATATSENTRY_ALGOX ( FSOURCEDATAID );



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