Fixes default status query

pull/696/head
Hagen Schink 11 years ago
parent 303c6ca5b1
commit d8bc70a65d
  1. 3
      db/migrate/20130917131710_planning_element_data_to_work_packages.rb

@ -78,7 +78,8 @@ class PlanningElementDataToWorkPackages < ActiveRecord::Migration
default_status = select_one <<-SQL default_status = select_one <<-SQL
SELECT id SELECT id
FROM #{db_statuses_table} FROM #{db_statuses_table}
WHERE position = 1 WHERE is_default = true OR position = 1
ORDER BY is_default DESC
LIMIT 1 LIMIT 1
SQL SQL

Loading…
Cancel
Save