Skip to content

Commit

Permalink
Fix dl backup
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Feb 5, 2024
1 parent d846532 commit fa08273
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
17 changes: 0 additions & 17 deletions backup/moodle2/backup_datalynx_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,23 +187,6 @@ protected function define_structure() {
LEFT JOIN {datalynx_filters} fil ON " . $DB->sql_cast_char2int('f.param3') . " = fil.id
WHERE f.dataid = :dataid
GROUP BY f.id", array('dataid' => backup::VAR_PARENTID));
} else if ($CFG->dbtype == 'pgsql') {
$field->set_source_sql(
"SELECT f.*,
CASE WHEN f.type = 'datalynxview' THEN MAX(c.fullname) ELSE NULL END AS targetcourse,
CASE WHEN f.type = 'datalynxview' THEN MAX(d.name) ELSE NULL END AS targetinstance,
CASE WHEN f.type = 'datalynxview' THEN MAX(v.name) ELSE NULL END AS targetview,
CASE WHEN f.type = 'datalynxview' THEN MAX(fil.name) ELSE NULL END AS targetfilter
FROM {datalynx_fields} f
LEFT JOIN {datalynx} d ON f.param1::INTEGER = d.id
LEFT JOIN {course_modules} cm ON cm.instance = d.id
LEFT JOIN {course} c ON cm.course = c.id
LEFT JOIN {datalynx_views} v ON f.param2::INTEGER = v.id
LEFT JOIN {datalynx_filters} fil ON f.param3::INTEGER = fil.id
WHERE f.dataid = :dataid
GROUP BY f.id",
array('dataid' => backup::VAR_PARENTID)
);
} else {
$field->set_source_sql(
"SELECT f.*
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'mod_datalynx';
$plugin->version = 2024012502;
$plugin->release = 'v3.3-DataIntelligence'; // Data words like data science, data mining.
$plugin->version = 2024020500;
$plugin->release = 'v3.4-DataIntelligence'; // Data words like data science, data mining.
$plugin->requires = 2022112800;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
Expand Down

0 comments on commit fa08273

Please sign in to comment.