(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.ka = {})); }(this, function (exports) { 'use strict'; var fp = typeof window !== "undefined" && window.flatpickr !== undefined ? window.flatpickr : { l10ns: {} }; var Georgian = { weekdays: { shorthand: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"], longhand: [ "კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი", ] }, months: { shorthand: [ "იან", "თებ", "მარ", "აპრ", "მაი", "ივნ", "ივლ", "აგვ", "სექ", "ოქტ", "ნოე", "დეკ", ], longhand: [ "იანვარი", "თებერვალი", "მარტი", "აპრილი", "მაისი", "ივნისი", "ივლისი", "აგვისტო", "სექტემბერი", "ოქტომბერი", "ნოემბერი", "დეკემბერი", ] }, firstDayOfWeek: 1, ordinal: function () { return ""; }, rangeSeparator: " — ", weekAbbreviation: "კვ.", scrollTitle: "დასქროლეთ გასადიდებლად", toggleTitle: "დააკლიკეთ გადართვისთვის", amPM: ["AM", "PM"], yearAriaLabel: "წელი", time_24hr: true }; fp.l10ns.ka = Georgian; var ka = fp.l10ns; exports.Georgian = Georgian; exports.default = ka; Object.defineProperty(exports, '__esModule', { value: true }); }));

Operation Tips

Operation on the UI is similar to operating system's standard file manager. However, Drag and Drop is not possible with mobile browsers.

/* CSS for adverts */ .updraft_notice_container { height: auto; overflow: hidden; } .updraft_review_notice_container { padding: 12px; display: -webkit-box; display: -ms-flexbox; display: flex; } .updraft_advert_button_container { margin-bottom: 10px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .updraft_advert_button_container .dashicons { margin-left: 10px; } .updraft_advert_content_left { float: none; width: 80px; padding-top: 9px; margin-right: 9px; } .updraft_advert_content_left_extra { float: none; width: 100px; padding-right: 15px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .updraft_advert_content_left img { min-height: 72px; min-width: 72px; } .updraft_advert_content_right { float: none; width: auto; overflow: hidden; font-size: 16px; } .updraft_advert_content_right p { font-size: 16px!important; } .updraft_advert_bottom { margin: 10px 0; padding: 10px; font-size: 140%; background-color: white; border-color: #E6DB55; border: 1px solid; border-radius: 4px; } .updraft-advert-dismiss { float: right; font-size: 13px; font-weight: normal; } h3.updraft_advert_heading { margin-top: 5px !important; margin-bottom: 5px !important; } h4.updraft_advert_heading { margin-top: 2px !important; margin-bottom: 3px !important; } .updraft_center_content { text-align: center; margin-bottom: 5px; } .updraft_notice_link { padding-left: 5px; } .updraft_text_center { text-align: center; } @media screen and (min-width: 560px) { .updraft_advert_content_left, .updraft_advert_content_left_extra { float: left; } } Problems with upgrading to the 5.0 version running the migration script - Pandora FMS Community
  1. Home
  2. Knowledge Base
  3. Problems (EN)
  4. Problems with upgrading to the 5.0 version running the migration script

Problems with upgrading to the 5.0 version running the migration script

It is possible that after running the migration script from 4.1 to 5 an error occurs regarding a table treport_content:

ERROR 1452 (23000) at line 266: Cannot add or update a child row: a foreign key constraint fails (`pandora`.<result 2 when explaining filename '#sql-867_1ba'>, CONSTRAINT `?sql?867_1ba_ibfk_1` FOREIGN KEY (`id_report_content`) REFERENCES `treport_content` (`id_rc`) ON DELETE CASCADE ON UPD)

If this occurs, you will have to execute this query in MySQL:

DELETE from treport_content_item WHERE id_report_content NOT IN (select id_rc from treport_content);

After this you have two options: to comment all lines to 265 and re-run the migration script, or to restore the  database using the backup that we should have done before, run the previous query and then execute the full migration script again.

Was this article helpful?

Related Articles

¿Necesita ayuda?

¿No encuentra una solucion? No se preocupe, nuestro trabajo es ayudarle.
Contactar con soporte