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 { ...@@ -72,6 +72,7 @@ class Doctrine_DataDict_Firebird extends Doctrine_DataDict {
case 'blob': case 'blob':
return 'BLOB SUB_TYPE 0'; return 'BLOB SUB_TYPE 0';
case 'integer': case 'integer':
case 'enum':
return 'INT'; return 'INT';
case 'boolean': case 'boolean':
return 'SMALLINT'; return 'SMALLINT';
......
...@@ -86,6 +86,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict { ...@@ -86,6 +86,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict {
} }
return 'IMAGE'; return 'IMAGE';
case 'integer': case 'integer':
case 'enum':
return 'INT'; return 'INT';
case 'boolean': case 'boolean':
return 'BIT'; return 'BIT';
......
...@@ -97,6 +97,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict { ...@@ -97,6 +97,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
} }
return 'LONGBLOB'; return 'LONGBLOB';
case 'integer': case 'integer':
case 'enum':
if (!empty($field['length'])) { if (!empty($field['length'])) {
$length = $field['length']; $length = $field['length'];
if ($length <= 1) { if ($length <= 1) {
......
...@@ -69,6 +69,7 @@ class Doctrine_DataDict_Oracle extends Doctrine_DataDict { ...@@ -69,6 +69,7 @@ class Doctrine_DataDict_Oracle extends Doctrine_DataDict {
case 'blob': case 'blob':
return 'BLOB'; return 'BLOB';
case 'integer': case 'integer':
case 'enum':
if (!empty($field['length'])) { if (!empty($field['length'])) {
return 'NUMBER('.$field['length'].')'; return 'NUMBER('.$field['length'].')';
} }
......
...@@ -374,6 +374,7 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict { ...@@ -374,6 +374,7 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict {
return 'TEXT'; return 'TEXT';
case 'blob': case 'blob':
return 'BYTEA'; return 'BYTEA';
case 'enum':
case 'integer': case 'integer':
if (!empty($field['autoincrement'])) { if (!empty($field['autoincrement'])) {
if (!empty($field['length'])) { 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