blob: fe32e6e1b473946326e808d1df629e98e1528a8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?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);
}
}
|