blob: 8db1111c2c093e7f181a2afdbfc00c0ed3f0622e (
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
31
32
33
34
35
36
|
<?php
class Step00316Mvvkernintegration extends Migration
{
public function description()
{
return 'StEP00316 - MVV: Vollständige Kernintegration';
}
public function up() {
$db = DBManager::get();
$db->exec("UPDATE `log_actions` SET `class` = 'MVV', `type` = 'core' WHERE `class` LIKE 'MVVPlugin' AND `type` = 'plugin'");
// remove dependencies on old core plugin
$db->execute("DELETE FROM `plugin_assets` "
. "WHERE `plugin_id` IN ("
. " SELECT `pluginid` "
. " FROM `plugins` "
. " WHERE `pluginpath` = 'core/Modulverwaltung')");
$db->execute("DELETE FROM `roles_plugins` "
. "WHERE `pluginid` IN ("
. " SELECT `pluginid` "
. " FROM `plugins` "
. " WHERE `pluginpath` = 'core/Modulverwaltung')");
$db->execute("DELETE FROM `plugins` "
. "WHERE `pluginpath` = 'core/Modulverwaltung'");
}
public function down() {
}
}
|