/**Begin D:\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
EXEC P_ALTERPK 'PK_T_FPM_REMARKFIELD', 'T_FPM_REMARKFIELD', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_T_FPM_REMARKFIELDBAK', 'T_FPM_REMARKFIELDBAK', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_T_FPM_NEWREFERENCEPOSBAK', 'T_FPM_NEWREFERENCEPOSBAK', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_NEWREFERENCEPOSBAK') CREATE INDEX IDX_FPM_NEWREFERENCEPOSBAK ON T_FPM_NEWREFERENCEPOSBAK ( FENTRYID );


EXEC P_ALTERPK 'PK_T_FPM_NEWREFERENCEPOS', 'T_FPM_NEWREFERENCEPOS', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_NEWREFERENCEPOS') CREATE INDEX IDX_FPM_NEWREFERENCEPOS ON T_FPM_NEWREFERENCEPOS ( FENTRYID );


EXEC P_ALTERPK 'PK_T_FPM_AUXILIARYFIELD', 'T_FPM_AUXILIARYFIELD', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_AUXILIARY_FENTRYID') CREATE INDEX IDX_FPM_AUXILIARY_FENTRYID ON T_FPM_AUXILIARYFIELD ( FENTRYID );


EXEC P_ALTERPK 'PK_T_FPM_AUXILIARYFIELDBAK', 'T_FPM_AUXILIARYFIELDBAK', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_AUXILIARYFIELDBAK') CREATE INDEX IDX_FPM_AUXILIARYFIELDBAK ON T_FPM_AUXILIARYFIELDBAK ( FENTRYID );



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