Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
<?php | <?php | ||||
abstract class PhabricatorConfigSchemaSpec extends Phobject { | abstract class PhabricatorConfigSchemaSpec extends Phobject { | ||||
private $server; | private $server; | ||||
private $utf8Charset; | private $utf8Charset; | ||||
private $utf8BinaryCollation; | private $utf8BinaryCollation; | ||||
private $utf8SortingCollation; | private $utf8SortingCollation; | ||||
const DATATYPE_UNKNOWN = '<unknown>'; | |||||
public function setUTF8SortingCollation($utf8_sorting_collation) { | public function setUTF8SortingCollation($utf8_sorting_collation) { | ||||
$this->utf8SortingCollation = $utf8_sorting_collation; | $this->utf8SortingCollation = $utf8_sorting_collation; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getUTF8SortingCollation() { | public function getUTF8SortingCollation() { | ||||
return $this->utf8SortingCollation; | return $this->utf8SortingCollation; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | if (preg_match('/^(fulltext|sort|text)(\d+)?\z/', $data_type, $matches)) { | ||||
break; | break; | ||||
case 'double': | case 'double': | ||||
$column_type = 'double'; | $column_type = 'double'; | ||||
break; | break; | ||||
case 'date': | case 'date': | ||||
$column_type = 'date'; | $column_type = 'date'; | ||||
break; | break; | ||||
default: | default: | ||||
$column_type = pht('<unknown>'); | $column_type = self::DATATYPE_UNKNOWN; | ||||
$charset = pht('<unknown>'); | $charset = self::DATATYPE_UNKNOWN; | ||||
$collation = pht('<unknown>'); | $collation = self::DATATYPE_UNKNOWN; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
return array($column_type, $charset, $collation, $nullable, $auto); | return array($column_type, $charset, $collation, $nullable, $auto); | ||||
} | } | ||||
} | } |