/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_CENTRALAPPBILLENTRY', 'T_EB_CENTRALAPPBILLENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_CENTRALAPPBILL', 'T_EB_CENTRALAPPBILL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CENAPPBILL_FNUM') CREATE INDEX IDX_EB_CENAPPBILL_FNUM ON T_EB_CENTRALAPPBILL ( FBILLNO ,FMODELID );



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