Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
3c9eba44
Commit
3c9eba44
authored
Nov 12, 2019
by
Robert Lyon
Committed by
Gerrit Code Review
Nov 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1850786: remove plugin ES triggers"
parents
3f48ed72
de2d7fc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
htdocs/lib/db/upgrade.php
htdocs/lib/db/upgrade.php
+10
-0
htdocs/lib/version.php
htdocs/lib/version.php
+1
-1
No files found.
htdocs/lib/db/upgrade.php
View file @
3c9eba44
...
...
@@ -1542,5 +1542,15 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
if
(
$oldversion
<
2019111100
)
{
log_debug
(
'Drop the elasticsearch triggers for the plugins'
);
require_once
(
get_config
(
'docroot'
)
.
'search/elasticsearch/lib.php'
);
$enabledtypes
=
explode
(
','
,
get_config_plugin
(
'search'
,
'elasticsearch'
,
'types'
));
foreach
(
$enabledtypes
as
$type
)
{
ElasticsearchIndexing
::
drop_triggers
(
$type
);
}
ElasticsearchIndexing
::
drop_trigger_functions
();
}
return
$status
;
}
htdocs/lib/version.php
View file @
3c9eba44
...
...
@@ -16,7 +16,7 @@ $config = new stdClass();
// See https://wiki.mahara.org/wiki/Developer_Area/Version_Numbering_Policy
// For upgrades on stable branches, increment the version by one. On master, use the date.
$config
->
version
=
20191
020
00
;
$config
->
version
=
20191
111
00
;
$config
->
series
=
'20.04'
;
$config
->
release
=
'20.04dev'
;
$config
->
minupgradefrom
=
2017031605
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment