 EXEC P_ALTERPK 'PK_FMM_PERSONFILTERSET', 'T_FMM_PERSONFILTERSET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PERSONFILTERSET_FNUM') CREATE INDEX IDX_FMM_PERSONFILTERSET_FNUM  ON T_FMM_PERSONFILTERSET ( FNUMBER );
 
 
 EXEC P_ALTERPK 'PK_FMM_PERSONFILTERSET_L', 'T_FMM_PERSONFILTERSET_L', 'FPKID', '1';

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

 EXEC P_ALTERPK 'PK_FMM_PERSONFIELD', 'T_FMM_PERSONFIELD', 'FENTRYID', '1';

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

