diff --git a/install/db_scripts/update_4_3.xml b/install/db_scripts/update_4_3.xml
index 21db5db07..3dcee1afc 100644
--- a/install/db_scripts/update_4_3.xml
+++ b/install/db_scripts/update_4_3.xml
@@ -42,7 +42,6 @@
UPDATE %PREFIX%_menu SET men_icon='fa-file-signature' WHERE men_name_intern = 'newreg'
UPDATE %PREFIX%_components SET com_name = 'SYS_EVENTS', com_name_intern = 'EVENTS' WHERE com_name_intern = 'DATES'
UPDATE %PREFIX%_menu SET men_name = 'SYS_EVENTS', men_name_intern = 'events', men_url='/adm_program/modules/events/events.php' WHERE men_name_intern = 'dates'
- UPDATE %PREFIX%_categories SET cat_type = 'EVT' WHERE cat_type = 'DAT'
UPDATE %PREFIX%_preferences pr1 INNER JOIN %PREFIX%_preferences pr2 ON pr2.prf_name = 'enable_dates_module' SET pr1.prf_value = pr2.prf_value WHERE pr1.prf_name = 'events_module_enabled'
UPDATE %PREFIX%_preferences pr1 SET prf_value = pr2.prf_value FROM %PREFIX%_preferences pr2 WHERE pr2.prf_name = 'enable_dates_module' AND pr1.prf_name = 'events_module_enabled'
DELETE FROM %PREFIX%_preferences WHERE prf_name = 'enable_dates_module'
@@ -123,5 +122,6 @@
UPDATE %PREFIX%_preferences SET prf_value = '1200' WHERE prf_name = 'photo_show_height' AND prf_value::int < 800
UPDATE %PREFIX%_preferences SET prf_value = '24' WHERE prf_name = 'photo_thumbs_page' AND CAST(prf_value AS unsigned) = 16
UPDATE %PREFIX%_preferences SET prf_value = '24' WHERE prf_name = 'photo_thumbs_page' AND prf_value::int = 16
+ UPDATE %PREFIX%_categories SET cat_type = 'EVT' WHERE cat_type = 'DAT'
stop
diff --git a/src/Organizations/Entity/Organization.php b/src/Organizations/Entity/Organization.php
index dd92c5981..2f282b062 100644
--- a/src/Organizations/Entity/Organization.php
+++ b/src/Organizations/Entity/Organization.php
@@ -169,9 +169,9 @@ public function createBasicData(int $userId)
, (?, ?, \'LNK\', \'INTERN\', \'INS_INTERN\', false, false, 2, ?, ?)
, (?, ?, \'ANN\', \'COMMON\', \'SYS_COMMON\', true, false, 1, ?, ?)
, (?, ?, \'ANN\', \'IMPORTANT\', \'SYS_IMPORTANT\', false, false, 2, ?, ?)
- , (?, ?, \'DAT\', \'COMMON\', \'SYS_COMMON\', true, false, 1, ?, ?)
- , (?, ?, \'DAT\', \'TRAINING\', \'INS_TRAINING\', false, false, 2, ?, ?)
- , (?, ?, \'DAT\', \'COURSES\', \'INS_COURSES\', false, false, 3, ?, ?)';
+ , (?, ?, \'EVT\', \'COMMON\', \'SYS_COMMON\', true, false, 1, ?, ?)
+ , (?, ?, \'EVT\', \'TRAINING\', \'INS_TRAINING\', false, false, 2, ?, ?)
+ , (?, ?, \'EVT\', \'COURSES\', \'INS_COURSES\', false, false, 3, ?, ?)';
$queryParams = array(
$orgId, Uuid::uuid4(), $systemUserId, DATETIME_NOW,
$orgId, Uuid::uuid4(), $systemUserId, DATETIME_NOW,