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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
0b20d850
Commit
0b20d850
authored
Mar 14, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for postgresql
parent
67729cec
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
db/migrate/20161201160452_migrate_project_statistics.rb
db/migrate/20161201160452_migrate_project_statistics.rb
+2
-2
db/migrate/20161212142807_add_lower_path_index_to_routes.rb
db/migrate/20161212142807_add_lower_path_index_to_routes.rb
+1
-1
db/migrate/20170130204620_add_index_to_project_authorizations.rb
...ate/20170130204620_add_index_to_project_authorizations.rb
+4
-0
db/migrate/20170305203726_add_owner_id_foreign_key.rb
db/migrate/20170305203726_add_owner_id_foreign_key.rb
+5
-1
No files found.
db/migrate/20161201160452_migrate_project_statistics.rb
View file @
0b20d850
...
...
@@ -17,7 +17,7 @@ class MigrateProjectStatistics < ActiveRecord::Migration
end
def
down
add_column
_with_default
:projects
,
:repository_size
,
:float
,
default:
0.0
add_column
_with_default
:projects
,
:commit_count
,
:integer
,
default:
0
add_column
:projects
,
:repository_size
,
:float
,
default:
0.0
add_column
:projects
,
:commit_count
,
:integer
,
default:
0
end
end
db/migrate/20161212142807_add_lower_path_index_to_routes.rb
View file @
0b20d850
...
...
@@ -17,6 +17,6 @@ class AddLowerPathIndexToRoutes < ActiveRecord::Migration
def
down
return
unless
Gitlab
::
Database
.
postgresql?
remove_index
:routes
,
name: :index_on_routes_lower_path
remove_index
:routes
,
name: :index_on_routes_lower_path
if
index_exists?
(
:routes
,
name: :index_on_routes_lower_path
)
end
end
db/migrate/20170130204620_add_index_to_project_authorizations.rb
View file @
0b20d850
...
...
@@ -8,4 +8,8 @@ class AddIndexToProjectAuthorizations < ActiveRecord::Migration
def
up
add_concurrent_index
(
:project_authorizations
,
:project_id
)
end
def
down
remove_index
(
:project_authorizations
,
:project_id
)
end
end
db/migrate/20170305203726_add_owner_id_foreign_key.rb
View file @
0b20d850
...
...
@@ -5,7 +5,11 @@ class AddOwnerIdForeignKey < ActiveRecord::Migration
disable_ddl_transaction!
def
change
def
up
add_concurrent_foreign_key
:ci_triggers
,
:users
,
column: :owner_id
,
on_delete: :cascade
end
def
down
remove_foreign_key
:ci_triggers
,
column: :owner_id
end
end
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