2014-05-25 18:28:11 +02:00
|
|
|
<?php
|
|
|
|
|
2015-01-22 21:17:04 +01:00
|
|
|
final class DifferentialLegacyHunk extends DifferentialHunk {
|
2014-05-25 18:28:11 +02:00
|
|
|
|
|
|
|
protected $changes;
|
|
|
|
|
2015-01-13 20:47:05 +01:00
|
|
|
protected function getConfiguration() {
|
2014-09-29 00:12:58 +02:00
|
|
|
return array(
|
|
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
|
|
'changes' => 'text?',
|
|
|
|
'oldOffset' => 'uint32',
|
|
|
|
'oldLen' => 'uint32',
|
|
|
|
'newOffset' => 'uint32',
|
|
|
|
'newLen' => 'uint32',
|
|
|
|
),
|
|
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
|
|
'changesetID' => array(
|
|
|
|
'columns' => array('changesetID'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
2014-05-25 18:28:11 +02:00
|
|
|
public function getTableName() {
|
|
|
|
return 'differential_hunk';
|
|
|
|
}
|
|
|
|
|
2014-06-20 20:49:41 +02:00
|
|
|
public function getDataEncoding() {
|
|
|
|
return 'utf8';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function forceEncoding($encoding) {
|
|
|
|
// Not supported, these are always utf8.
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
2014-05-25 18:28:11 +02:00
|
|
|
}
|