Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
Show First 20 Lines • Show All 239 Lines • ▼ Show 20 Lines | switch ($data_type) { | ||||
$column_type = 'bigint(20)'; | $column_type = 'bigint(20)'; | ||||
break; | break; | ||||
case 'phid': | case 'phid': | ||||
case 'policy'; | case 'policy'; | ||||
$column_type = 'varchar(64)'; | $column_type = 'varchar(64)'; | ||||
$charset = 'binary'; | $charset = 'binary'; | ||||
$collation = 'binary'; | $collation = 'binary'; | ||||
break; | break; | ||||
case 'bytes64': | |||||
$column_type = 'char(64)'; | |||||
$charset = 'binary'; | |||||
$collation = 'binary'; | |||||
break; | |||||
case 'bytes40': | case 'bytes40': | ||||
$column_type = 'char(40)'; | $column_type = 'char(40)'; | ||||
$charset = 'binary'; | $charset = 'binary'; | ||||
$collation = 'binary'; | $collation = 'binary'; | ||||
break; | break; | ||||
case 'bytes32': | case 'bytes32': | ||||
$column_type = 'char(32)'; | $column_type = 'char(32)'; | ||||
$charset = 'binary'; | $charset = 'binary'; | ||||
Show All 17 Lines | switch ($data_type) { | ||||
case 'bytes': | case 'bytes': | ||||
$column_type = 'longblob'; | $column_type = 'longblob'; | ||||
break; | break; | ||||
case 'text255': | case 'text255': | ||||
$column_type = 'varchar(255)'; | $column_type = 'varchar(255)'; | ||||
$charset = $this->getUTF8Charset(); | $charset = $this->getUTF8Charset(); | ||||
$collation = $this->getUTF8Collation(); | $collation = $this->getUTF8Collation(); | ||||
break; | break; | ||||
case 'text160': | |||||
$column_type = 'varchar(160)'; | |||||
$charset = $this->getUTF8Charset(); | |||||
$collation = $this->getUTF8Collation(); | |||||
break; | |||||
case 'text128': | case 'text128': | ||||
$column_type = 'varchar(128)'; | $column_type = 'varchar(128)'; | ||||
$charset = $this->getUTF8Charset(); | $charset = $this->getUTF8Charset(); | ||||
$collation = $this->getUTF8Collation(); | $collation = $this->getUTF8Collation(); | ||||
break; | break; | ||||
case 'text80': | case 'text80': | ||||
$column_type = 'varchar(80)'; | $column_type = 'varchar(80)'; | ||||
$charset = $this->getUTF8Charset(); | $charset = $this->getUTF8Charset(); | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |