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
97192401
Commit
97192401
authored
Jun 28, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename columns on the geo_repository_renamed_events table
parent
3032178e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
app/models/geo/repository_renamed_event.rb
app/models/geo/repository_renamed_event.rb
+2
-2
db/migrate/20170623195236_create_geo_repository_renamed_events.rb
...te/20170623195236_create_geo_repository_renamed_events.rb
+4
-4
db/schema.rb
db/schema.rb
+4
-4
No files found.
app/models/geo/repository_renamed_event.rb
View file @
97192401
...
@@ -5,8 +5,8 @@ module Geo
...
@@ -5,8 +5,8 @@ module Geo
belongs_to
:project
belongs_to
:project
validates
:project
,
:repository_storage_name
,
:repository_storage_path
,
validates
:project
,
:repository_storage_name
,
:repository_storage_path
,
:old_
repo_path_with_namespace
,
:new_repo
_path_with_namespace
,
:old_
path_with_namespace
,
:new
_path_with_namespace
,
:old_wiki_path_with_namespace
,
:new_wiki_path_with_namespace
,
:old_wiki_path_with_namespace
,
:new_wiki_path_with_namespace
,
:old_p
roject_name
,
:new_project_name
,
presence:
true
:old_p
ath
,
:new_path
,
presence:
true
end
end
end
end
db/migrate/20170623195236_create_geo_repository_renamed_events.rb
View file @
97192401
...
@@ -8,12 +8,12 @@ class CreateGeoRepositoryRenamedEvents < ActiveRecord::Migration
...
@@ -8,12 +8,12 @@ class CreateGeoRepositoryRenamedEvents < ActiveRecord::Migration
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:project
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
text
:repository_storage_name
,
null:
false
t
.
text
:repository_storage_name
,
null:
false
t
.
text
:repository_storage_path
,
null:
false
t
.
text
:repository_storage_path
,
null:
false
t
.
text
:old_
repo_
path_with_namespace
,
null:
false
t
.
text
:old_path_with_namespace
,
null:
false
t
.
text
:new_
repo_
path_with_namespace
,
null:
false
t
.
text
:new_path_with_namespace
,
null:
false
t
.
text
:old_wiki_path_with_namespace
,
null:
false
t
.
text
:old_wiki_path_with_namespace
,
null:
false
t
.
text
:new_wiki_path_with_namespace
,
null:
false
t
.
text
:new_wiki_path_with_namespace
,
null:
false
t
.
text
:old_p
roject_name
,
null:
false
t
.
text
:old_p
ath
,
null:
false
t
.
text
:new_p
roject_name
,
null:
false
t
.
text
:new_p
ath
,
null:
false
end
end
add_column
:geo_event_log
,
:repository_renamed_event_id
,
:integer
,
limit:
8
add_column
:geo_event_log
,
:repository_renamed_event_id
,
:integer
,
limit:
8
...
...
db/schema.rb
View file @
97192401
...
@@ -630,12 +630,12 @@ ActiveRecord::Schema.define(version: 20170627211700) do
...
@@ -630,12 +630,12 @@ ActiveRecord::Schema.define(version: 20170627211700) do
t
.
integer
"project_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
t
.
text
"repository_storage_name"
,
null:
false
t
.
text
"repository_storage_name"
,
null:
false
t
.
text
"repository_storage_path"
,
null:
false
t
.
text
"repository_storage_path"
,
null:
false
t
.
text
"old_
repo_
path_with_namespace"
,
null:
false
t
.
text
"old_path_with_namespace"
,
null:
false
t
.
text
"new_
repo_
path_with_namespace"
,
null:
false
t
.
text
"new_path_with_namespace"
,
null:
false
t
.
text
"old_wiki_path_with_namespace"
,
null:
false
t
.
text
"old_wiki_path_with_namespace"
,
null:
false
t
.
text
"new_wiki_path_with_namespace"
,
null:
false
t
.
text
"new_wiki_path_with_namespace"
,
null:
false
t
.
text
"old_p
roject_name
"
,
null:
false
t
.
text
"old_p
ath
"
,
null:
false
t
.
text
"new_p
roject_name
"
,
null:
false
t
.
text
"new_p
ath
"
,
null:
false
end
end
add_index
"geo_repository_renamed_events"
,
[
"project_id"
],
name:
"index_geo_repository_renamed_events_on_project_id"
,
using: :btree
add_index
"geo_repository_renamed_events"
,
[
"project_id"
],
name:
"index_geo_repository_renamed_events_on_project_id"
,
using: :btree
...
...
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