Hi Joar,
Thanks for your support thus far. Just wanted to make people aware
that it is possible to generate postgreSQL from mysql using a very
handy perl script I found on the
pgfoundry.org website:
http://pgfoundry.org/frs/?group_id=1000198
Note: This does not work with the script created by Rise when you
perform "Tools->Generate Code to File" since Rise simply creates an
sql procedure. Instead, you must have mysql installed, generate
directly to a database, dump the schema and then use the conversion
script. Here is the procedure I followed to make this work:
1. Installed latest version of mysql and then created an empty mysql
database called "mysqltestdb".
2. Used the Rise "Tools->Generate Code to Database" menu and connect
to the empty mysql database. Generated and updated the database.
3. Used mysqldump to generate an sql script of the mysql database
i.e.
$ mysqldump -d -uroot -ppwd mysqltestdb > mysql_schema.sql
4. Used pgfoundry script to generate postgreSQL version of the sql
script i.e.
$ perl mysql2pgsql.perl mysql_schema.sql postgres_schema.sql
5. Executed the postgres schema script on an empty postgreSQL database
e.g.
$ psql -d myPostgresDb -U postgres -f postgres_schema.sql
Although this might seem like a lot of work this is a viable
workaround for the time being for people that use postgreSQL to also
enjoy the benefits of modeling using Rise.
Hope this is useful for the Rise community.
Regards,
Nick