/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 
 EXEC P_ALTERPK 'PK_MUTEX_LOCK', 'T_MUTEX_LOCK', 'FPATH', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_MUTEX_LOCK' AND KSQL_INDNAME = 'IDX_MUTEX_LOCK_OVER') CREATE INDEX IDX_MUTEX_LOCK_OVER ON T_MUTEX_LOCK ( FOVERTIME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_MUTEX_LOCK' AND KSQL_INDNAME = 'IDX_MUTEX_LOCK_TIME') CREATE INDEX IDX_MUTEX_LOCK_TIME ON T_MUTEX_LOCK ( FCREATETIME );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_MUTEX_LOCK' AND KSQL_INDNAME = 'IDX_MUTEX_LOCK_USER') CREATE INDEX IDX_MUTEX_LOCK_USER ON T_MUTEX_LOCK ( FUSERID );



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