 EXEC P_ALTERPK 'PK_FMM_PROJECT_MCC_CUST', 'T_FMM_PROJECT_MCC_CUST', 'FENTRYID', '1'; 
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMPD_PROJECTMCUST_FID') CREATE INDEX IDX_PMPD_PROJECTMCUST_FID ON T_FMM_PROJECT_MCC_CUST ( FID );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PMPD_PROJECTMCUST_FSEQ') CREATE INDEX IDX_PMPD_PROJECTMCUST_FSEQ ON T_FMM_PROJECT_MCC_CUST ( FSEQ ); 
 
 
 EXEC P_ALTERPK 'PK_FMM_PROJECT_CHANGE', 'T_FMM_PROJECT_CHANGE', 'FID', '1'; 
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROJECT_FNUM') CREATE INDEX IDX_FMM_PROJECT_FNUM ON T_FMM_PROJECT_CHANGE ( FNUMBER );
 

 EXEC P_ALTERPK 'PK_FMM_PCHANG_CUST', 'T_FMM_PCHANG_CUST', 'FENTRYID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PCHANG_CUST_FID') CREATE INDEX IDX_FMM_PCHANG_CUST_FID ON T_FMM_PCHANG_CUST ( FID );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PCHANG_CUST_FSEQ') CREATE INDEX IDX_FMM_PCHANG_CUST_FSEQ ON T_FMM_PCHANG_CUST ( FSEQ );
 

 EXEC P_ALTERPK 'PK_FMM_PROJECT_CHANGE_L', 'T_FMM_PROJECT_CHANGE_L', 'FPKID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROJECT_CHANGE_L') CREATE INDEX IDX_FMM_PROJECT_CHANGE_L  ON T_FMM_PROJECT_CHANGE_L ( FID ,FLOCALEID );
 
 
 EXEC P_ALTERPK 'PK_FMM_PCHANGELOG', 'T_FMM_PCHANGELOG', 'FID', '1'; 
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PCHANGELOG_FPNUMBER') CREATE INDEX IDX_FMM_PCHANGELOG_FPNUMBER ON T_FMM_PCHANGELOG ( FPNUMBER );
 
 
 EXEC P_ALTERPK 'PK_FMM_PCHANGELOG_ENTRY', 'T_FMM_PCHANGELOG_ENTRY', 'FENTRYID', '1'; 
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PCGLOG_ENTRY_FID') CREATE INDEX IDX_FMM_PCGLOG_ENTRY_FID ON T_FMM_PCHANGELOG_ENTRY ( FID );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PCGLOG_ENTRY_FSEQ') CREATE INDEX IDX_FMM_PCGLOG_ENTRY_FSEQ ON T_FMM_PCHANGELOG_ENTRY ( FSEQ ); 
 
 
 EXEC P_ALTERPK 'PK_FMM_PCHANGELOG_L', 'T_FMM_PCHANGELOG_L', 'FPKID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PCHANGELOG_L') CREATE INDEX IDX_FMM_PCHANGELOG_L  ON T_FMM_PCHANGELOG_L ( FID ,FLOCALEID ); 

