1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Added enum support for export

This commit is contained in:
zYne 2006-12-10 17:28:20 +00:00
parent 4b6008b17d
commit 5d449f6af4
5 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class Doctrine_DataDict_Firebird extends Doctrine_DataDict {
case 'blob':
return 'BLOB SUB_TYPE 0';
case 'integer':
case 'enum':
return 'INT';
case 'boolean':
return 'SMALLINT';

View File

@ -86,6 +86,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict {
}
return 'IMAGE';
case 'integer':
case 'enum':
return 'INT';
case 'boolean':
return 'BIT';

View File

@ -97,6 +97,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
}
return 'LONGBLOB';
case 'integer':
case 'enum':
if (!empty($field['length'])) {
$length = $field['length'];
if ($length <= 1) {

View File

@ -69,6 +69,7 @@ class Doctrine_DataDict_Oracle extends Doctrine_DataDict {
case 'blob':
return 'BLOB';
case 'integer':
case 'enum':
if (!empty($field['length'])) {
return 'NUMBER('.$field['length'].')';
}

View File

@ -374,6 +374,7 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict {
return 'TEXT';
case 'blob':
return 'BYTEA';
case 'enum':
case 'integer':
if (!empty($field['autoincrement'])) {
if (!empty($field['length'])) {