Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Merge requests
!370
Jsalyers muting at sql level
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Jsalyers muting at sql level
jsalyers-muting-at-sql-level
into
develop
Overview
9
Commits
92
Pipelines
0
Changes
3
Merged
Jason Salyers
requested to merge
jsalyers-muting-at-sql-level
into
develop
4 years ago
Overview
6
Commits
92
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
version 1
version 24
b07246fa
4 years ago
version 23
42e2f28f
4 years ago
version 22
e149b557
4 years ago
version 21
c1e2b03e
4 years ago
version 20
11bd9f0c
4 years ago
version 19
5a7e9fbf
4 years ago
version 18
3c6b17a8
4 years ago
version 17
093129d1
4 years ago
version 16
c3ef3f92
4 years ago
version 15
cb77bf0d
4 years ago
version 14
c941b9cb
4 years ago
version 13
8cb20ba0
4 years ago
version 12
627df934
4 years ago
version 11
606d4839
4 years ago
version 10
dae1c6a8
4 years ago
version 9
5b321841
4 years ago
version 8
142a662e
4 years ago
version 7
2021370c
4 years ago
version 6
2019d65d
4 years ago
version 5
fbf3a90d
4 years ago
version 4
4b16df93
4 years ago
version 3
c2cdd241
4 years ago
version 2
d3d5f951
4 years ago
version 1
55b43555
4 years ago
develop (base)
and
version 2
latest version
7f364f17
92 commits,
4 years ago
version 24
b07246fa
91 commits,
4 years ago
version 23
42e2f28f
90 commits,
4 years ago
version 22
e149b557
89 commits,
4 years ago
version 21
c1e2b03e
88 commits,
4 years ago
version 20
11bd9f0c
87 commits,
4 years ago
version 19
5a7e9fbf
40 commits,
4 years ago
version 18
3c6b17a8
39 commits,
4 years ago
version 17
093129d1
38 commits,
4 years ago
version 16
c3ef3f92
37 commits,
4 years ago
version 15
cb77bf0d
36 commits,
4 years ago
version 14
c941b9cb
35 commits,
4 years ago
version 13
8cb20ba0
34 commits,
4 years ago
version 12
627df934
33 commits,
4 years ago
version 11
606d4839
32 commits,
4 years ago
version 10
dae1c6a8
31 commits,
4 years ago
version 9
5b321841
30 commits,
4 years ago
version 8
142a662e
29 commits,
4 years ago
version 7
2021370c
28 commits,
4 years ago
version 6
2019d65d
27 commits,
4 years ago
version 5
fbf3a90d
26 commits,
4 years ago
version 4
4b16df93
5 commits,
4 years ago
version 3
c2cdd241
4 commits,
4 years ago
version 2
d3d5f951
3 commits,
4 years ago
version 1
55b43555
2 commits,
4 years ago
Show latest version
3 files
+
37
−
52
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
hive/db/sql_scripts/upgrade/upgrade_table_schema.sql
+
17
−
0
Options
@@ -357,3 +357,20 @@ CREATE INDEX IF NOT EXISTS hive_posts_promoted_id_idx ON hive_posts (promoted, i
WHERE
NOT
is_paidout
AND
counter_deleted
=
0
;
DROP
VIEW
IF
EXISTS
muted_accounts_view
;
CREATE
OR
REPLACE
VIEW
muted_accounts_view
AS
(
SELECT
observer_accounts
.
name
AS
observer
,
following_accounts
.
name
AS
muted
FROM
hive_follows
JOIN
hive_accounts
following_accounts
ON
hive_follows
.
following
=
following_accounts
.
id
JOIN
hive_accounts
observer_accounts
ON
hive_follows
.
follower
=
observer_accounts
.
id
WHERE
hive_follows
.
state
=
2
UNION
SELECT
observer_accounts
.
name
AS
observer
,
following_accounts
.
name
AS
muted
FROM
hive_follows
hive_follows_direct
JOIN
hive_follows
hive_follows_indirect
ON
hive_follows_direct
.
following
=
hive_follows_indirect
.
follower
JOIN
hive_accounts
following_accounts
ON
hive_follows_indirect
.
following
=
following_accounts
.
id
JOIN
hive_accounts
observer_accounts
ON
hive_follows_direct
.
follower
=
observer_accounts
.
id
WHERE
hive_follows_direct
.
follow_muted
AND
hive_follows_indirect
.
state
=
2
);
Loading