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
e7e66184
Commit
e7e66184
authored
Oct 02, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename access token to instances
parent
7098c3a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
db/schema.rb
db/schema.rb
+3
-3
ee/db/migrate/20180626171125_add_feature_flags_to_projects.rb
...b/migrate/20180626171125_add_feature_flags_to_projects.rb
+8
-3
No files found.
db/schema.rb
View file @
e7e66184
...
...
@@ -1954,12 +1954,12 @@ ActiveRecord::Schema.define(version: 20180926140319) do
add_index
"operations_feature_flags"
,
[
"project_id"
,
"name"
],
name:
"index_operations_feature_flags_on_project_id_and_name"
,
unique:
true
,
using: :btree
create_table
"operations_feature_flags_
access_token
s"
,
force: :cascade
do
|
t
|
create_table
"operations_feature_flags_
instance
s"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"token"
,
null:
false
end
add_index
"operations_feature_flags_
access_tokens"
,
[
"project_id"
,
"token"
],
name:
"project_feature_flag_access
_token"
,
unique:
true
,
using: :btree
add_index
"operations_feature_flags_
instances"
,
[
"token"
],
name:
"index_operations_feature_flags_instances_on
_token"
,
unique:
true
,
using: :btree
create_table
"packages_maven_metadata"
,
id: :bigserial
,
force: :cascade
do
|
t
|
t
.
integer
"package_id"
,
limit:
8
,
null:
false
...
...
@@ -3252,7 +3252,7 @@ ActiveRecord::Schema.define(version: 20180926140319) do
add_foreign_key
"notification_settings"
,
"users"
,
name:
"fk_0c95e91db7"
,
on_delete: :cascade
add_foreign_key
"oauth_openid_requests"
,
"oauth_access_grants"
,
column:
"access_grant_id"
,
name:
"fk_oauth_openid_requests_oauth_access_grants_access_grant_id"
add_foreign_key
"operations_feature_flags"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"operations_feature_flags_
access_token
s"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"operations_feature_flags_
instance
s"
,
"projects"
,
on_delete: :cascade
add_foreign_key
"packages_maven_metadata"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_be88aed360"
,
on_delete: :cascade
add_foreign_key
"packages_package_files"
,
"packages_packages"
,
column:
"package_id"
,
name:
"fk_86f0f182f8"
,
on_delete: :cascade
add_foreign_key
"packages_packages"
,
"projects"
,
on_delete: :cascade
...
...
ee/db/migrate/20180626171125_add_feature_flags_to_projects.rb
View file @
e7e66184
...
...
@@ -4,7 +4,7 @@ class AddFeatureFlagsToProjects < ActiveRecord::Migration
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
def
change
def
up
create_table
:operations_feature_flags
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
datetime_with_timezone
:created_at
,
null:
false
...
...
@@ -19,13 +19,18 @@ class AddFeatureFlagsToProjects < ActiveRecord::Migration
t
.
index
[
:project_id
,
:name
],
unique:
true
end
create_table
:operations_feature_flags_
access_token
s
do
|
t
|
create_table
:operations_feature_flags_
instance
s
do
|
t
|
t
.
integer
:project_id
,
null:
false
t
.
string
:token
,
null:
false
t
.
index
[
:project_id
,
:token
],
unique:
true
,
name: :project_feature_flag_access_token
t
.
index
:token
,
unique:
true
t
.
foreign_key
:projects
,
column: :project_id
,
on_delete: :cascade
end
end
def
down
drop_table
:operations_feature_flags
drop_table
:operations_feature_flags_instances
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