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
cb6c7cbe
Commit
cb6c7cbe
authored
May 24, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create geo_event_log table
parent
f66b0eac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
db/migrate/20170522201800_create_geo_event_log.rb
db/migrate/20170522201800_create_geo_event_log.rb
+13
-0
db/schema.rb
db/schema.rb
+9
-0
No files found.
db/migrate/20170522201800_create_geo_event_log.rb
0 → 100644
View file @
cb6c7cbe
class
CreateGeoEventLog
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
change
create_table
:geo_event_log
do
|
t
|
t
.
integer
:push_event_id
t
.
datetime
:created_at
,
index:
true
,
null:
false
end
add_foreign_key
:geo_event_log
,
:geo_push_events
,
column: :push_event_id
,
on_delete: :cascade
# rubocop: disable Migration/AddConcurrentForeignKey
add_index
:geo_event_log
,
:push_event_id
end
end
db/schema.rb
View file @
cb6c7cbe
...
@@ -500,6 +500,14 @@ ActiveRecord::Schema.define(version: 20170602003304) do
...
@@ -500,6 +500,14 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_index
"forked_project_links"
,
[
"forked_to_project_id"
],
name:
"index_forked_project_links_on_forked_to_project_id"
,
unique:
true
,
using: :btree
add_index
"forked_project_links"
,
[
"forked_to_project_id"
],
name:
"index_forked_project_links_on_forked_to_project_id"
,
unique:
true
,
using: :btree
create_table
"geo_event_log"
,
force: :cascade
do
|
t
|
t
.
integer
"push_event_id"
t
.
datetime
"created_at"
,
null:
false
end
add_index
"geo_event_log"
,
[
"created_at"
],
name:
"index_geo_event_log_on_created_at"
,
using: :btree
add_index
"geo_event_log"
,
[
"push_event_id"
],
name:
"index_geo_event_log_on_push_event_id"
,
using: :btree
create_table
"geo_nodes"
,
force: :cascade
do
|
t
|
create_table
"geo_nodes"
,
force: :cascade
do
|
t
|
t
.
string
"schema"
t
.
string
"schema"
t
.
string
"host"
t
.
string
"host"
...
@@ -1675,6 +1683,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do
...
@@ -1675,6 +1683,7 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_foreign_key
"ci_triggers"
,
"users"
,
column:
"owner_id"
,
name:
"fk_e8e10d1964"
,
on_delete: :cascade
add_foreign_key
"ci_triggers"
,
"users"
,
column:
"owner_id"
,
name:
"fk_e8e10d1964"
,
on_delete: :cascade
add_foreign_key
"ci_variables"
,
"projects"
,
name:
"fk_ada5eb64b3"
,
on_delete: :cascade
add_foreign_key
"ci_variables"
,
"projects"
,
name:
"fk_ada5eb64b3"
,
on_delete: :cascade
add_foreign_key
"container_repositories"
,
"projects"
add_foreign_key
"container_repositories"
,
"projects"
add_foreign_key
"geo_event_log"
,
"geo_push_events"
,
column:
"push_event_id"
,
on_delete: :cascade
add_foreign_key
"geo_push_events"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"geo_push_events"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"issue_assignees"
,
"issues"
,
name:
"fk_b7d881734a"
,
on_delete: :cascade
add_foreign_key
"issue_assignees"
,
"issues"
,
name:
"fk_b7d881734a"
,
on_delete: :cascade
add_foreign_key
"issue_assignees"
,
"users"
,
name:
"fk_5e0c8d9154"
,
on_delete: :cascade
add_foreign_key
"issue_assignees"
,
"users"
,
name:
"fk_5e0c8d9154"
,
on_delete: :cascade
...
...
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