From 7489e4d5b9c0b44e03068586f3aa9545fdc4f5c9 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 28 Mar 2018 19:53:21 +0800 Subject: [PATCH] MDL-36941 message_popup: do not remove message_popup table This is a partial revert of commit 123631ad4718141627d77027dbef0448bae22ac8. Most of the logic was NOT reverted, just the part deleting the table was. Note - this fix was done on integration.git and as a result no upgrade step was added to re-introduce the table, sorry! This means for those on integration.git you will have to re-install your Moodle site so the 'message_popup' table is present. Please see tracker for comments as to why we need to keep it! :) --- message/output/popup/db/install.xml | 22 ++++++++++++++++++++++ message/output/popup/db/upgrade.php | 11 ----------- 2 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 message/output/popup/db/install.xml diff --git a/message/output/popup/db/install.xml b/message/output/popup/db/install.xml new file mode 100644 index 00000000000..bb7a9924b07 --- /dev/null +++ b/message/output/popup/db/install.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + +
+
+
diff --git a/message/output/popup/db/upgrade.php b/message/output/popup/db/upgrade.php index 26f3b1e5484..455d89a4d78 100644 --- a/message/output/popup/db/upgrade.php +++ b/message/output/popup/db/upgrade.php @@ -83,16 +83,5 @@ function xmldb_message_popup_upgrade($oldversion) { // Automatically generated Moodle v3.4.0 release upgrade line. // Put any upgrade step following this. - if ($oldversion < 2018022000) { - // Drop table that is no longer needed. - $table = new xmldb_table('message_popup'); - if ($dbman->table_exists($table)) { - $dbman->drop_table($table); - } - - // Popup savepoint reached. - upgrade_plugin_savepoint(true, 2018022000, 'message', 'popup'); - } - return true; }