/**Begin C:\Users\rd_qiongyang_liu\Desktop\开发文档集\开发\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_FPMBILLGENRECORD', 'T_FPM_FPMBILLGENRECORD', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_REPORTPREPARATION', 'T_FPM_REPORTPREPARATION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FPM_REPORTPREPARATION') CREATE INDEX IDX_FPM_REPORTPREPARATION ON T_FPM_REPORTPREPARATION ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_FPM_REPORTPREPARATION_L', 'T_FPM_REPORTPREPARATION_L', 'FPKID', '1';

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



/**End C:\Users\rd_qiongyang_liu\Desktop\开发文档集\开发\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
