I've updated to latest gitorious git version and cannot migrate db:
> bundle exec rake db:migrate RAILS_ENV=production
== AddSuperGroupRemovedToRepositories: migrating =============================
-- add_column(:repositories, :super_group_removed, :boolean, {:null=>false,
:default=>false})
-> 0.5596s
== AddSuperGroupRemovedToRepositories: migrated (0.5598s) ====================
== AddLastMergeRequestSequenceNumberToRepositories: migrating ================
-- add_column(:repositories, :last_merge_request_sequence_number, :integer,
{:null=>false, :default=>0})
-> 0.4732s
-- execute("UPDATE repositories SET last_merge_request_sequence_number=(SELECT
max(sequence_number) FROM merge_requests WHERE target_repository_id =
repositories.id GROUP BY target_repository_id)")
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: Column 'last_merge_request_sequence_number' cannot be null:
UPDATE repositories SET last_merge_request_sequence_number=(SELECT
max(sequence_number) FROM merge_requests WHERE target_repository_id =
repositories.id GROUP BY
target_repository_id)/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in
`query'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in
`block in execute'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_adapter.rb:280:in
`block in log'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activesupport-3.2.17/lib/active_support/notifications/instrumenter.rb:20:in
`instrument'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_adapter.rb:275:in
`log'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in
`execute'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/mysql2_adapter.rb:213:in
`execute'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:466:in
`block in method_missing'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:438:in
`block in say_with_time'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:438:in
`say_with_time'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:458:in
`method_missing'
/srv/www/gitorious/db/migrate/20140318092108_add_last_merge_request_sequence_number_to_repositories.rb:5:in
`change'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:407:in
`block (2 levels) in migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:407:in
`block in migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in
`with_connection'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:389:in
`migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:528:in
`migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:720:in
`block (2 levels) in migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:777:in
`call'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:777:in
`ddl_transaction'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:719:in
`block in migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:700:in
`each'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:700:in
`migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:570:in
`up'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/migration.rb:551:in
`migrate'
/srv/www/gitorious/.bundle/ruby/2.0.0/gems/activerecord-3.2.17/lib/active_record/railties/databases.rake:193:in
`block (2 levels) in <top (required)>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.