This project is archived and is in readonly mode.
Rake db:create and db:drop do not work with jdbcmysql or jdbcpostgresql adapters
-
Trotter Cashion
Oops, the old diff was made improperly. Here's a properly created patch.
-
Trotter Cashion
- Title changed from Rake db:create does not work with jdbcmysql or jdbcpostgresql adapters to Rake db:create and db:drop do not work with jdbcmysql or jdbcpostgresql adapters
I've added support for db:drop as well.
-
Brian Lopez
So this problem is actually regarding any db driver that isn't named exactly 'mysql', 'postgres' or like 'sqlite'.
Even with the patch attached to this ticket, drivers that don't have 'mysql', 'postgres' or 'sqlite' in the name are out of luck (think Oracle, Firebird, CouchDB or even something custom...).I found this because I'm using the mysqlplus gem, and Lourens' mysqlplus_adapter. Although the proposed patch in this ticket will fix my problem, it doesn't solve it for everyone.
After talking to Lourens a little about it, seems like this should be the responsibility of the Adapter itself. Whatever the mechanism is, it should be implemented by the AbstractAdapter interface, and overridden by the actual Adapter if it needs to do something special.
I'll play around with some ideas and see if I can get something together that might work and attach it to this ticket.
-
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
