Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
3a04f4e9
Commit
3a04f4e9
authored
1 year ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
remove duplicate staff entries from qa_staff
parent
b81ce761
No related branches found
Branches containing commit
Tags
end-of-sprint-46
Tags containing commit
3 merge requests
!1390
Catch up with Main
,
!1308
Catchup with main 2.8.1
,
!1301
remove duplicate staff entries from qa_staff
Pipeline
#9388
passed
1 year ago
Stage: cache-build
Stage: build
Stage: build-pex-base
Stage: unit-test
Stage: push
Stage: generate-pex-yaml
Stage: pex-trigger
Stage: generate-go-yaml
Stage: go-trigger
Stage: deploy
Stage: .post
Pipeline: workspaces
#9399
Pipeline: workspaces
#9398
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/workspaces/alembic/versions/68a8ad53ad74_change_qa_terminology.py
+27
-0
27 additions, 0 deletions
...es/alembic/versions/68a8ad53ad74_change_qa_terminology.py
with
27 additions
and
0 deletions
shared/workspaces/alembic/versions/68a8ad53ad74_change_qa_terminology.py
+
27
−
0
View file @
3a04f4e9
...
...
@@ -41,6 +41,33 @@ def upgrade():
WHERE
"
group
"
=
'
DA
'
;
"""
)
# Remove duplicate entries
op
.
execute
(
"""
CREATE TABLE qa_staff_tmp (LIKE qa_staff);
"""
)
op
.
execute
(
"""
INSERT INTO qa_staff_tmp(user_name,
"
group
"
, available, email)
SELECT
DISTINCT ON (user_name,
"
group
"
) user_name,
"
group
"
, available, email
FROM qa_staff;
"""
)
op
.
execute
(
"""
DROP TABLE qa_staff;
"""
)
op
.
execute
(
"""
ALTER TABLE qa_staff_tmp
RENAME TO qa_staff;
"""
)
# Put back unique constraint
op
.
execute
(
"""
ALTER TABLE qa_staff
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment