boss_db icon indicating copy to clipboard operation
boss_db copied to clipboard

Table_exists: expect table name, not model name

Open skalee opened this issue 10 years ago • 5 comments

  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.

skalee avatar Nov 21 '14 17:11 skalee

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 avatar Nov 21 '14 18:11 skalee

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 avatar Nov 21 '14 18:11 skalee

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

skalee avatar Nov 28 '14 22:11 skalee

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

burbas avatar Jan 08 '15 09:01 burbas

i have this same error

mithereal avatar Jul 05 '15 09:07 mithereal