/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_OFFSETENTRY', 'T_EB_OFFSETENTRY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_EB_OFFSETENTRY_MODEL') CREATE INDEX INDEX_EB_OFFSETENTRY_MODEL ON T_EB_OFFSETENTRY ( FMODELID );


 EXEC P_ALTERPK 'PK_T_EB_OFFSETENTRYDETAIL', 'T_EB_OFFSETENTRYDETAIL', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_OFFSETEXECUTELOG', 'T_EB_OFFSETEXECUTELOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INDEX_EB_OFFSETEXECUTELOG') CREATE INDEX INDEX_EB_OFFSETEXECUTELOG ON T_EB_OFFSETEXECUTELOG ( FCREATER );



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