Bug 31378: (follow-up) MySQL 8 doens't allow default for longtext
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2022 22:28:03 +0000 (19:28 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2022 22:28:03 +0000 (19:28 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/db_revs/220600081.pl
installer/data/mysql/kohastructure.sql

index 37563e4..aeef998 100755 (executable)
@@ -24,8 +24,8 @@ return {
                 `code` varchar(20) NOT NULL COMMENT 'Provider code',
                 `description` varchar(255) NOT NULL COMMENT 'Description for the provider',
                 `protocol` enum('OAuth', 'OIDC', 'LDAP', 'CAS') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Protocol provider speaks',
-                `config` longtext NOT NULL DEFAULT '{}' COMMENT 'Configuration of the provider in JSON format',
-                `mapping` longtext NOT NULL DEFAULT '{}' COMMENT 'Configuration to map provider data to Koha user',
+                `config` longtext NOT NULL COMMENT 'Configuration of the provider in JSON format',
+                `mapping` longtext NOT NULL COMMENT 'Configuration to map provider data to Koha user',
                 `matchpoint` enum('email','userid','cardnumber') NOT NULL COMMENT 'The patron attribute to be used as matchpoint',
                 `icon_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Provider icon URL',
                 PRIMARY KEY (`identity_provider_id`),
index c30cd7a..54ed708 100644 (file)
@@ -862,8 +862,8 @@ CREATE TABLE `identity_providers` (
   `code` varchar(20) NOT NULL COMMENT 'Provider code',
   `description` varchar(255) NOT NULL COMMENT 'Description for the provider',
   `protocol` enum('OAuth', 'OIDC', 'LDAP', 'CAS') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'Protocol provider speaks',
-  `config` longtext NOT NULL DEFAULT '{}' COMMENT 'Configuration of the provider in JSON format',
-  `mapping` longtext NOT NULL DEFAULT '{}' COMMENT 'Configuration to map provider data to Koha user',
+  `config` longtext NOT NULL COMMENT 'Configuration of the provider in JSON format',
+  `mapping` longtext NOT NULL COMMENT 'Configuration to map provider data to Koha user',
   `matchpoint` enum('email','userid','cardnumber') NOT NULL COMMENT 'The patron attribute to be used as matchpoint',
   `icon_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Provider icon URL',
   PRIMARY KEY (`identity_provider_id`),