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
Boxiang Sun
gitlab-ce
Commits
d3ae4976
Commit
d3ae4976
authored
Apr 09, 2019
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix backport of project_creation_level migration
parent
923d49d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
db/migrate/20180115113902_add_project_creation_level_to_groups.rb
...te/20180115113902_add_project_creation_level_to_groups.rb
+17
-0
db/migrate/20190311132527_add_project_creation_level_to_namespaces.rb
...0190311132527_add_project_creation_level_to_namespaces.rb
+0
-22
No files found.
db/migrate/20180115113902_add_project_creation_level_to_groups.rb
0 → 100644
View file @
d3ae4976
class
AddProjectCreationLevelToGroups
<
ActiveRecord
::
Migration
[
4.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
unless
column_exists?
(
:namespaces
,
:project_creation_level
)
add_column
(
:namespaces
,
:project_creation_level
,
:integer
)
end
end
def
down
if
column_exists?
(
:namespaces
,
:project_creation_level
)
remove_column
(
:namespaces
,
:project_creation_level
,
:integer
)
end
end
end
db/migrate/20190311132527_add_project_creation_level_to_namespaces.rb
deleted
100644 → 0
View file @
923d49d4
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddProjectCreationLevelToNamespaces
<
ActiveRecord
::
Migration
[
5.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
unless
column_exists?
(
:namespaces
,
:project_creation_level
)
add_column
:namespaces
,
:project_creation_level
,
:integer
end
end
def
down
unless
column_exists?
(
:namespaces
,
:project_creation_level
)
remove_column
:namespaces
,
:project_creation_level
,
:integer
end
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