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





 EXEC P_ALTERPK 'PK_T_EB_BGMCONTROLDIMENSION', 'T_EB_BGMCONTROLDIMENSION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BGMCONTROLDIMENSION') CREATE INDEX IDX_EB_BGMCONTROLDIMENSION ON T_EB_BGMCONTROLDIMENSION ( FMODEL );


 EXEC P_ALTERPK 'PK_T_EB_CONTROLDIMDETAIL', 'T_EB_CONTROLDIMDETAIL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_CONTROLVERSIONORG', 'T_EB_CONTROLVERSIONORG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CONTROLVERSIONORG') CREATE INDEX IDX_EB_CONTROLVERSIONORG ON T_EB_CONTROLVERSIONORG ( FCONTROLVERSIONID );



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