original_string: public function finish_table_import($tablename) {
          $table  = $this->schema->getTable($tablename);
          $fields = $table->getFields();
          foreach ($fields as $field) {
              if ($field->getSequence()) {
                  $this->manager->reset_sequence($tablename);
                  return;
              }
          }
          if ($this->transactionmode == 'pertable') {
              $this->transaction->allow_commit();
          }
      }
code: public function finish_table_import($tablename) {
          $table  = $this->schema->getTable($tablename);
          $fields = $table->getFields();
          foreach ($fields as $field) {
              if ($field->getSequence()) {
                  $this->manager->reset_sequence($tablename);
                  return;
              }
          }
          if ($this->transactionmode == 'pertable') {
              $this->transaction->allow_commit();
          }
      }
code_tokens: public function finish_table_import ( $ tablename ) { $ table = $ this -> schema -> getTable ( $ tablename ) ; $ fields = $ table -> getFields ( ) ; foreach ( $ fields as $ field ) { if ( $ field -> getSequence ( ) ) { $ this -> manager -> reset_sequence ( $ tablename ) ; return ; } } if ( $ this -> transactionmode == 'pertable' ) { $ this -> transaction -> allow_commit ( ) ; } }
docstring: Callback function. Should be called only once per table import operation,
  after all table changes are made. It will reset table sequences if any.
  @param string $tablename
  @return void
docstring_tokens: Callback function . Should be called only once per table import operation after all table changes are made . It will reset table sequences if any .