Example #1
0
?>
<#4044>
<?php 
$ilDB->dropPrimaryKey("page_history");
$ilDB->addPrimaryKey('page_history', array('page_id', 'parent_type', 'hdate', 'lang'));
?>
<#4045>
<?php 
include_once './Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php';
ilDBUpdateNewObjectType::updateOperationOrder('files_visible', 3210);
ilDBUpdateNewObjectType::updateOperationOrder('folders_visible', 3220);
ilDBUpdateNewObjectType::updateOperationOrder('download', 3230);
ilDBUpdateNewObjectType::updateOperationOrder('upload', 3240);
ilDBUpdateNewObjectType::updateOperationOrder('folders_create', 3250);
ilDBUpdateNewObjectType::updateOperationOrder('delete_files', 3260);
ilDBUpdateNewObjectType::updateOperationOrder('delete_folders', 3270);
?>
<#4046>
<?php 
if (!$ilDB->tableExists('copg_multilang')) {
    $fields = array('parent_type' => array('type' => 'text', 'length' => 10, 'notnull' => true, 'default' => 0), 'parent_id' => array('type' => 'integer', 'length' => 4, 'notnull' => true, 'default' => 0), 'master_lang' => array('type' => 'text', 'length' => 2, 'notnull' => true));
    $ilDB->createTable('copg_multilang', $fields);
    $ilDB->addPrimaryKey('copg_multilang', array('parent_type', 'parent_id'));
}
?>
<#4047>
<?php 
if (!$ilDB->tableExists('copg_multilang_lang')) {
    $fields = array('parent_type' => array('type' => 'text', 'length' => 10, 'notnull' => true, 'default' => 0), 'parent_id' => array('type' => 'integer', 'length' => 4, 'notnull' => true, 'default' => 0), 'lang' => array('type' => 'text', 'length' => 2, 'notnull' => true));
    $ilDB->createTable('copg_multilang_lang', $fields);
    $ilDB->addPrimaryKey('copg_multilang_lang', array('parent_type', 'parent_id', 'lang'));
}
$dcl_type_id = ilDBUpdateNewObjectType::getObjectTypeId('dcl');
if ($dcl_type_id) {
    $ilDB->manipulate('DELETE FROM rbac_operations WHERE operation = ' . $ilDB->quote($dcl_type_id, 'text'));
    // re-doing dcl
    $ops_id = ilDBUpdateNewObjectType::addCustomRBACOperation('add_entry', 'Add Entry', 'object', 3200);
    if ($ops_id) {
        ilDBUpdateNewObjectType::addRBACOperation($dcl_type_id, $ops_id);
    }
}
?>
<#3676>
<?php 
#6969
include_once './Services/Migration/DBUpdate_3560/classes/class.ilDBUpdateNewObjectType.php';
ilDBUpdateNewObjectType::updateOperationOrder('invite', 2600);
?>
<#3677>
<?php 
global $ilDB;
if (!$ilDB->tableExists('ecs_node_mapping_a')) {
    $fields = array('server_id' => array('type' => 'integer', 'length' => 4), 'mid' => array('type' => 'integer', 'length' => 4), 'cs_root' => array('type' => 'integer', 'length' => 4), 'cs_id' => array('type' => 'integer', 'length' => 4), 'ref_id' => array('type' => 'integer', 'length' => 4), 'obj_id' => array('type' => 'integer', 'length' => 4), 'title_update' => array('type' => 'integer', 'length' => 1), 'position_update' => array('type' => 'integer', 'length' => 1), 'tree_update' => array('type' => 'integer', 'length' => 1));
    $ilDB->createTable('ecs_node_mapping_a', $fields);
    $ilDB->addPrimaryKey('ecs_node_mapping_a', array('server_id', 'mid', 'cs_root', 'cs_id'));
}
?>

<#3678>
<?php 
global $ilDB;
if (!$ilDB->tableExists('ecs_cms_tree')) {