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

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


 EXEC P_ALTERPK 'PK_T_FPM_SMARTCOLLECT_L', 'T_FPM_SMARTCOLLECT_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_APPLYORG', 'T_FPM_APPLYORG', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_FPM_FIELDMAPPING', 'T_FPM_FIELDMAPPING', 'FENTRYID', '1';

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



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