Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table_exists: expect table name, not model name #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

skalee
Copy link

@skalee skalee commented Nov 21, 2014

  1. Make API compatible with PostgreSQL adapter
  2. Make it working when called with schema_migrations
  3. It generally makes more sense to work with SQL table names,
    models can be renamed or deleted which would break old migrations.

This fixes #198.

1. Make API compatible with PostgreSQL adapter
2. Make it working when called with schema_migrations
3. It generally makes more sense to work with SQL table names,
  models can be renamed or deleted which would break old migrations.
@skalee skalee force-pushed the fix-mysql-table_exists branch from 63f2d29 to 830cac6 Compare November 21, 2014 17:39
@skalee
Copy link
Author

skalee commented Nov 21, 2014

Sorry for premature pull request. This fixes one bug but table_exists is still broken. I'll reopen it later or at least post what still fails.

@skalee skalee closed this Nov 21, 2014
This is SELECT query, so MySQL will rather return
{data,{mysql_result, ...}} tuple.
@skalee skalee reopened this Nov 21, 2014
@skalee
Copy link
Author

skalee commented Nov 21, 2014

This will work now. However it still logs error (in fetch/2) when table does not exists which is a very minor issue when compared to previous ones.

@skalee
Copy link
Author

skalee commented Nov 28, 2014

Guys, without these fixes migrations do not work with mysql adapter at all.

@burbas
Copy link
Contributor

burbas commented Jan 8, 2015

Please consider merging this PR since without it migrations in MySQL won't work.

@mithereal
Copy link

i have this same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

boss_migrate cannot handle "schema_migrations"?
4 participants