This project is archived and is in readonly mode.
db:drop fails when adapter is sqlite3 and database is an absolute path
Reported by Paco Benavent | January 22nd, 2009 @ 01:26 PM | in 2.x
example: adapter: sqlite3 database: /home/user/db/database.sqlite3
I think the problem resides in method 'drop_database' http://github.com/rails/rails/bl...
because of the File.join with RAILS_ROOT
As we are executing the rake task from the rails app directory, I think this join is not necessary because it'll work both with relative and absolute paths.
Comments and changes to this ticket
-
Sebastian Gräßl May 12th, 2009 @ 08:05 PM
- Tag changed from db:drop, railties, rake, sqlite3 to db:drop, patch, railties, rake, sqlite3
i made a fix for this.
-
Repository August 9th, 2009 @ 05:26 AM
- State changed from new to resolved
(from [071f48b716ce2cd8a46219730afc307c258a9798]) Make sure db:drop doesn't fail when sqlite db is given by an absolute path [#1789 state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com
http://github.com/rails/rails/commit/071f48b716ce2cd8a46219730afc30...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 1789 db:drop fails when adapter is sqlite3 and database is an absolute path (from [071f48b716ce2cd8a46219730afc307c258a9798]) Make su...