30
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-06-04 07:20:49 +00:00
weblinks/src/administrator/components/com_weblinks/sql/updates/mysql/3.5.1.sql
Yves Hoppe 00ddf5b2e6 Changing collation to utf8mb4 (#226)
* Changing collation to utf8mb4

* Increased Joomla version requirement
2016-07-27 20:37:46 +01:00

26 lines
732 B
SQL

# Conversion to utf8mb4
--
-- Step 1.1: Enlarge columns to avoid data loss on later conversion to utf8mb4
--
ALTER TABLE `#__weblinks` MODIFY `alias` varchar(400) NOT NULL DEFAULT '';
--
-- Step 1.2: Convert table to utf8mb4 chracter set with utf8mb4_unicode_ci collation
--
ALTER TABLE `#__weblinks` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
--
-- Step 1.3: Set collation to utf8mb4_bin for formerly utf8_bin collated columns
--
ALTER TABLE `#__weblinks` MODIFY `alias` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '';
--
-- Step 1.4: Set default character set and collation for all tables
--
ALTER TABLE `#__weblinks` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;