Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-koch committed Mar 3, 2018
1 parent 6b0854a commit d7ae1f0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@

namespace v330\ServiceMessagesImprovements;


use BusinessLogic\ServiceMessages\ServiceMessageLocation;

class UpdateExistingServiceMessagesLocations extends \AbstractUpdatableMigration {

function innerUp($hesk_settings) {
$this->executeQuery("INSERT INTO `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_service_message_to_location` (`service_message_id`, `location`)
SELECT `id`, '" . hesk_dbEscape(ServiceMessageLocation::CUSTOMER_HOME) . "' FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "service_messages`");
SELECT `id`, 'CUSTOMER_HOME' FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "service_messages`");
}

function innerDown($hesk_settings) {
Expand Down

0 comments on commit d7ae1f0

Please sign in to comment.