/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_INT_SERVICETEST', 'T_INT_SERVICETEST', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_INT_SERVICETEST_ENTRY', 'T_INT_SERVICETEST_ENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_INT_SERVICETEST_L', 'T_INT_SERVICETEST_L', 'FPKID', '1';

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


/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
