Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
1470e362
Verified
Commit
1470e362
authored
5 years ago
by
Florian Azizian
Browse files
Options
Downloads
Patches
Plain Diff
FIX #12138 TIME 0:05 users_baskets_preferences migration for indexingBasket in secondary group
parent
b03381e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migration/18.04/1804.sql
+3
-0
3 additions, 0 deletions
migration/18.04/1804.sql
with
3 additions
and
0 deletions
migration/18.04/1804.sql
+
3
−
0
View file @
1470e362
...
@@ -676,6 +676,9 @@ DO $$ BEGIN
...
@@ -676,6 +676,9 @@ DO $$ BEGIN
select
users
.
id
,
usergroups
.
id
,
user_baskets_secondary
.
basket_id
,
TRUE
from
users
,
usergroups
,
user_baskets_secondary
select
users
.
id
,
usergroups
.
id
,
user_baskets_secondary
.
basket_id
,
TRUE
from
users
,
usergroups
,
user_baskets_secondary
where
users
.
user_id
=
user_baskets_secondary
.
user_id
and
usergroups
.
group_id
=
user_baskets_secondary
.
group_id
where
users
.
user_id
=
user_baskets_secondary
.
user_id
and
usergroups
.
group_id
=
user_baskets_secondary
.
group_id
order
by
users
.
id
;
order
by
users
.
id
;
INSERT
INTO
users_baskets_preferences
(
user_serial_id
,
group_serial_id
,
basket_id
,
display
)
SELECT
u
.
id
,
g
.
id
,
'IndexingBasket'
,
TRUE
FROM
users
as
u
INNER
JOIN
usergroup_content
AS
c
ON
u
.
user_id
=
c
.
user_id
INNER
JOIN
usergroups
AS
g
ON
g
.
group_id
=
c
.
group_id
WHERE
(
u
.
user_id
,
g
.
group_id
)
IN
(
SELECT
user_id
,
group_id
FROM
usergroup_content
WHERE
primary_group
=
'N'
);
DROP
TABLE
IF
EXISTS
user_baskets_secondary
;
DROP
TABLE
IF
EXISTS
user_baskets_secondary
;
END
IF
;
END
IF
;
END
$$
;
END
$$
;
...
...
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