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

 EXEC P_ALTERPK 'PK_T_EB_DIMPROPERTYENTRY', 'T_EB_DIMPROPERTYENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_DIMPROPERTYSETTING', 'T_EB_DIMPROPERTYSETTING', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_DIMPROPERTYSUBENTRY', 'T_EB_DIMPROPERTYSUBENTRY', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_DIMPROPERTYSUBENTRY_P1') CREATE INDEX IDX_EB_DIMPROPERTYSUBENTRY_P1 ON T_EB_DIMPROPERTYSUBENTRY ( FENTRYID );




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