/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_CENTRALIZED_ENTITY', 'T_EB_CENTRALIZED_ENTITY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CENTRALIZED_ENTITY') CREATE INDEX IDX_EB_CENTRALIZED_ENTITY ON T_EB_CENTRALIZED_ENTITY ( FMODEL ,FSTATUS );


 EXEC P_ALTERPK 'PK_T_EB_CENTRALIZED_RANGE', 'T_EB_CENTRALIZED_RANGE', 'FENTRYID', '1';

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



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