/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_ADJBILLPERIODS', 'T_EB_ADJBILLPERIODS', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_ADJDETAIL', 'T_EB_ADJDETAIL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_ADJUSTBILL', 'T_EB_ADJUSTBILL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_EB_ADJUSTBILL_BILLNUM') CREATE INDEX INDEX_EB_ADJUSTBILL_BILLNUM ON T_EB_ADJUSTBILL ( FBILLNUMBER );

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



/**End D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
