/**Begin D:\workspace\_workspace_\_workspace_doc_\工具\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_REPORTATTACHMENT', 'T_FPM_REPORTATTACHMENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INX_FPM_LINKATTCH_REPORTID') CREATE INDEX INX_FPM_LINKATTCH_REPORTID ON T_FPM_REPORTATTACHMENT ( FLINKREPORTID );


 EXEC P_ALTERPK 'PK_T_FPM_REPORTATTACHMENT_L', 'T_FPM_REPORTATTACHMENT_L', 'FPKID', '1';

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



/**End D:\workspace\_workspace_\_workspace_doc_\工具\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
