Skip to content

Commit

Permalink
Harmonize data representation in db
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Jun 18, 2024
1 parent 6bec9d1 commit d63273e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1021,19 +1021,19 @@ function xmldb_datalynx_upgrade($oldversion) {
// Datalynx savepoint reached.
upgrade_mod_savepoint(true, 2023101202, 'datalynx');
}
if ($oldversion < 2024061401) {
if ($oldversion < 2024061402) {
// Get all fieldids of type teammemberselect.

$sql = "UPDATE {datalynx_rules} mdr
SET param7 = json_build_array(mdf.id)::text
SET param7 = json_build_array(CAST(mdf.id AS text))::text
FROM {datalynx_fields} mdf
WHERE mdr.dataid = mdf.dataid
AND mdr.type = 'eventnotification'
AND mdr.name = 'Korrektur erforerlich'
AND mdf.name = 'Kommentar'";
$DB->execute($sql);
// Datalynx savepoint reached.
upgrade_mod_savepoint(true, 2024061401, 'datalynx');
upgrade_mod_savepoint(true, 2024061402, 'datalynx');
}
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'mod_datalynx';
$plugin->version = 2024061401;
$plugin->version = 2024061402;
$plugin->release = 'v4.0-DataTreasure'; // Data words like data science, data mining.
$plugin->requires = 2022112800;
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit d63273e

Please sign in to comment.