Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aab6fa7a
Commit
aab6fa7a
authored
Mar 24, 2017
by
http://jneen.net/
Committed by
Felipe Artur
Apr 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add columns for service desk
parent
5e9a7025
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
db/migrate/20170404223037_add_service_desk_settings.rb
db/migrate/20170404223037_add_service_desk_settings.rb
+37
-0
db/schema.rb
db/schema.rb
+7
-1
No files found.
db/migrate/20170404223037_add_service_desk_settings.rb
0 → 100644
View file @
aab6fa7a
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddServiceDeskSettings
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
# When a migration requires downtime you **must** uncomment the following
# constant and define a short and easy to understand explanation as to why the
# migration requires downtime.
# DOWNTIME_REASON = ''
# When using the methods "add_concurrent_index" or "add_column_with_default"
# you must disable the use of transactions as these methods can not run in an
# existing transaction. When using "add_concurrent_index" make sure that this
# method is the _only_ method called in the migration, any other changes
# should go in a separate migration. This ensures that upon failure _only_ the
# index creation fails and can be retried or reverted easily.
#
# To disable transactions uncomment the following line and remove these
# comments:
disable_ddl_transaction!
def
change
add_column
:users
,
:support_bot
,
:boolean
add_column
:projects
,
:service_desk_enabled
,
:boolean
add_column
:projects
,
:service_desk_mail_key
,
:string
add_column
:issues
,
:service_desk_reply_to
,
:string
add_concurrent_index
:users
,
:support_bot
add_concurrent_index
:projects
,
:service_desk_mail_key
,
unique:
true
end
end
db/schema.rb
View file @
aab6fa7a
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017040
3141442
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017040
4223037
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -534,6 +534,7 @@ ActiveRecord::Schema.define(version: 20170403141442) do
t
.
integer
"time_estimate"
t
.
integer
"relative_position"
t
.
datetime
"closed_at"
t
.
string
"service_desk_reply_to"
end
add_index
"issues"
,
[
"assignee_id"
],
name:
"index_issues_on_assignee_id"
,
using: :btree
...
...
@@ -1073,6 +1074,8 @@ ActiveRecord::Schema.define(version: 20170403141442) do
t
.
integer
"repository_size_limit"
,
limit:
8
t
.
integer
"sync_time"
,
default:
60
,
null:
false
t
.
boolean
"printing_merge_request_link_enabled"
,
default:
true
,
null:
false
t
.
boolean
"service_desk_enabled"
t
.
string
"service_desk_mail_key"
end
add_index
"projects"
,
[
"ci_id"
],
name:
"index_projects_on_ci_id"
,
using: :btree
...
...
@@ -1088,6 +1091,7 @@ ActiveRecord::Schema.define(version: 20170403141442) do
add_index
"projects"
,
[
"path"
],
name:
"index_projects_on_path_trigram"
,
using: :gin
,
opclasses:
{
"path"
=>
"gin_trgm_ops"
}
add_index
"projects"
,
[
"pending_delete"
],
name:
"index_projects_on_pending_delete"
,
using: :btree
add_index
"projects"
,
[
"runners_token"
],
name:
"index_projects_on_runners_token"
,
using: :btree
add_index
"projects"
,
[
"service_desk_mail_key"
],
name:
"index_projects_on_service_desk_mail_key"
,
unique:
true
,
using: :btree
add_index
"projects"
,
[
"star_count"
],
name:
"index_projects_on_star_count"
,
using: :btree
add_index
"projects"
,
[
"sync_time"
],
name:
"index_projects_on_sync_time"
,
using: :btree
add_index
"projects"
,
[
"visibility_level"
],
name:
"index_projects_on_visibility_level"
,
using: :btree
...
...
@@ -1448,6 +1452,7 @@ ActiveRecord::Schema.define(version: 20170403141442) do
t
.
boolean
"auditor"
,
default:
false
,
null:
false
t
.
boolean
"ghost"
t
.
boolean
"notified_of_own_activity"
t
.
boolean
"support_bot"
end
add_index
"users"
,
[
"admin"
],
name:
"index_users_on_admin"
,
using: :btree
...
...
@@ -1462,6 +1467,7 @@ ActiveRecord::Schema.define(version: 20170403141442) do
add_index
"users"
,
[
"name"
],
name:
"index_users_on_name_trigram"
,
using: :gin
,
opclasses:
{
"name"
=>
"gin_trgm_ops"
}
add_index
"users"
,
[
"reset_password_token"
],
name:
"index_users_on_reset_password_token"
,
unique:
true
,
using: :btree
add_index
"users"
,
[
"state"
],
name:
"index_users_on_state"
,
using: :btree
add_index
"users"
,
[
"support_bot"
],
name:
"index_users_on_support_bot"
,
using: :btree
add_index
"users"
,
[
"username"
],
name:
"index_users_on_username"
,
using: :btree
add_index
"users"
,
[
"username"
],
name:
"index_users_on_username_trigram"
,
using: :gin
,
opclasses:
{
"username"
=>
"gin_trgm_ops"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment