| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 20 Nov 2008 12:58:50
|
Sean_L
New member
Joined: 19 Apr 2007 15:29:33
Messages: 4
Offline
|
I was testing the MySQL Migration process and I ran into an issue with columns that are defined as enum in MySQL. While Postgres doesn't support the enum type, it does offer two equivalents via custom data types and CHECK constraints. I tried using the Migration tool two ways.
1) Migrate both the schema and data from a MySQL table with an enum column to a clean Postgres database. Migration failed with an error about the enum column.
2) Create the table in Postgres and define the enum column as varchar with a CHECK constraint. Migrate just the data from MySQL to the empty table in Postgres. Migration failed with the same error.
Am I doing something wrong? Is this a known issue? Other than ALTERing the MySQL tables that use enum columns, are there other workarounds?
Any advice would be greatly appreciated! Thanks.
-Sean
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 1 Dec 2008 08:31:05
|
Zahid_I
New member
Joined: 22 May 2005 08:31:46
Messages: 7
Offline
|
You followed the right steps, however currently the "enum" mapping is not being handled by MTK. I have forwarded this case to our development team and will get back to inform about the future release or a quick hot fix (in which you will simply have to download the MTK distro through EnterpriseDB Update service and it'll replace the existing jar on your system) availability to take care of this problem.
Thanks,
Zahid
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 1 Dec 2008 10:01:21
|
Zahid_I
New member
Joined: 22 May 2005 08:31:46
Messages: 7
Offline
|
A correction, the Update Service is not applicable to Migration Wizard, we'll send the details once the updated version of Migration Wizard is available.
Thanks,
Zahid
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 29 Jun 2009 09:04:00
|
Talend_G
Member
Joined: 10 Feb 2009 11:07:14
Messages: 15
Offline
|
What you could also do is use an open source ETL tool. They are free to download.
Talend Open Studio is an open source ETL tool for data integration and migration experts. It's easy to learn for a non-technical user. What distinguishes Talend, when it comes to business users, is the tMap component. It allows the user to get a graphical and functional view of integration processes.
For more information: http://www.talend.com/
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 16 Sep 2009 01:12:37
|
provasks_gmail_com
New member
Joined: 16 Sep 2009 01:06:34
Messages: 1
Offline
|
Sean_L wrote:I was testing the MySQL Migration process and I ran into an issue with columns that are defined as enum in MySQL. While Postgres doesn't support the enum type, it does offer two equivalents via custom data types and CHECK constraints. I tried using the Migration tool two ways.
1) Migrate both the schema and data from a MySQL table with an enum column to a clean Postgres database. Migration failed with an error about the enum column.
2) Create the table in Postgres and define the enum column as varchar with a CHECK constraint. Migrate just the data from MySQL to the empty table in Postgres. Migration failed with the same error.
Am I doing something wrong? Is this a known issue? Other than ALTERing the MySQL tables that use enum columns, are there other workarounds?
Any advice would be greatly appreciated! Thanks.
-Sean
Hi Sean
I have completed step 3 but stuck in the 4th step (Source Schema) to migrate from mysql to postres. could you please tell me what should I give the value here?
-Provas
|
|
|
 |
|
|