##// END OF EJS Templates
Use example.net as domain in default configuration (#1762)....
Jean-Philippe Lang -
r1763:999d47f98679
parent child
Show More
@@ -1,21 +1,21
1 # Outgoing email settings
1 # Outgoing email settings
2
2
3 production:
3 production:
4 delivery_method: :smtp
4 delivery_method: :smtp
5 smtp_settings:
5 smtp_settings:
6 address: smtp.somenet.foo
6 address: smtp.example.net
7 port: 25
7 port: 25
8 domain: somenet.foo
8 domain: example.net
9 authentication: :login
9 authentication: :login
10 user_name: redmine@somenet.foo
10 user_name: redmine@example.net
11 password: redmine
11 password: redmine
12
12
13 development:
13 development:
14 delivery_method: :smtp
14 delivery_method: :smtp
15 smtp_settings:
15 smtp_settings:
16 address: 127.0.0.1
16 address: 127.0.0.1
17 port: 25
17 port: 25
18 domain: somenet.foo
18 domain: example.net
19 authentication: :login
19 authentication: :login
20 user_name: redmine@somenet.foo
20 user_name: redmine@example.net
21 password: redmine
21 password: redmine
@@ -1,131 +1,131
1 # redMine - project management software
1 # redMine - project management software
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
2 # Copyright (C) 2006-2007 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18
18
19 # DO NOT MODIFY THIS FILE !!!
19 # DO NOT MODIFY THIS FILE !!!
20 # Settings can be defined through the application in Admin -> Settings
20 # Settings can be defined through the application in Admin -> Settings
21
21
22 app_title:
22 app_title:
23 default: Redmine
23 default: Redmine
24 app_subtitle:
24 app_subtitle:
25 default: Project management
25 default: Project management
26 welcome_text:
26 welcome_text:
27 default:
27 default:
28 login_required:
28 login_required:
29 default: 0
29 default: 0
30 self_registration:
30 self_registration:
31 default: '2'
31 default: '2'
32 lost_password:
32 lost_password:
33 default: 1
33 default: 1
34 attachment_max_size:
34 attachment_max_size:
35 format: int
35 format: int
36 default: 5120
36 default: 5120
37 issues_export_limit:
37 issues_export_limit:
38 format: int
38 format: int
39 default: 500
39 default: 500
40 activity_days_default:
40 activity_days_default:
41 format: int
41 format: int
42 default: 30
42 default: 30
43 per_page_options:
43 per_page_options:
44 default: '25,50,100'
44 default: '25,50,100'
45 mail_from:
45 mail_from:
46 default: redmine@somenet.foo
46 default: redmine@example.net
47 bcc_recipients:
47 bcc_recipients:
48 default: 1
48 default: 1
49 text_formatting:
49 text_formatting:
50 default: textile
50 default: textile
51 wiki_compression:
51 wiki_compression:
52 default: ""
52 default: ""
53 default_language:
53 default_language:
54 default: en
54 default: en
55 host_name:
55 host_name:
56 default: localhost:3000
56 default: localhost:3000
57 protocol:
57 protocol:
58 default: http
58 default: http
59 feeds_limit:
59 feeds_limit:
60 format: int
60 format: int
61 default: 15
61 default: 15
62 enabled_scm:
62 enabled_scm:
63 serialized: true
63 serialized: true
64 default:
64 default:
65 - Subversion
65 - Subversion
66 - Darcs
66 - Darcs
67 - Mercurial
67 - Mercurial
68 - Cvs
68 - Cvs
69 - Bazaar
69 - Bazaar
70 - Git
70 - Git
71 autofetch_changesets:
71 autofetch_changesets:
72 default: 1
72 default: 1
73 sys_api_enabled:
73 sys_api_enabled:
74 default: 0
74 default: 0
75 commit_ref_keywords:
75 commit_ref_keywords:
76 default: 'refs,references,IssueID'
76 default: 'refs,references,IssueID'
77 commit_fix_keywords:
77 commit_fix_keywords:
78 default: 'fixes,closes'
78 default: 'fixes,closes'
79 commit_fix_status_id:
79 commit_fix_status_id:
80 format: int
80 format: int
81 default: 0
81 default: 0
82 commit_fix_done_ratio:
82 commit_fix_done_ratio:
83 default: 100
83 default: 100
84 # autologin duration in days
84 # autologin duration in days
85 # 0 means autologin is disabled
85 # 0 means autologin is disabled
86 autologin:
86 autologin:
87 format: int
87 format: int
88 default: 0
88 default: 0
89 # date format
89 # date format
90 date_format:
90 date_format:
91 default: ''
91 default: ''
92 time_format:
92 time_format:
93 default: ''
93 default: ''
94 user_format:
94 user_format:
95 default: :firstname_lastname
95 default: :firstname_lastname
96 format: symbol
96 format: symbol
97 cross_project_issue_relations:
97 cross_project_issue_relations:
98 default: 0
98 default: 0
99 notified_events:
99 notified_events:
100 serialized: true
100 serialized: true
101 default:
101 default:
102 - issue_added
102 - issue_added
103 - issue_updated
103 - issue_updated
104 mail_handler_api_enabled:
104 mail_handler_api_enabled:
105 default: 0
105 default: 0
106 mail_handler_api_key:
106 mail_handler_api_key:
107 default:
107 default:
108 issue_list_default_columns:
108 issue_list_default_columns:
109 serialized: true
109 serialized: true
110 default:
110 default:
111 - tracker
111 - tracker
112 - status
112 - status
113 - priority
113 - priority
114 - subject
114 - subject
115 - assigned_to
115 - assigned_to
116 - updated_on
116 - updated_on
117 display_subprojects_issues:
117 display_subprojects_issues:
118 default: 1
118 default: 1
119 default_projects_public:
119 default_projects_public:
120 default: 1
120 default: 1
121 # encodings used to convert repository files content to UTF-8
121 # encodings used to convert repository files content to UTF-8
122 # multiple values accepted, comma separated
122 # multiple values accepted, comma separated
123 repositories_encodings:
123 repositories_encodings:
124 default: ''
124 default: ''
125 ui_theme:
125 ui_theme:
126 default: ''
126 default: ''
127 emails_footer:
127 emails_footer:
128 default: |-
128 default: |-
129 You have received this notification because you have either subscribed to it, or are involved in it.
129 You have received this notification because you have either subscribed to it, or are involved in it.
130 To change your notification preferences, please click here: http://hostname/my/account
130 To change your notification preferences, please click here: http://hostname/my/account
131
131
@@ -1,324 +1,324
1 # redMine - project management software
1 # redMine - project management software
2 # Copyright (C) 2006 Jean-Philippe Lang
2 # Copyright (C) 2006 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 class Setup < ActiveRecord::Migration
18 class Setup < ActiveRecord::Migration
19
19
20 class User < ActiveRecord::Base; end
20 class User < ActiveRecord::Base; end
21 # model removed
21 # model removed
22 class Permission < ActiveRecord::Base; end
22 class Permission < ActiveRecord::Base; end
23
23
24 def self.up
24 def self.up
25 create_table "attachments", :force => true do |t|
25 create_table "attachments", :force => true do |t|
26 t.column "container_id", :integer, :default => 0, :null => false
26 t.column "container_id", :integer, :default => 0, :null => false
27 t.column "container_type", :string, :limit => 30, :default => "", :null => false
27 t.column "container_type", :string, :limit => 30, :default => "", :null => false
28 t.column "filename", :string, :default => "", :null => false
28 t.column "filename", :string, :default => "", :null => false
29 t.column "disk_filename", :string, :default => "", :null => false
29 t.column "disk_filename", :string, :default => "", :null => false
30 t.column "filesize", :integer, :default => 0, :null => false
30 t.column "filesize", :integer, :default => 0, :null => false
31 t.column "content_type", :string, :limit => 60, :default => ""
31 t.column "content_type", :string, :limit => 60, :default => ""
32 t.column "digest", :string, :limit => 40, :default => "", :null => false
32 t.column "digest", :string, :limit => 40, :default => "", :null => false
33 t.column "downloads", :integer, :default => 0, :null => false
33 t.column "downloads", :integer, :default => 0, :null => false
34 t.column "author_id", :integer, :default => 0, :null => false
34 t.column "author_id", :integer, :default => 0, :null => false
35 t.column "created_on", :timestamp
35 t.column "created_on", :timestamp
36 end
36 end
37
37
38 create_table "auth_sources", :force => true do |t|
38 create_table "auth_sources", :force => true do |t|
39 t.column "type", :string, :limit => 30, :default => "", :null => false
39 t.column "type", :string, :limit => 30, :default => "", :null => false
40 t.column "name", :string, :limit => 60, :default => "", :null => false
40 t.column "name", :string, :limit => 60, :default => "", :null => false
41 t.column "host", :string, :limit => 60
41 t.column "host", :string, :limit => 60
42 t.column "port", :integer
42 t.column "port", :integer
43 t.column "account", :string, :limit => 60
43 t.column "account", :string, :limit => 60
44 t.column "account_password", :string, :limit => 60
44 t.column "account_password", :string, :limit => 60
45 t.column "base_dn", :string, :limit => 255
45 t.column "base_dn", :string, :limit => 255
46 t.column "attr_login", :string, :limit => 30
46 t.column "attr_login", :string, :limit => 30
47 t.column "attr_firstname", :string, :limit => 30
47 t.column "attr_firstname", :string, :limit => 30
48 t.column "attr_lastname", :string, :limit => 30
48 t.column "attr_lastname", :string, :limit => 30
49 t.column "attr_mail", :string, :limit => 30
49 t.column "attr_mail", :string, :limit => 30
50 t.column "onthefly_register", :boolean, :default => false, :null => false
50 t.column "onthefly_register", :boolean, :default => false, :null => false
51 end
51 end
52
52
53 create_table "custom_fields", :force => true do |t|
53 create_table "custom_fields", :force => true do |t|
54 t.column "type", :string, :limit => 30, :default => "", :null => false
54 t.column "type", :string, :limit => 30, :default => "", :null => false
55 t.column "name", :string, :limit => 30, :default => "", :null => false
55 t.column "name", :string, :limit => 30, :default => "", :null => false
56 t.column "field_format", :string, :limit => 30, :default => "", :null => false
56 t.column "field_format", :string, :limit => 30, :default => "", :null => false
57 t.column "possible_values", :text
57 t.column "possible_values", :text
58 t.column "regexp", :string, :default => ""
58 t.column "regexp", :string, :default => ""
59 t.column "min_length", :integer, :default => 0, :null => false
59 t.column "min_length", :integer, :default => 0, :null => false
60 t.column "max_length", :integer, :default => 0, :null => false
60 t.column "max_length", :integer, :default => 0, :null => false
61 t.column "is_required", :boolean, :default => false, :null => false
61 t.column "is_required", :boolean, :default => false, :null => false
62 t.column "is_for_all", :boolean, :default => false, :null => false
62 t.column "is_for_all", :boolean, :default => false, :null => false
63 end
63 end
64
64
65 create_table "custom_fields_projects", :id => false, :force => true do |t|
65 create_table "custom_fields_projects", :id => false, :force => true do |t|
66 t.column "custom_field_id", :integer, :default => 0, :null => false
66 t.column "custom_field_id", :integer, :default => 0, :null => false
67 t.column "project_id", :integer, :default => 0, :null => false
67 t.column "project_id", :integer, :default => 0, :null => false
68 end
68 end
69
69
70 create_table "custom_fields_trackers", :id => false, :force => true do |t|
70 create_table "custom_fields_trackers", :id => false, :force => true do |t|
71 t.column "custom_field_id", :integer, :default => 0, :null => false
71 t.column "custom_field_id", :integer, :default => 0, :null => false
72 t.column "tracker_id", :integer, :default => 0, :null => false
72 t.column "tracker_id", :integer, :default => 0, :null => false
73 end
73 end
74
74
75 create_table "custom_values", :force => true do |t|
75 create_table "custom_values", :force => true do |t|
76 t.column "customized_type", :string, :limit => 30, :default => "", :null => false
76 t.column "customized_type", :string, :limit => 30, :default => "", :null => false
77 t.column "customized_id", :integer, :default => 0, :null => false
77 t.column "customized_id", :integer, :default => 0, :null => false
78 t.column "custom_field_id", :integer, :default => 0, :null => false
78 t.column "custom_field_id", :integer, :default => 0, :null => false
79 t.column "value", :text
79 t.column "value", :text
80 end
80 end
81
81
82 create_table "documents", :force => true do |t|
82 create_table "documents", :force => true do |t|
83 t.column "project_id", :integer, :default => 0, :null => false
83 t.column "project_id", :integer, :default => 0, :null => false
84 t.column "category_id", :integer, :default => 0, :null => false
84 t.column "category_id", :integer, :default => 0, :null => false
85 t.column "title", :string, :limit => 60, :default => "", :null => false
85 t.column "title", :string, :limit => 60, :default => "", :null => false
86 t.column "description", :text
86 t.column "description", :text
87 t.column "created_on", :timestamp
87 t.column "created_on", :timestamp
88 end
88 end
89
89
90 add_index "documents", ["project_id"], :name => "documents_project_id"
90 add_index "documents", ["project_id"], :name => "documents_project_id"
91
91
92 create_table "enumerations", :force => true do |t|
92 create_table "enumerations", :force => true do |t|
93 t.column "opt", :string, :limit => 4, :default => "", :null => false
93 t.column "opt", :string, :limit => 4, :default => "", :null => false
94 t.column "name", :string, :limit => 30, :default => "", :null => false
94 t.column "name", :string, :limit => 30, :default => "", :null => false
95 end
95 end
96
96
97 create_table "issue_categories", :force => true do |t|
97 create_table "issue_categories", :force => true do |t|
98 t.column "project_id", :integer, :default => 0, :null => false
98 t.column "project_id", :integer, :default => 0, :null => false
99 t.column "name", :string, :limit => 30, :default => "", :null => false
99 t.column "name", :string, :limit => 30, :default => "", :null => false
100 end
100 end
101
101
102 add_index "issue_categories", ["project_id"], :name => "issue_categories_project_id"
102 add_index "issue_categories", ["project_id"], :name => "issue_categories_project_id"
103
103
104 create_table "issue_histories", :force => true do |t|
104 create_table "issue_histories", :force => true do |t|
105 t.column "issue_id", :integer, :default => 0, :null => false
105 t.column "issue_id", :integer, :default => 0, :null => false
106 t.column "status_id", :integer, :default => 0, :null => false
106 t.column "status_id", :integer, :default => 0, :null => false
107 t.column "author_id", :integer, :default => 0, :null => false
107 t.column "author_id", :integer, :default => 0, :null => false
108 t.column "notes", :text
108 t.column "notes", :text
109 t.column "created_on", :timestamp
109 t.column "created_on", :timestamp
110 end
110 end
111
111
112 add_index "issue_histories", ["issue_id"], :name => "issue_histories_issue_id"
112 add_index "issue_histories", ["issue_id"], :name => "issue_histories_issue_id"
113
113
114 create_table "issue_statuses", :force => true do |t|
114 create_table "issue_statuses", :force => true do |t|
115 t.column "name", :string, :limit => 30, :default => "", :null => false
115 t.column "name", :string, :limit => 30, :default => "", :null => false
116 t.column "is_closed", :boolean, :default => false, :null => false
116 t.column "is_closed", :boolean, :default => false, :null => false
117 t.column "is_default", :boolean, :default => false, :null => false
117 t.column "is_default", :boolean, :default => false, :null => false
118 t.column "html_color", :string, :limit => 6, :default => "FFFFFF", :null => false
118 t.column "html_color", :string, :limit => 6, :default => "FFFFFF", :null => false
119 end
119 end
120
120
121 create_table "issues", :force => true do |t|
121 create_table "issues", :force => true do |t|
122 t.column "tracker_id", :integer, :default => 0, :null => false
122 t.column "tracker_id", :integer, :default => 0, :null => false
123 t.column "project_id", :integer, :default => 0, :null => false
123 t.column "project_id", :integer, :default => 0, :null => false
124 t.column "subject", :string, :default => "", :null => false
124 t.column "subject", :string, :default => "", :null => false
125 t.column "description", :text
125 t.column "description", :text
126 t.column "due_date", :date
126 t.column "due_date", :date
127 t.column "category_id", :integer
127 t.column "category_id", :integer
128 t.column "status_id", :integer, :default => 0, :null => false
128 t.column "status_id", :integer, :default => 0, :null => false
129 t.column "assigned_to_id", :integer
129 t.column "assigned_to_id", :integer
130 t.column "priority_id", :integer, :default => 0, :null => false
130 t.column "priority_id", :integer, :default => 0, :null => false
131 t.column "fixed_version_id", :integer
131 t.column "fixed_version_id", :integer
132 t.column "author_id", :integer, :default => 0, :null => false
132 t.column "author_id", :integer, :default => 0, :null => false
133 t.column "lock_version", :integer, :default => 0, :null => false
133 t.column "lock_version", :integer, :default => 0, :null => false
134 t.column "created_on", :timestamp
134 t.column "created_on", :timestamp
135 t.column "updated_on", :timestamp
135 t.column "updated_on", :timestamp
136 end
136 end
137
137
138 add_index "issues", ["project_id"], :name => "issues_project_id"
138 add_index "issues", ["project_id"], :name => "issues_project_id"
139
139
140 create_table "members", :force => true do |t|
140 create_table "members", :force => true do |t|
141 t.column "user_id", :integer, :default => 0, :null => false
141 t.column "user_id", :integer, :default => 0, :null => false
142 t.column "project_id", :integer, :default => 0, :null => false
142 t.column "project_id", :integer, :default => 0, :null => false
143 t.column "role_id", :integer, :default => 0, :null => false
143 t.column "role_id", :integer, :default => 0, :null => false
144 t.column "created_on", :timestamp
144 t.column "created_on", :timestamp
145 end
145 end
146
146
147 create_table "news", :force => true do |t|
147 create_table "news", :force => true do |t|
148 t.column "project_id", :integer
148 t.column "project_id", :integer
149 t.column "title", :string, :limit => 60, :default => "", :null => false
149 t.column "title", :string, :limit => 60, :default => "", :null => false
150 t.column "summary", :string, :limit => 255, :default => ""
150 t.column "summary", :string, :limit => 255, :default => ""
151 t.column "description", :text
151 t.column "description", :text
152 t.column "author_id", :integer, :default => 0, :null => false
152 t.column "author_id", :integer, :default => 0, :null => false
153 t.column "created_on", :timestamp
153 t.column "created_on", :timestamp
154 end
154 end
155
155
156 add_index "news", ["project_id"], :name => "news_project_id"
156 add_index "news", ["project_id"], :name => "news_project_id"
157
157
158 create_table "permissions", :force => true do |t|
158 create_table "permissions", :force => true do |t|
159 t.column "controller", :string, :limit => 30, :default => "", :null => false
159 t.column "controller", :string, :limit => 30, :default => "", :null => false
160 t.column "action", :string, :limit => 30, :default => "", :null => false
160 t.column "action", :string, :limit => 30, :default => "", :null => false
161 t.column "description", :string, :limit => 60, :default => "", :null => false
161 t.column "description", :string, :limit => 60, :default => "", :null => false
162 t.column "is_public", :boolean, :default => false, :null => false
162 t.column "is_public", :boolean, :default => false, :null => false
163 t.column "sort", :integer, :default => 0, :null => false
163 t.column "sort", :integer, :default => 0, :null => false
164 t.column "mail_option", :boolean, :default => false, :null => false
164 t.column "mail_option", :boolean, :default => false, :null => false
165 t.column "mail_enabled", :boolean, :default => false, :null => false
165 t.column "mail_enabled", :boolean, :default => false, :null => false
166 end
166 end
167
167
168 create_table "permissions_roles", :id => false, :force => true do |t|
168 create_table "permissions_roles", :id => false, :force => true do |t|
169 t.column "permission_id", :integer, :default => 0, :null => false
169 t.column "permission_id", :integer, :default => 0, :null => false
170 t.column "role_id", :integer, :default => 0, :null => false
170 t.column "role_id", :integer, :default => 0, :null => false
171 end
171 end
172
172
173 add_index "permissions_roles", ["role_id"], :name => "permissions_roles_role_id"
173 add_index "permissions_roles", ["role_id"], :name => "permissions_roles_role_id"
174
174
175 create_table "projects", :force => true do |t|
175 create_table "projects", :force => true do |t|
176 t.column "name", :string, :limit => 30, :default => "", :null => false
176 t.column "name", :string, :limit => 30, :default => "", :null => false
177 t.column "description", :string, :default => "", :null => false
177 t.column "description", :string, :default => "", :null => false
178 t.column "homepage", :string, :limit => 60, :default => ""
178 t.column "homepage", :string, :limit => 60, :default => ""
179 t.column "is_public", :boolean, :default => true, :null => false
179 t.column "is_public", :boolean, :default => true, :null => false
180 t.column "parent_id", :integer
180 t.column "parent_id", :integer
181 t.column "projects_count", :integer, :default => 0
181 t.column "projects_count", :integer, :default => 0
182 t.column "created_on", :timestamp
182 t.column "created_on", :timestamp
183 t.column "updated_on", :timestamp
183 t.column "updated_on", :timestamp
184 end
184 end
185
185
186 create_table "roles", :force => true do |t|
186 create_table "roles", :force => true do |t|
187 t.column "name", :string, :limit => 30, :default => "", :null => false
187 t.column "name", :string, :limit => 30, :default => "", :null => false
188 end
188 end
189
189
190 create_table "tokens", :force => true do |t|
190 create_table "tokens", :force => true do |t|
191 t.column "user_id", :integer, :default => 0, :null => false
191 t.column "user_id", :integer, :default => 0, :null => false
192 t.column "action", :string, :limit => 30, :default => "", :null => false
192 t.column "action", :string, :limit => 30, :default => "", :null => false
193 t.column "value", :string, :limit => 40, :default => "", :null => false
193 t.column "value", :string, :limit => 40, :default => "", :null => false
194 t.column "created_on", :datetime, :null => false
194 t.column "created_on", :datetime, :null => false
195 end
195 end
196
196
197 create_table "trackers", :force => true do |t|
197 create_table "trackers", :force => true do |t|
198 t.column "name", :string, :limit => 30, :default => "", :null => false
198 t.column "name", :string, :limit => 30, :default => "", :null => false
199 t.column "is_in_chlog", :boolean, :default => false, :null => false
199 t.column "is_in_chlog", :boolean, :default => false, :null => false
200 end
200 end
201
201
202 create_table "users", :force => true do |t|
202 create_table "users", :force => true do |t|
203 t.column "login", :string, :limit => 30, :default => "", :null => false
203 t.column "login", :string, :limit => 30, :default => "", :null => false
204 t.column "hashed_password", :string, :limit => 40, :default => "", :null => false
204 t.column "hashed_password", :string, :limit => 40, :default => "", :null => false
205 t.column "firstname", :string, :limit => 30, :default => "", :null => false
205 t.column "firstname", :string, :limit => 30, :default => "", :null => false
206 t.column "lastname", :string, :limit => 30, :default => "", :null => false
206 t.column "lastname", :string, :limit => 30, :default => "", :null => false
207 t.column "mail", :string, :limit => 60, :default => "", :null => false
207 t.column "mail", :string, :limit => 60, :default => "", :null => false
208 t.column "mail_notification", :boolean, :default => true, :null => false
208 t.column "mail_notification", :boolean, :default => true, :null => false
209 t.column "admin", :boolean, :default => false, :null => false
209 t.column "admin", :boolean, :default => false, :null => false
210 t.column "status", :integer, :default => 1, :null => false
210 t.column "status", :integer, :default => 1, :null => false
211 t.column "last_login_on", :datetime
211 t.column "last_login_on", :datetime
212 t.column "language", :string, :limit => 2, :default => ""
212 t.column "language", :string, :limit => 2, :default => ""
213 t.column "auth_source_id", :integer
213 t.column "auth_source_id", :integer
214 t.column "created_on", :timestamp
214 t.column "created_on", :timestamp
215 t.column "updated_on", :timestamp
215 t.column "updated_on", :timestamp
216 end
216 end
217
217
218 create_table "versions", :force => true do |t|
218 create_table "versions", :force => true do |t|
219 t.column "project_id", :integer, :default => 0, :null => false
219 t.column "project_id", :integer, :default => 0, :null => false
220 t.column "name", :string, :limit => 30, :default => "", :null => false
220 t.column "name", :string, :limit => 30, :default => "", :null => false
221 t.column "description", :string, :default => ""
221 t.column "description", :string, :default => ""
222 t.column "effective_date", :date
222 t.column "effective_date", :date
223 t.column "created_on", :timestamp
223 t.column "created_on", :timestamp
224 t.column "updated_on", :timestamp
224 t.column "updated_on", :timestamp
225 end
225 end
226
226
227 add_index "versions", ["project_id"], :name => "versions_project_id"
227 add_index "versions", ["project_id"], :name => "versions_project_id"
228
228
229 create_table "workflows", :force => true do |t|
229 create_table "workflows", :force => true do |t|
230 t.column "tracker_id", :integer, :default => 0, :null => false
230 t.column "tracker_id", :integer, :default => 0, :null => false
231 t.column "old_status_id", :integer, :default => 0, :null => false
231 t.column "old_status_id", :integer, :default => 0, :null => false
232 t.column "new_status_id", :integer, :default => 0, :null => false
232 t.column "new_status_id", :integer, :default => 0, :null => false
233 t.column "role_id", :integer, :default => 0, :null => false
233 t.column "role_id", :integer, :default => 0, :null => false
234 end
234 end
235
235
236 # project
236 # project
237 Permission.create :controller => "projects", :action => "show", :description => "label_overview", :sort => 100, :is_public => true
237 Permission.create :controller => "projects", :action => "show", :description => "label_overview", :sort => 100, :is_public => true
238 Permission.create :controller => "projects", :action => "changelog", :description => "label_change_log", :sort => 105, :is_public => true
238 Permission.create :controller => "projects", :action => "changelog", :description => "label_change_log", :sort => 105, :is_public => true
239 Permission.create :controller => "reports", :action => "issue_report", :description => "label_report_plural", :sort => 110, :is_public => true
239 Permission.create :controller => "reports", :action => "issue_report", :description => "label_report_plural", :sort => 110, :is_public => true
240 Permission.create :controller => "projects", :action => "settings", :description => "label_settings", :sort => 150
240 Permission.create :controller => "projects", :action => "settings", :description => "label_settings", :sort => 150
241 Permission.create :controller => "projects", :action => "edit", :description => "button_edit", :sort => 151
241 Permission.create :controller => "projects", :action => "edit", :description => "button_edit", :sort => 151
242 # members
242 # members
243 Permission.create :controller => "projects", :action => "list_members", :description => "button_list", :sort => 200, :is_public => true
243 Permission.create :controller => "projects", :action => "list_members", :description => "button_list", :sort => 200, :is_public => true
244 Permission.create :controller => "projects", :action => "add_member", :description => "button_add", :sort => 220
244 Permission.create :controller => "projects", :action => "add_member", :description => "button_add", :sort => 220
245 Permission.create :controller => "members", :action => "edit", :description => "button_edit", :sort => 221
245 Permission.create :controller => "members", :action => "edit", :description => "button_edit", :sort => 221
246 Permission.create :controller => "members", :action => "destroy", :description => "button_delete", :sort => 222
246 Permission.create :controller => "members", :action => "destroy", :description => "button_delete", :sort => 222
247 # versions
247 # versions
248 Permission.create :controller => "projects", :action => "add_version", :description => "button_add", :sort => 320
248 Permission.create :controller => "projects", :action => "add_version", :description => "button_add", :sort => 320
249 Permission.create :controller => "versions", :action => "edit", :description => "button_edit", :sort => 321
249 Permission.create :controller => "versions", :action => "edit", :description => "button_edit", :sort => 321
250 Permission.create :controller => "versions", :action => "destroy", :description => "button_delete", :sort => 322
250 Permission.create :controller => "versions", :action => "destroy", :description => "button_delete", :sort => 322
251 # issue categories
251 # issue categories
252 Permission.create :controller => "projects", :action => "add_issue_category", :description => "button_add", :sort => 420
252 Permission.create :controller => "projects", :action => "add_issue_category", :description => "button_add", :sort => 420
253 Permission.create :controller => "issue_categories", :action => "edit", :description => "button_edit", :sort => 421
253 Permission.create :controller => "issue_categories", :action => "edit", :description => "button_edit", :sort => 421
254 Permission.create :controller => "issue_categories", :action => "destroy", :description => "button_delete", :sort => 422
254 Permission.create :controller => "issue_categories", :action => "destroy", :description => "button_delete", :sort => 422
255 # issues
255 # issues
256 Permission.create :controller => "projects", :action => "list_issues", :description => "button_list", :sort => 1000, :is_public => true
256 Permission.create :controller => "projects", :action => "list_issues", :description => "button_list", :sort => 1000, :is_public => true
257 Permission.create :controller => "projects", :action => "export_issues_csv", :description => "label_export_csv", :sort => 1001, :is_public => true
257 Permission.create :controller => "projects", :action => "export_issues_csv", :description => "label_export_csv", :sort => 1001, :is_public => true
258 Permission.create :controller => "issues", :action => "show", :description => "button_view", :sort => 1005, :is_public => true
258 Permission.create :controller => "issues", :action => "show", :description => "button_view", :sort => 1005, :is_public => true
259 Permission.create :controller => "issues", :action => "download", :description => "button_download", :sort => 1010, :is_public => true
259 Permission.create :controller => "issues", :action => "download", :description => "button_download", :sort => 1010, :is_public => true
260 Permission.create :controller => "projects", :action => "add_issue", :description => "button_add", :sort => 1050, :mail_option => 1, :mail_enabled => 1
260 Permission.create :controller => "projects", :action => "add_issue", :description => "button_add", :sort => 1050, :mail_option => 1, :mail_enabled => 1
261 Permission.create :controller => "issues", :action => "edit", :description => "button_edit", :sort => 1055
261 Permission.create :controller => "issues", :action => "edit", :description => "button_edit", :sort => 1055
262 Permission.create :controller => "issues", :action => "change_status", :description => "label_change_status", :sort => 1060, :mail_option => 1, :mail_enabled => 1
262 Permission.create :controller => "issues", :action => "change_status", :description => "label_change_status", :sort => 1060, :mail_option => 1, :mail_enabled => 1
263 Permission.create :controller => "issues", :action => "destroy", :description => "button_delete", :sort => 1065
263 Permission.create :controller => "issues", :action => "destroy", :description => "button_delete", :sort => 1065
264 Permission.create :controller => "issues", :action => "add_attachment", :description => "label_attachment_new", :sort => 1070
264 Permission.create :controller => "issues", :action => "add_attachment", :description => "label_attachment_new", :sort => 1070
265 Permission.create :controller => "issues", :action => "destroy_attachment", :description => "label_attachment_delete", :sort => 1075
265 Permission.create :controller => "issues", :action => "destroy_attachment", :description => "label_attachment_delete", :sort => 1075
266 # news
266 # news
267 Permission.create :controller => "projects", :action => "list_news", :description => "button_list", :sort => 1100, :is_public => true
267 Permission.create :controller => "projects", :action => "list_news", :description => "button_list", :sort => 1100, :is_public => true
268 Permission.create :controller => "news", :action => "show", :description => "button_view", :sort => 1101, :is_public => true
268 Permission.create :controller => "news", :action => "show", :description => "button_view", :sort => 1101, :is_public => true
269 Permission.create :controller => "projects", :action => "add_news", :description => "button_add", :sort => 1120
269 Permission.create :controller => "projects", :action => "add_news", :description => "button_add", :sort => 1120
270 Permission.create :controller => "news", :action => "edit", :description => "button_edit", :sort => 1121
270 Permission.create :controller => "news", :action => "edit", :description => "button_edit", :sort => 1121
271 Permission.create :controller => "news", :action => "destroy", :description => "button_delete", :sort => 1122
271 Permission.create :controller => "news", :action => "destroy", :description => "button_delete", :sort => 1122
272 # documents
272 # documents
273 Permission.create :controller => "projects", :action => "list_documents", :description => "button_list", :sort => 1200, :is_public => true
273 Permission.create :controller => "projects", :action => "list_documents", :description => "button_list", :sort => 1200, :is_public => true
274 Permission.create :controller => "documents", :action => "show", :description => "button_view", :sort => 1201, :is_public => true
274 Permission.create :controller => "documents", :action => "show", :description => "button_view", :sort => 1201, :is_public => true
275 Permission.create :controller => "documents", :action => "download", :description => "button_download", :sort => 1202, :is_public => true
275 Permission.create :controller => "documents", :action => "download", :description => "button_download", :sort => 1202, :is_public => true
276 Permission.create :controller => "projects", :action => "add_document", :description => "button_add", :sort => 1220
276 Permission.create :controller => "projects", :action => "add_document", :description => "button_add", :sort => 1220
277 Permission.create :controller => "documents", :action => "edit", :description => "button_edit", :sort => 1221
277 Permission.create :controller => "documents", :action => "edit", :description => "button_edit", :sort => 1221
278 Permission.create :controller => "documents", :action => "destroy", :description => "button_delete", :sort => 1222
278 Permission.create :controller => "documents", :action => "destroy", :description => "button_delete", :sort => 1222
279 Permission.create :controller => "documents", :action => "add_attachment", :description => "label_attachment_new", :sort => 1223
279 Permission.create :controller => "documents", :action => "add_attachment", :description => "label_attachment_new", :sort => 1223
280 Permission.create :controller => "documents", :action => "destroy_attachment", :description => "label_attachment_delete", :sort => 1224
280 Permission.create :controller => "documents", :action => "destroy_attachment", :description => "label_attachment_delete", :sort => 1224
281 # files
281 # files
282 Permission.create :controller => "projects", :action => "list_files", :description => "button_list", :sort => 1300, :is_public => true
282 Permission.create :controller => "projects", :action => "list_files", :description => "button_list", :sort => 1300, :is_public => true
283 Permission.create :controller => "versions", :action => "download", :description => "button_download", :sort => 1301, :is_public => true
283 Permission.create :controller => "versions", :action => "download", :description => "button_download", :sort => 1301, :is_public => true
284 Permission.create :controller => "projects", :action => "add_file", :description => "button_add", :sort => 1320
284 Permission.create :controller => "projects", :action => "add_file", :description => "button_add", :sort => 1320
285 Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322
285 Permission.create :controller => "versions", :action => "destroy_file", :description => "button_delete", :sort => 1322
286
286
287 # create default administrator account
287 # create default administrator account
288 user = User.create :login => "admin",
288 user = User.create :login => "admin",
289 :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997",
289 :hashed_password => "d033e22ae348aeb5660fc2140aec35850c4da997",
290 :admin => true,
290 :admin => true,
291 :firstname => "Redmine",
291 :firstname => "Redmine",
292 :lastname => "Admin",
292 :lastname => "Admin",
293 :mail => "admin@somenet.foo",
293 :mail => "admin@example.net",
294 :mail_notification => true,
294 :mail_notification => true,
295 :language => "en",
295 :language => "en",
296 :status => 1
296 :status => 1
297 end
297 end
298
298
299 def self.down
299 def self.down
300 drop_table :attachments
300 drop_table :attachments
301 drop_table :auth_sources
301 drop_table :auth_sources
302 drop_table :custom_fields
302 drop_table :custom_fields
303 drop_table :custom_fields_projects
303 drop_table :custom_fields_projects
304 drop_table :custom_fields_trackers
304 drop_table :custom_fields_trackers
305 drop_table :custom_values
305 drop_table :custom_values
306 drop_table :documents
306 drop_table :documents
307 drop_table :enumerations
307 drop_table :enumerations
308 drop_table :issue_categories
308 drop_table :issue_categories
309 drop_table :issue_histories
309 drop_table :issue_histories
310 drop_table :issue_statuses
310 drop_table :issue_statuses
311 drop_table :issues
311 drop_table :issues
312 drop_table :members
312 drop_table :members
313 drop_table :news
313 drop_table :news
314 drop_table :permissions
314 drop_table :permissions
315 drop_table :permissions_roles
315 drop_table :permissions_roles
316 drop_table :projects
316 drop_table :projects
317 drop_table :roles
317 drop_table :roles
318 drop_table :trackers
318 drop_table :trackers
319 drop_table :tokens
319 drop_table :tokens
320 drop_table :users
320 drop_table :users
321 drop_table :versions
321 drop_table :versions
322 drop_table :workflows
322 drop_table :workflows
323 end
323 end
324 end
324 end
@@ -1,105 +1,105
1 # redMine - project management software
1 # redMine - project management software
2 # Copyright (C) 2006-2008 Jean-Philippe Lang
2 # Copyright (C) 2006-2008 Jean-Philippe Lang
3 #
3 #
4 # This program is free software; you can redistribute it and/or
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
7 # of the License, or (at your option) any later version.
8 #
8 #
9 # This program is distributed in the hope that it will be useful,
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
12 # GNU General Public License for more details.
13 #
13 #
14 # You should have received a copy of the GNU General Public License
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
17
18 namespace :redmine do
18 namespace :redmine do
19 namespace :email do
19 namespace :email do
20
20
21 desc <<-END_DESC
21 desc <<-END_DESC
22 Read an email from standard input.
22 Read an email from standard input.
23
23
24 Issue attributes control options:
24 Issue attributes control options:
25 project=PROJECT identifier of the target project
25 project=PROJECT identifier of the target project
26 tracker=TRACKER name of the target tracker
26 tracker=TRACKER name of the target tracker
27 category=CATEGORY name of the target category
27 category=CATEGORY name of the target category
28 priority=PRIORITY name of the target priority
28 priority=PRIORITY name of the target priority
29 allow_override=ATTRS allow email content to override attributes
29 allow_override=ATTRS allow email content to override attributes
30 specified by previous options
30 specified by previous options
31 ATTRS is a comma separated list of attributes
31 ATTRS is a comma separated list of attributes
32
32
33 Examples:
33 Examples:
34 # No project specified. Emails MUST contain the 'Project' keyword:
34 # No project specified. Emails MUST contain the 'Project' keyword:
35 rake redmine:email:read RAILS_ENV="production" < raw_email
35 rake redmine:email:read RAILS_ENV="production" < raw_email
36
36
37 # Fixed project and default tracker specified, but emails can override
37 # Fixed project and default tracker specified, but emails can override
38 # both tracker and priority attributes:
38 # both tracker and priority attributes:
39 rake redmine:email:read RAILS_ENV="production" \\
39 rake redmine:email:read RAILS_ENV="production" \\
40 project=foo \\
40 project=foo \\
41 tracker=bug \\
41 tracker=bug \\
42 allow_override=tracker,priority < raw_email
42 allow_override=tracker,priority < raw_email
43 END_DESC
43 END_DESC
44
44
45 task :read => :environment do
45 task :read => :environment do
46 options = { :issue => {} }
46 options = { :issue => {} }
47 %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
47 %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
48 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
48 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
49
49
50 MailHandler.receive(STDIN.read, options)
50 MailHandler.receive(STDIN.read, options)
51 end
51 end
52
52
53 desc <<-END_DESC
53 desc <<-END_DESC
54 Read emails from an IMAP server.
54 Read emails from an IMAP server.
55
55
56 Available IMAP options:
56 Available IMAP options:
57 host=HOST IMAP server host (default: 127.0.0.1)
57 host=HOST IMAP server host (default: 127.0.0.1)
58 port=PORT IMAP server port (default: 143)
58 port=PORT IMAP server port (default: 143)
59 ssl=SSL Use SSL? (default: false)
59 ssl=SSL Use SSL? (default: false)
60 username=USERNAME IMAP account
60 username=USERNAME IMAP account
61 password=PASSWORD IMAP password
61 password=PASSWORD IMAP password
62 folder=FOLDER IMAP folder to read (default: INBOX)
62 folder=FOLDER IMAP folder to read (default: INBOX)
63
63
64 Issue attributes control options:
64 Issue attributes control options:
65 project=PROJECT identifier of the target project
65 project=PROJECT identifier of the target project
66 tracker=TRACKER name of the target tracker
66 tracker=TRACKER name of the target tracker
67 category=CATEGORY name of the target category
67 category=CATEGORY name of the target category
68 priority=PRIORITY name of the target priority
68 priority=PRIORITY name of the target priority
69 allow_override=ATTRS allow email content to override attributes
69 allow_override=ATTRS allow email content to override attributes
70 specified by previous options
70 specified by previous options
71 ATTRS is a comma separated list of attributes
71 ATTRS is a comma separated list of attributes
72
72
73 Examples:
73 Examples:
74 # No project specified. Emails MUST contain the 'Project' keyword:
74 # No project specified. Emails MUST contain the 'Project' keyword:
75
75
76 rake redmine:email:receive_iamp RAILS_ENV="production" \\
76 rake redmine:email:receive_iamp RAILS_ENV="production" \\
77 host=imap.foo.bar username=redmine@somenet.foo password=xxx
77 host=imap.foo.bar username=redmine@example.net password=xxx
78
78
79
79
80 # Fixed project and default tracker specified, but emails can override
80 # Fixed project and default tracker specified, but emails can override
81 # both tracker and priority attributes:
81 # both tracker and priority attributes:
82
82
83 rake redmine:email:receive_iamp RAILS_ENV="production" \\
83 rake redmine:email:receive_iamp RAILS_ENV="production" \\
84 host=imap.foo.bar username=redmine@somenet.foo password=xxx ssl=1 \\
84 host=imap.foo.bar username=redmine@example.net password=xxx ssl=1 \\
85 project=foo \\
85 project=foo \\
86 tracker=bug \\
86 tracker=bug \\
87 allow_override=tracker,priority
87 allow_override=tracker,priority
88 END_DESC
88 END_DESC
89
89
90 task :receive_imap => :environment do
90 task :receive_imap => :environment do
91 imap_options = {:host => ENV['host'],
91 imap_options = {:host => ENV['host'],
92 :port => ENV['port'],
92 :port => ENV['port'],
93 :ssl => ENV['ssl'],
93 :ssl => ENV['ssl'],
94 :username => ENV['username'],
94 :username => ENV['username'],
95 :password => ENV['password'],
95 :password => ENV['password'],
96 :folder => ENV['folder']}
96 :folder => ENV['folder']}
97
97
98 options = { :issue => {} }
98 options = { :issue => {} }
99 %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
99 %w(project tracker category priority).each { |a| options[:issue][a.to_sym] = ENV[a] if ENV[a] }
100 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
100 options[:allow_override] = ENV['allow_override'] if ENV['allow_override']
101
101
102 Redmine::IMAP.check(imap_options, options)
102 Redmine::IMAP.check(imap_options, options)
103 end
103 end
104 end
104 end
105 end
105 end
General Comments 0
You need to be logged in to leave comments. Login now