
 EXEC P_ALTERPK 'PK_FMM_PROGRESSRATIO', 'T_FMM_PROGRESSRATIO', 'FID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROGRESSRATIO_FNUM') CREATE INDEX IDX_FMM_PROGRESSRATIO_FNUM ON T_FMM_PROGRESSRATIO ( FNUMBER );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROGRESSRATIO_FCT') CREATE INDEX IDX_FMM_PROGRESSRATIO_FCT ON T_FMM_PROGRESSRATIO ( FCREATETIME );
 
 
 EXEC P_ALTERPK 'PK_FMM_PROGRESSRATIO_L', 'T_FMM_PROGRESSRATIO_L', 'FPKID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROGRESSRATIO_FID') CREATE INDEX IDX_FMM_PROGRESSRATIO_FID ON T_FMM_PROGRESSRATIO_L ( FID ,FLOCALEID );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROGRESSRATIO_FNA') CREATE INDEX IDX_FMM_PROGRESSRATIO_FNA ON T_FMM_PROGRESSRATIO_L ( FNAME );
 
 
 EXEC P_ALTERPK 'PK_FMM_PRATIOENTRY', 'T_FMM_PRATIOENTRY', 'FENTRYID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PRATIOENTRY_FSEQ') CREATE INDEX IDX_FMM_PRATIOENTRY_FSEQ ON T_FMM_PRATIOENTRY ( FID ,FSEQ );