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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_ACCOUNTRULEFORMULA') CREATE INDEX IDX_EB_ACCOUNTRULEFORMULA ON T_EB_ACCOUNTRULEFORMULA ( FACCOUNT );


 EXEC P_ALTERPK 'PK_T_EB_FORMULACONDITION', 'T_EB_FORMULACONDITION', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_FORMULAVARIATE', 'T_EB_FORMULAVARIATE', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_FORMULAVARIATE') CREATE INDEX IDX_EB_FORMULAVARIATE ON T_EB_FORMULAVARIATE ( FREFACCOUNT );

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



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