SQL error using PostgreSQL
git-svn-id: http://redmine.rubyforge.org/svn/trunk@5 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6b7650e2f0
commit
b1ede59d02
18
redmine/.project
Normal file
18
redmine/.project
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>redmine</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.rubypeople.rdt.core.rubybuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.radrails.rails.ui.railsnature</nature>
|
||||||
|
<nature>org.rubypeople.rdt.core.rubynature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
@ -33,7 +33,7 @@ class ReportsController < ApplicationController
|
|||||||
i.status_id=s.id
|
i.status_id=s.id
|
||||||
and i.tracker_id=t.id
|
and i.tracker_id=t.id
|
||||||
and i.project_id=#{@project.id}
|
and i.project_id=#{@project.id}
|
||||||
group by s.id, t.id")
|
group by s.id, s.is_closed, t.id")
|
||||||
@priorities = Enumeration::get_values('IPRI')
|
@priorities = Enumeration::get_values('IPRI')
|
||||||
@issues_by_priority =
|
@issues_by_priority =
|
||||||
ActiveRecord::Base.connection.select_all("select s.id as status_id,
|
ActiveRecord::Base.connection.select_all("select s.id as status_id,
|
||||||
@ -46,7 +46,7 @@ class ReportsController < ApplicationController
|
|||||||
i.status_id=s.id
|
i.status_id=s.id
|
||||||
and i.priority_id=p.id
|
and i.priority_id=p.id
|
||||||
and i.project_id=#{@project.id}
|
and i.project_id=#{@project.id}
|
||||||
group by s.id, p.id")
|
group by s.id, s.is_closed, p.id")
|
||||||
@categories = @project.issue_categories
|
@categories = @project.issue_categories
|
||||||
@issues_by_category =
|
@issues_by_category =
|
||||||
ActiveRecord::Base.connection.select_all("select s.id as status_id,
|
ActiveRecord::Base.connection.select_all("select s.id as status_id,
|
||||||
@ -59,7 +59,7 @@ class ReportsController < ApplicationController
|
|||||||
i.status_id=s.id
|
i.status_id=s.id
|
||||||
and i.category_id=c.id
|
and i.category_id=c.id
|
||||||
and i.project_id=#{@project.id}
|
and i.project_id=#{@project.id}
|
||||||
group by s.id, c.id")
|
group by s.id, s.is_closed, c.id")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,6 +11,13 @@ development:
|
|||||||
host: localhost
|
host: localhost
|
||||||
username: root
|
username: root
|
||||||
password:
|
password:
|
||||||
|
|
||||||
|
development_pgsql:
|
||||||
|
adapter: postgresql
|
||||||
|
database: redmine
|
||||||
|
host: localhost
|
||||||
|
username: postgres
|
||||||
|
password: "postgres"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
adapter: mysql
|
adapter: mysql
|
||||||
|
19
redmine/config/environments/development_pgsql.rb
Normal file
19
redmine/config/environments/development_pgsql.rb
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Settings specified here will take precedence over those in config/environment.rb
|
||||||
|
|
||||||
|
# In the development environment your application's code is reloaded on
|
||||||
|
# every request. This slows down response time but is perfect for development
|
||||||
|
# since you don't have to restart the webserver when you make code changes.
|
||||||
|
config.cache_classes = false
|
||||||
|
|
||||||
|
# Log error messages when you accidentally call methods on nil.
|
||||||
|
config.whiny_nils = true
|
||||||
|
|
||||||
|
# Enable the breakpoint server that script/breakpointer connects to
|
||||||
|
config.breakpoint_server = true
|
||||||
|
|
||||||
|
# Show full error reports and disable caching
|
||||||
|
config.action_controller.consider_all_requests_local = true
|
||||||
|
config.action_controller.perform_caching = false
|
||||||
|
|
||||||
|
# Don't care if the mailer can't send
|
||||||
|
config.action_mailer.raise_delivery_errors = false
|
@ -15,13 +15,13 @@ class Setup < ActiveRecord::Migration
|
|||||||
|
|
||||||
create_table "custom_fields", :force => true do |t|
|
create_table "custom_fields", :force => true do |t|
|
||||||
t.column "name", :string, :limit => 30, :default => "", :null => false
|
t.column "name", :string, :limit => 30, :default => "", :null => false
|
||||||
t.column "typ", :integer, :limit => 6, :default => 0, :null => false
|
t.column "typ", :integer, :default => 0, :null => false
|
||||||
t.column "is_required", :boolean, :default => false, :null => false
|
t.column "is_required", :boolean, :default => false, :null => false
|
||||||
t.column "is_for_all", :boolean, :default => false, :null => false
|
t.column "is_for_all", :boolean, :default => false, :null => false
|
||||||
t.column "possible_values", :text, :default => "", :null => false
|
t.column "possible_values", :text, :default => "", :null => false
|
||||||
t.column "regexp", :string, :default => "", :null => false
|
t.column "regexp", :string, :default => "", :null => false
|
||||||
t.column "min_length", :integer, :limit => 4, :default => 0, :null => false
|
t.column "min_length", :integer, :default => 0, :null => false
|
||||||
t.column "max_length", :integer, :limit => 4, :default => 0, :null => false
|
t.column "max_length", :integer, :default => 0, :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "custom_fields_projects", :id => false, :force => true do |t|
|
create_table "custom_fields_projects", :id => false, :force => true do |t|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user