Commit 5d449f6a authored by zYne's avatar zYne

Added enum support for export

parent 4b6008b1
......@@ -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';
......
......@@ -86,6 +86,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict {
}
return 'IMAGE';
case 'integer':
case 'enum':
return 'INT';
case 'boolean':
return 'BIT';
......
......@@ -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) {
......
......@@ -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'].')';
}
......
......@@ -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'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment