19 declare(strict_types=1);
23 protected \ilDBInterface
$db;
35 if (!$this->db->tableColumnExists(
'il_md_cpr_selections',
'full_name')) {
36 $this->db->addTableColumn(
37 'il_md_cpr_selections',
49 if (!$this->db->tableColumnExists(
'il_md_cpr_selections',
'link')) {
50 $this->db->addTableColumn(
51 'il_md_cpr_selections',
63 if (!$this->db->tableColumnExists(
'il_md_cpr_selections',
'image_link')) {
64 $this->db->addTableColumn(
65 'il_md_cpr_selections',
77 if (!$this->db->tableColumnExists(
'il_md_cpr_selections',
'alt_text')) {
78 $this->db->addTableColumn(
79 'il_md_cpr_selections',
91 if (!$this->db->tableColumnExists(
'il_md_cpr_selections',
'migrated')) {
92 $this->db->addTableColumn(
93 'il_md_cpr_selections',
step_5()
Add a column to il_md_cpr_selections to track which licences have been migrated.
step_2()
Add a column to il_md_cpr_selections for the link to the licence.
step_3()
Add a column to il_md_cpr_selections for the link to the licence's image.
step_1()
Add a column to il_md_cpr_selections for the full name of the licence.
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
step_4()
Add a column to il_md_cpr_selections for the alt text of the licence's image.