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
!400
Something went wrong on our end
Mock blocks with reblog operations
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Mock blocks with reblog operations
mt-mock-reblogs
into
develop
Overview
3
Commits
2
Pipelines
0
Changes
4
All threads resolved!
Hide all comments
Merged
Mariusz Trela
requested to merge
mt-mock-reblogs
into
develop
4 years ago
Overview
3
Commits
2
Pipelines
0
Changes
4
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
607d1048
Show latest version
4 files
+
15
−
27
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
607d1048
Final fixes in SQL functions: `delete_reblog_feed_cache`, `delete_hive_post`
· 607d1048
Mariusz Trela
authored
4 years ago
hive/db/sql_scripts/delete_reblog_feed_cache.sql
+
4
−
7
Options
DROP
FUNCTION
IF
EXISTS
delete_reblog_feed_cache
(
character
varying
,
character
varying
,
character
varying
,
BOOLEAN
)
DROP
FUNCTION
IF
EXISTS
delete_reblog_feed_cache
(
character
varying
,
character
varying
,
character
varying
)
;
CREATE
OR
REPLACE
FUNCTION
delete_reblog_feed_cache
(
in
_author
hive_accounts
.
name
%
TYPE
,
in
_permlink
hive_permlink_data
.
permlink
%
TYPE
,
in
_account
hive_accounts
.
name
%
TYPE
,
in
_delete_feed_cache
BOOLEAN
)
in
_account
hive_accounts
.
name
%
TYPE
)
RETURNS
INTEGER
LANGUAGE
plpgsql
AS
@@ -26,10 +25,8 @@ BEGIN
DELETE
FROM
hive_reblogs
WHERE
blogger_id
=
__account_id
AND
post_id
=
__post_id
;
IF
_delete_feed_cache
THEN
DELETE
FROM
hive_feed_cache
WHERE
account_id
=
__account_id
AND
post_id
=
__post_id
;
END
IF
;
DELETE
FROM
hive_feed_cache
WHERE
account_id
=
__account_id
AND
post_id
=
__post_id
;
RETURN
1
;
END
Loading