/**Begin D:\software\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_TPL_FILTER_MEMBER', 'T_FPM_TPL_FILTER_MEMBER', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_TPLBAKFILTER_MEMBER', 'T_FPM_TPLBAKFILTER_MEMBER', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_INNER_SETTLETYPE', 'T_FPM_INNER_SETTLETYPE', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_INNER_INFLOWSUBJECT', 'T_FPM_INNER_INFLOWSUBJECT', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_INNEROUTFLOWSUBJECT', 'T_FPM_INNEROUTFLOWSUBJECT', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_INNERCANCELDETAIL', 'T_FPM_INNERCANCELDETAIL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_INNERCANCELRECORD', 'T_FPM_INNERCANCELRECORD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_CANCELRECORD_BILLNO') CREATE INDEX IDX_FPM_CANCELRECORD_BILLNO ON T_FPM_INNERCANCELRECORD ( FBILLNO );



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