42 $flavour_table =
"il_resource_flavour";
43 $this->db->dropTable($flavour_table,
false);
44 if ($this->db->tableExists($flavour_table)) {
48 $this->db->createTable($flavour_table, [
71 $this->db->addIndex($flavour_table, [
'rid'],
'i1');
72 $this->db->addIndex($flavour_table, [
'definition_id'],
'i3');
73 $this->db->addIndex($flavour_table, [
'variant'],
'i4');
74 $this->db->addPrimaryKey($flavour_table, [
'rid',
'revision',
'definition_id',
'variant']);
81 $this->db->dropIndexByFields(
'il_resource_info', [
'rid']);
85 $this->db->dropIndexByFields(
'il_resource_revision', [
'rid']);
89 $this->db->dropIndexByFields(
'il_resource_stkh_u', [
'rid']);
97 $this->db->addTableColumn(
'il_resource',
'rtype', [
101 'default' => ResourceType::SINGLE_FILE->value
108 $this->db->addTableColumn(
'il_resource_revision',
'status', [
112 'default' => RevisionStatus::PUBLISHED->value
prepare(ilDBInterface $db)
Class ilResourceStorageDB90.
step_1()
creates a new database table "il_resource_flavour" that is used to reference resource flavours to it'...