Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Jan-Hendrik Willms
Stud.IP
Commits
77bb57a9
Commit
77bb57a9
authored
2 years ago
by
Jan-Hendrik Willms
Committed by
David Siegfried
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
drop table blubber_follower and remove last remaining code for it, fixes #2082
Closes #2082 Merge request
studip/studip!1353
parent
bef977ef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/migrations/5.1.40_drop_table_blubber_follower.php
+30
-0
30 additions, 0 deletions
db/migrations/5.1.40_drop_table_blubber_follower.php
lib/models/User.class.php
+0
-3
0 additions, 3 deletions
lib/models/User.class.php
with
30 additions
and
3 deletions
db/migrations/5.1.40_drop_table_blubber_follower.php
0 → 100644
+
30
−
0
View file @
77bb57a9
<?php
/**
* @see https://gitlab.studip.de/studip/studip/-/issues/2082
*/
final
class
DropTableBlubberFollower
extends
Migration
{
public
function
description
()
{
return
'Removes unused table "blubber_follower"'
;
}
protected
function
up
()
{
$query
=
"DROP TABLE IF EXISTS `blubber_follower`"
;
DBManager
::
get
()
->
exec
(
$query
);
}
protected
function
down
()
{
$query
=
"CREATE TABLE IF NOT EXISTS `blubber_follower` (
`studip_user_id` CHAR(32) COLLATE latin1_bin NOT NULL,
`external_contact_id` CHAR(32) COLLATE latin1_bin NOT NULL,
`left_follows_right` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
KEY `studip_user_id` (`studip_user_id`),
KEY `external_contact_id` (`external_contact_id`)
)"
;
DBManager
::
get
()
->
exec
(
$query
);
}
}
This diff is collapsed.
Click to expand it.
lib/models/User.class.php
+
0
−
3
View file @
77bb57a9
...
@@ -1258,9 +1258,6 @@ class User extends AuthUserMd5 implements Range, PrivacyObject
...
@@ -1258,9 +1258,6 @@ class User extends AuthUserMd5 implements Range, PrivacyObject
$query
=
"UPDATE IGNORE blubber_comments SET user_id = ? WHERE user_id = ?"
;
$query
=
"UPDATE IGNORE blubber_comments SET user_id = ? WHERE user_id = ?"
;
$statement
=
DBManager
::
get
()
->
prepare
(
$query
);
$statement
=
DBManager
::
get
()
->
prepare
(
$query
);
$statement
->
execute
([
$new_id
,
$old_id
]);
$statement
->
execute
([
$new_id
,
$old_id
]);
$query
=
"UPDATE IGNORE blubber_follower SET studip_user_id = ? WHERE studip_user_id = ?"
;
$statement
=
DBManager
::
get
()
->
prepare
(
$query
);
$statement
->
execute
([
$new_id
,
$old_id
]);
$query
=
"UPDATE IGNORE blubber_mentions SET user_id = ? WHERE user_id = ?"
;
$query
=
"UPDATE IGNORE blubber_mentions SET user_id = ? WHERE user_id = ?"
;
$statement
=
DBManager
::
get
()
->
prepare
(
$query
);
$statement
=
DBManager
::
get
()
->
prepare
(
$query
);
$statement
->
execute
([
$new_id
,
$old_id
]);
$statement
->
execute
([
$new_id
,
$old_id
]);
...
...
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