/**Begin D:\software\PDM_UPGRADE\PDM1\FPM_constraint.sql **/
EXEC P_ALTERPK 'PK_T_FPM_INSPECTION_CONFIG', 'T_FPM_INSPECTION_CONFIG', 'FID', '1';

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


EXEC P_ALTERPK 'PK_T_FPM_INSPECTION_CONFIG_L', 'T_FPM_INSPECTION_CONFIG_L', 'FPKID', '1';

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


EXEC P_ALTERPK 'PK_T_FPM_INSPECTACTUALCONFIG', 'T_FPM_INSPECTACTUALCONFIG', 'FENTRYID', '1';

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


EXEC P_ALTERPK 'PK_T_FPM_INSPECTPREOCPCONFIG', 'T_FPM_INSPECTPREOCPCONFIG', 'FENTRYID', '1';

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



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