/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SVC_PRINTRESULT', 'T_SVC_PRINTRESULT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDEX_SVC_PRINTRESULT_TASKID') CREATE UNIQUE INDEX IDEX_SVC_PRINTRESULT_TASKID ON T_SVC_PRINTRESULT ( FTASKID );


 EXEC P_ALTERPK 'PK_T_SVC_PRINTRESULT_DETAIL', 'T_SVC_PRINTRESULT_DETAIL', 'FENTRYID', '1';

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



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