/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
EXEC p_DropIdx 'IDX_ORG_Struc_View_LongNum', 'T_ORG_STRUCTURE';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'UX_ORG_STRUC_VIEWORGLONGNUM') CREATE UNIQUE INDEX UX_ORG_STRUC_VIEWORGLONGNUM ON T_ORG_STRUCTURE ( FVIEWID ,FORGID ,FLONGNUMBER );


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