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
967ca3e3
Commit
967ca3e3
authored
Apr 08, 2020
by
Jason Goodman
Committed by
Shinya Maeda
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create Operations User Lists Table
parent
b9299863
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
0 deletions
+55
-0
changelogs/unreleased/add-operations-ff-lists-table.yml
changelogs/unreleased/add-operations-ff-lists-table.yml
+5
-0
db/migrate/20200401211005_create_operations_user_lists.rb
db/migrate/20200401211005_create_operations_user_lists.rb
+18
-0
db/structure.sql
db/structure.sql
+32
-0
No files found.
changelogs/unreleased/add-operations-ff-lists-table.yml
0 → 100644
View file @
967ca3e3
---
title
:
Create operations_user_lists table
merge_request
:
28822
author
:
type
:
added
db/migrate/20200401211005_create_operations_user_lists.rb
0 → 100644
View file @
967ca3e3
# frozen_string_literal: true
class
CreateOperationsUserLists
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
change
create_table
:operations_user_lists
do
|
t
|
t
.
references
:project
,
index:
false
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
timestamps_with_timezone
t
.
integer
:iid
,
null:
false
t
.
string
:name
,
null:
false
,
limit:
255
t
.
text
:user_xids
,
null:
false
,
default:
''
t
.
index
[
:project_id
,
:iid
],
unique:
true
t
.
index
[
:project_id
,
:name
],
unique:
true
end
end
end
db/structure.sql
View file @
967ca3e3
...
...
@@ -4300,6 +4300,25 @@ CREATE SEQUENCE public.operations_strategies_id_seq
ALTER
SEQUENCE
public
.
operations_strategies_id_seq
OWNED
BY
public
.
operations_strategies
.
id
;
CREATE
TABLE
public
.
operations_user_lists
(
id
bigint
NOT
NULL
,
project_id
bigint
NOT
NULL
,
created_at
timestamp
with
time
zone
NOT
NULL
,
updated_at
timestamp
with
time
zone
NOT
NULL
,
iid
integer
NOT
NULL
,
name
character
varying
(
255
)
NOT
NULL
,
user_xids
text
DEFAULT
''
::
text
NOT
NULL
);
CREATE
SEQUENCE
public
.
operations_user_lists_id_seq
START
WITH
1
INCREMENT
BY
1
NO
MINVALUE
NO
MAXVALUE
CACHE
1
;
ALTER
SEQUENCE
public
.
operations_user_lists_id_seq
OWNED
BY
public
.
operations_user_lists
.
id
;
CREATE
TABLE
public
.
packages_build_infos
(
id
bigint
NOT
NULL
,
package_id
integer
NOT
NULL
,
...
...
@@ -7250,6 +7269,8 @@ ALTER TABLE ONLY public.operations_scopes ALTER COLUMN id SET DEFAULT nextval('p
ALTER
TABLE
ONLY
public
.
operations_strategies
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'public.operations_strategies_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
public
.
operations_user_lists
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'public.operations_user_lists_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
public
.
packages_build_infos
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'public.packages_build_infos_id_seq'
::
regclass
);
ALTER
TABLE
ONLY
public
.
packages_conan_file_metadata
ALTER
COLUMN
id
SET
DEFAULT
nextval
(
'public.packages_conan_file_metadata_id_seq'
::
regclass
);
...
...
@@ -8053,6 +8074,9 @@ ALTER TABLE ONLY public.operations_scopes
ALTER
TABLE
ONLY
public
.
operations_strategies
ADD
CONSTRAINT
operations_strategies_pkey
PRIMARY
KEY
(
id
);
ALTER
TABLE
ONLY
public
.
operations_user_lists
ADD
CONSTRAINT
operations_user_lists_pkey
PRIMARY
KEY
(
id
);
ALTER
TABLE
ONLY
public
.
packages_build_infos
ADD
CONSTRAINT
packages_build_infos_pkey
PRIMARY
KEY
(
id
);
...
...
@@ -9614,6 +9638,10 @@ CREATE UNIQUE INDEX index_operations_scopes_on_strategy_id_and_environment_scope
CREATE
INDEX
index_operations_strategies_on_feature_flag_id
ON
public
.
operations_strategies
USING
btree
(
feature_flag_id
);
CREATE
UNIQUE
INDEX
index_operations_user_lists_on_project_id_and_iid
ON
public
.
operations_user_lists
USING
btree
(
project_id
,
iid
);
CREATE
UNIQUE
INDEX
index_operations_user_lists_on_project_id_and_name
ON
public
.
operations_user_lists
USING
btree
(
project_id
,
name
);
CREATE
UNIQUE
INDEX
index_packages_build_infos_on_package_id
ON
public
.
packages_build_infos
USING
btree
(
package_id
);
CREATE
INDEX
index_packages_build_infos_on_pipeline_id
ON
public
.
packages_build_infos
USING
btree
(
pipeline_id
);
...
...
@@ -10930,6 +10958,9 @@ ALTER TABLE ONLY public.project_deploy_tokens
ALTER
TABLE
ONLY
public
.
packages_conan_file_metadata
ADD
CONSTRAINT
fk_rails_0afabd9328
FOREIGN
KEY
(
package_file_id
)
REFERENCES
public
.
packages_package_files
(
id
)
ON
DELETE
CASCADE
;
ALTER
TABLE
ONLY
public
.
operations_user_lists
ADD
CONSTRAINT
fk_rails_0c716e079b
FOREIGN
KEY
(
project_id
)
REFERENCES
public
.
projects
(
id
)
ON
DELETE
CASCADE
;
ALTER
TABLE
ONLY
public
.
geo_node_statuses
ADD
CONSTRAINT
fk_rails_0ecc699c2a
FOREIGN
KEY
(
geo_node_id
)
REFERENCES
public
.
geo_nodes
(
id
)
ON
DELETE
CASCADE
;
...
...
@@ -12974,6 +13005,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200330123739
20200330132913
20200331220930
20200401211005
20200402123926
20200402135250
20200403184110
...
...
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