Actions
Defect #26
closedsqlite3 exception in db:migrate on AddChangesetCommitDate file when upgrading to last trunk
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
When trying to upgrade to the last trunk db:migrate aborts with this message :
% rake db:migrate --trace(in /home/nc/travail/rails/redmine)
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute db:migrate
AddChangesetCommitDate: migrating ========================================
-- add_column(:changesets, :commit_date, :date, {:null=>false})
rake aborted!
SQLite3::SQLException: Cannot add a NOT NULL column with default value NULL: ALTER TABLE changesets ADD
"commit_date" date NOT NULL
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'
[...]
Two choices :
- allow NULL date
- set a default date
Actions