"Fossies" - the Fresh Open Source Software Archive

Member "administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-08-29.sql" (13 Sep 2021, 1278 Bytes) of package /linux/www/Joomla_4.0.3-Stable-Full_Package.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PL/SQL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 -- From 4.0.0-2018-08-01.sql
    2 ALTER TABLE `#__ucm_content` MODIFY `core_created_time` datetime NOT NULL;
    3 ALTER TABLE `#__ucm_content` MODIFY `core_modified_time` datetime NOT NULL;
    4 
    5 ALTER TABLE `#__ucm_content` MODIFY `core_publish_up` datetime NULL DEFAULT NULL;
    6 ALTER TABLE `#__ucm_content` MODIFY `core_publish_down` datetime NULL DEFAULT NULL;
    7 
    8 -- Only on MySQL: Update empty strings to null date before converting the column from varchar to datetime
    9 UPDATE `#__ucm_content` SET `core_checked_out_time` = '0000-00-00 00:00:00' WHERE `core_checked_out_time` = '';
   10 
   11 ALTER TABLE `#__ucm_content` MODIFY `core_checked_out_time` datetime NULL DEFAULT NULL;
   12 
   13 -- From 4.0.0-2018-08-29.sql
   14 ALTER TABLE `#__modules` MODIFY `publish_up` datetime NULL DEFAULT NULL;
   15 ALTER TABLE `#__modules` MODIFY `publish_down` datetime NULL DEFAULT NULL;
   16 ALTER TABLE `#__modules` MODIFY `checked_out_time` datetime NULL DEFAULT NULL;
   17 
   18 -- Use 0 instead of '0000-00-00 00:00:00' if you get 'Invalid default value for ...'
   19 UPDATE `#__modules` SET `publish_up` = NULL WHERE `publish_up` = '0000-00-00 00:00:00';
   20 UPDATE `#__modules` SET `publish_down` = NULL WHERE `publish_down` = '0000-00-00 00:00:00';
   21 UPDATE `#__modules` SET `checked_out_time` = NULL WHERE `checked_out_time` = '0000-00-00 00:00:00';