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
d499d501
Commit
d499d501
authored
Jun 13, 2019
by
Patrick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create project_aliases table
parent
c68677f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
db/migrate/20190613073003_create_project_aliases.rb
db/migrate/20190613073003_create_project_aliases.rb
+16
-0
db/schema.rb
db/schema.rb
+10
-0
No files found.
db/migrate/20190613073003_create_project_aliases.rb
0 → 100644
View file @
d499d501
# frozen_string_literal: true
class
CreateProjectAliases
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:project_aliases
do
|
t
|
t
.
references
:project
,
null:
false
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
type: :integer
t
.
string
:name
,
null:
false
,
index:
{
unique:
true
}
t
.
timestamps_with_timezone
null:
false
end
end
end
db/schema.rb
View file @
d499d501
...
...
@@ -2401,6 +2401,15 @@ ActiveRecord::Schema.define(version: 20190620112608) do
t
.
string
"encrypted_token_iv"
,
null:
false
end
create_table
"project_aliases"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"name"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
index
[
"name"
],
name:
"index_project_aliases_on_name"
,
unique:
true
,
using: :btree
t
.
index
[
"project_id"
],
name:
"index_project_aliases_on_project_id"
,
using: :btree
end
create_table
"project_authorizations"
,
id:
false
,
force: :cascade
do
|
t
|
t
.
integer
"user_id"
,
null:
false
t
.
integer
"project_id"
,
null:
false
...
...
@@ -3780,6 +3789,7 @@ ActiveRecord::Schema.define(version: 20190620112608) do
add_foreign_key
"pool_repositories"
,
"projects"
,
column:
"source_project_id"
,
on_delete: :nullify
add_foreign_key
"pool_repositories"
,
"shards"
,
on_delete: :restrict
add_foreign_key
"project_alerting_settings"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_aliases"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_authorizations"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"project_authorizations"
,
"users"
,
on_delete: :cascade
add_foreign_key
"project_auto_devops"
,
"projects"
,
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