Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2109

Migrating and Upgrading to Joomla! 5.x • Re: 5.03 to 5.1 database structure errors

$
0
0
These are the updates that should have been executed in J3. You could run them now using phpMyAdmin. Best take a database backup first (remember to replace #_ with your own database prefix):

3.7.0-2017-01-0.sql

Code:

-- Normalize ucm_content_table default values.ALTER TABLE `#__ucm_content` MODIFY `core_title` varchar(400) NOT NULL DEFAULT '';ALTER TABLE `#__ucm_content` MODIFY `core_alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin  NOT NULL DEFAULT '';ALTER TABLE `#__ucm_content` MODIFY `core_body` mediumtext;ALTER TABLE `#__ucm_content` MODIFY `core_checked_out_time` varchar(255) NOT NULL DEFAULT '0000-00-00 00:00:00';ALTER TABLE `#__ucm_content` MODIFY `core_params` text;ALTER TABLE `#__ucm_content` MODIFY `core_metadata` varchar(2048) NOT NULL DEFAULT '' COMMENT 'JSON encoded metadata properties.';ALTER TABLE `#__ucm_content` MODIFY `core_language` char(7) NOT NULL DEFAULT '';ALTER TABLE `#__ucm_content` MODIFY `core_publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';ALTER TABLE `#__ucm_content` MODIFY `core_publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';ALTER TABLE `#__ucm_content` MODIFY `core_content_item_id` int unsigned NOT NULL DEFAULT 0 COMMENT 'ID from the individual type table';ALTER TABLE `#__ucm_content` MODIFY `asset_id` int unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.';ALTER TABLE `#__ucm_content` MODIFY `core_images` text;ALTER TABLE `#__ucm_content` MODIFY `core_urls` text;ALTER TABLE `#__ucm_content` MODIFY `core_metakey` text;ALTER TABLE `#__ucm_content` MODIFY `core_metadesc` text;ALTER TABLE `#__ucm_content` MODIFY `core_xreference` varchar(50) NOT NULL DEFAULT '' COMMENT 'A reference to enable linkages to external data sets.';ALTER TABLE `#__ucm_content` MODIFY `core_type_id` int unsigned NOT NULL DEFAULT 0;
3.7.0-2017-02-17.sql

Code:

-- Normalize contact_details table default values.ALTER TABLE `#__contact_details` MODIFY `name` varchar(255) NOT NULL;ALTER TABLE `#__contact_details` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL;ALTER TABLE `#__contact_details` MODIFY `sortname1` varchar(255) NOT NULL DEFAULT '';ALTER TABLE `#__contact_details` MODIFY `sortname2` varchar(255) NOT NULL DEFAULT '';ALTER TABLE `#__contact_details` MODIFY `sortname3` varchar(255) NOT NULL DEFAULT '';ALTER TABLE `#__contact_details` MODIFY `language` varchar(7) NOT NULL;ALTER TABLE `#__contact_details` MODIFY `xreference` varchar(50) NOT NULL DEFAULT '' COMMENT 'A reference to enable linkages to external data sets.';
3.7.0-2017-03-03.sql

Code:

ALTER TABLE `#__languages` MODIFY `asset_id` int unsigned NOT NULL DEFAULT 0;ALTER TABLE `#__menu_types` MODIFY `asset_id` int unsigned NOT NULL DEFAULT 0;ALTER TABLE  `#__content` MODIFY `xreference` varchar(50) NOT NULL DEFAULT '';ALTER TABLE  `#__newsfeeds` MODIFY `xreference` varchar(50) NOT NULL DEFAULT '';
3.7.3-2017-06-03.sql

Code:

ALTER TABLE `#__menu` MODIFY `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'The time the menu item was checked out.';

Statistics: Posted by ceford — Sun Apr 21, 2024 6:11 pm



Viewing all articles
Browse latest Browse all 2109

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>