maxlapshin/mysql2postgres

running migrations after conversion?

josh-m-sharpe opened this issue · 2 comments

I've converted using file and then importing as well as directly into postgres.

After quickly poking around, I see my tables/columns are present, but running 'rake db:migrate' wants to run every migration in my app.

There are two odd things about this:

  1. It's as if the mySQL table schema_migrations didn't get converted to however postgres manages schema state.

  2. rake db:migrate -- about half of my migrations run fine. This is incredibly odd my first migration creates the "events" table, but that table already exists -- postgres doesn't blow up on that?

Anyways, I would expect that db:migrate would have to do nothing after converting the DBs -- did I skip something?

Sorry, no idea why I assumed the context of ruby on rails -- let me dig a bit more as I bet the problem is with rails and not with your script.

Closing as an old issue, that would seem to be out of date.
Feel free to re-open and update with comments against the master branch.