/**Begin D:\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_SUMMARYCONFIG_SNP', 'T_FPM_SUMMARYCONFIG_SNP', 'FID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_BODYSYS_SUMMARYCONFIG') CREATE INDEX IDX_FPM_BODYSYS_SUMMARYCONFIG ON T_FPM_SUMMARYCONFIG_SNP ( FBODYSYSID ,FSUMMARYCONFIGID );


 EXEC P_ALTERPK 'PK_T_FPM_SUMMARYCONFIG_SNP_L', 'T_FPM_SUMMARYCONFIG_SNP_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_SUMMAINPARAM_SNP', 'T_FPM_SUMMAINPARAM_SNP', 'FENTRYID', '1';

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



/**End D:\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
