/**Begin SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_CTBOTP_ATTSYNCLOG', 'T_CTBOTP_ATTSYNCLOG', 'FID', '1';
 
  IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CTBOTP_ATTSYNCLOG_FLOGID') CREATE INDEX IDX_CTBOTP_ATTSYNCLOG_FLOGID ON T_CTBOTP_ATTSYNCLOG ( FTSYNCLOGID );

  IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CTBOTP_ATTSYNCLOG_FTBILLID') CREATE INDEX IDX_CTBOTP_ATTSYNCLOG_FTBILLID ON T_CTBOTP_ATTSYNCLOG ( FTBILLID );

/**End SYS_constraint.sql **/
