19 declare(strict_types=1);
23 protected \ilDBInterface
$db;
36 if (!$this->db->tableColumnExists(
'il_meta_general',
'general_aggl')) {
37 $this->db->addTableColumn(
54 if (!$this->db->tableColumnExists(
'il_meta_contribute',
'c_date_descr')) {
55 $this->db->addTableColumn(
63 if (!$this->db->tableColumnExists(
'il_meta_contribute',
'descr_lang')) {
64 $this->db->addTableColumn(
81 if (!$this->db->tableColumnExists(
'il_meta_annotation',
'a_date_descr')) {
82 $this->db->addTableColumn(
90 if (!$this->db->tableColumnExists(
'il_meta_annotation',
'date_descr_lang')) {
91 $this->db->addTableColumn(
108 if (!$this->db->tableColumnExists(
'il_meta_educational',
'tlt_descr')) {
109 $this->db->addTableColumn(
110 'il_meta_educational',
117 if (!$this->db->tableColumnExists(
'il_meta_educational',
'tlt_descr_lang')) {
118 $this->db->addTableColumn(
119 'il_meta_educational',
135 if (!$this->db->tableColumnExists(
'il_meta_technical',
'duration_descr')) {
136 $this->db->addTableColumn(
144 if (!$this->db->tableColumnExists(
'il_meta_technical',
'duration_descr_lang')) {
145 $this->db->addTableColumn(
147 'duration_descr_lang',
161 if (!$this->db->tableExists(
'il_meta_coverage')) {
162 $this->db->createTable(
165 'meta_coverage_id' => [
191 'coverage_language' => [
199 $this->db->createSequence(
'il_meta_coverage');
200 $this->db->addPrimaryKey(
'il_meta_coverage', [
'meta_coverage_id']);
209 if (!$this->db->tableExists(
'il_meta_meta_schema')) {
210 $this->db->createTable(
211 'il_meta_meta_schema',
213 'meta_meta_schema_id' => [
235 'meta_data_schema' => [
242 $this->db->createSequence(
'il_meta_meta_schema');
243 $this->db->addPrimaryKey(
'il_meta_meta_schema', [
'meta_meta_schema_id']);
252 if (!$this->db->tableExists(
'il_meta_or_composite')) {
253 $this->db->createTable(
254 'il_meta_or_composite',
256 'meta_or_composite_id' => [
297 $this->db->createSequence(
'il_meta_or_composite');
298 $this->db->addPrimaryKey(
'il_meta_or_composite', [
'meta_or_composite_id']);
307 if (!$this->db->tableExists(
'il_meta_lr_type')) {
308 $this->db->createTable(
311 'meta_lr_type_id' => [
333 'learning_resource_type' => [
340 $this->db->createSequence(
'il_meta_lr_type');
341 $this->db->addPrimaryKey(
'il_meta_lr_type', [
'meta_lr_type_id']);
350 if (!$this->db->tableExists(
'il_meta_end_usr_role')) {
351 $this->db->createTable(
352 'il_meta_end_usr_role',
354 'meta_end_usr_role_id' => [
376 'intended_end_user_role' => [
383 $this->db->createSequence(
'il_meta_end_usr_role');
384 $this->db->addPrimaryKey(
'il_meta_end_usr_role', [
'meta_end_usr_role_id']);
393 if (!$this->db->tableExists(
'il_meta_context')) {
394 $this->db->createTable(
397 'meta_context_id' => [
426 $this->db->createSequence(
'il_meta_context');
427 $this->db->addPrimaryKey(
'il_meta_context', [
'meta_context_id']);
step_3()
Add two columns to the il_meta_annotation table to store the description of the date and its language...
step_8()
Add a new table for the non-unique or-composite in requirements.
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
step_11()
Add a new table for the non-unique context.
step_2()
Add two columns to the il_meta_contribute table to store the descrption of the date and its language...
step_4()
Add two columns to the il_meta_educational table to store the description of the typical learning tim...
step_1()
Add a column to the il_meta_general table to store the 'Aggregation Level' element.
step_5()
Add two columns to the il_meta_technical table to store the description of the duration and its langu...
step_6()
Add a new table for the non-unique coverage.
step_9()
Add a new table for the non-unique learning resource type.
step_7()
Add a new table for the non-unique metadata schema.
step_10()
Add a new table for the non-unique intented end user role.