From bfcf3375a73fb5488d0d0d52400e69f20e241bec Mon Sep 17 00:00:00 2001 From: Mark Noble Date: Tue, 13 Aug 2024 08:23:06 -0600 Subject: [PATCH] Generate new default database prior to 24.08 release --- install/aspen.sql | 5816 ++++++++++++++++++++++----------------------- 1 file changed, 2908 insertions(+), 2908 deletions(-) diff --git a/install/aspen.sql b/install/aspen.sql index cb68d99a0e..bbbfaf464b 100644 --- a/install/aspen.sql +++ b/install/aspen.sql @@ -2,7 +2,7 @@ DROP TABLE IF EXISTS accelerated_reading_isbn; CREATE TABLE `accelerated_reading_isbn` ( `id` int(11) NOT NULL AUTO_INCREMENT, `arBookId` int(11) NOT NULL, - `isbn` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `isbn` varchar(13) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `isbn` (`isbn`), KEY `arBookId` (`arBookId`) @@ -10,22 +10,22 @@ CREATE TABLE `accelerated_reading_isbn` ( DROP TABLE IF EXISTS accelerated_reading_settings; CREATE TABLE `accelerated_reading_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `indexSeries` tinyint(1) DEFAULT '1', - `indexSubjects` tinyint(1) DEFAULT '1', - `arExportPath` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ftpServer` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ftpUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ftpPassword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lastFetched` int(11) NOT NULL DEFAULT '0', - `updateOn` tinyint(4) DEFAULT '0', - `updateFrequency` tinyint(4) DEFAULT '0', + `indexSeries` tinyint(1) DEFAULT 1, + `indexSubjects` tinyint(1) DEFAULT 1, + `arExportPath` varchar(255) NOT NULL, + `ftpServer` varchar(255) NOT NULL, + `ftpUser` varchar(255) NOT NULL, + `ftpPassword` varchar(255) NOT NULL, + `lastFetched` int(11) NOT NULL DEFAULT 0, + `updateOn` tinyint(4) DEFAULT 0, + `updateFrequency` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS accelerated_reading_subject; CREATE TABLE `accelerated_reading_subject` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `topic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `subTopic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `topic` varchar(255) NOT NULL, + `subTopic` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `topic` (`topic`,`subTopic`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -40,86 +40,86 @@ CREATE TABLE `accelerated_reading_subject_to_title` ( DROP TABLE IF EXISTS accelerated_reading_titles; CREATE TABLE `accelerated_reading_titles` ( `arBookId` int(11) NOT NULL, - `language` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `authorCombined` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `language` varchar(2) NOT NULL, + `title` varchar(255) NOT NULL, + `authorCombined` varchar(255) NOT NULL, `bookLevel` float DEFAULT NULL, `arPoints` int(11) DEFAULT NULL, `isFiction` tinyint(1) DEFAULT NULL, - `interestLevel` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `interestLevel` varchar(5) DEFAULT NULL, PRIMARY KEY (`arBookId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS account_profiles; CREATE TABLE `account_profiles` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'ils', - `driver` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `loginConfiguration` enum('barcode_pin','name_barcode','barcode_lastname') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `authenticationMethod` enum('ils','sip2','db','ldap','sso') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `vendorOpacUrl` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `patronApiUrl` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `recordSource` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL DEFAULT 'ils', + `driver` varchar(50) NOT NULL, + `loginConfiguration` enum('barcode_pin','name_barcode','barcode_lastname') NOT NULL, + `authenticationMethod` enum('ils','sip2','db','ldap','sso') DEFAULT NULL, + `vendorOpacUrl` varchar(100) NOT NULL, + `patronApiUrl` varchar(100) NOT NULL, + `recordSource` varchar(50) NOT NULL, `weight` int(11) NOT NULL, - `databaseHost` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `databaseName` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `databaseUser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `databasePassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sipHost` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sipPort` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sipUser` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sipPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `databasePort` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `databaseTimezone` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthClientId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthClientSecret` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ils` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'koha', - `apiVersion` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `staffUsername` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `staffPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `workstationId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `domain` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `libraryForRecordingPayments` tinyint(4) DEFAULT '1', - `ssoSettingId` tinyint(4) DEFAULT '-1', - `iiiLoginConfiguration` enum('','barcode_pin','name_barcode','name_barcode_pin') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `overrideCode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `carlXViewVersion` enum('','v','v2') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', + `databaseHost` varchar(100) DEFAULT NULL, + `databaseName` varchar(75) DEFAULT NULL, + `databaseUser` varchar(50) DEFAULT NULL, + `databasePassword` varchar(50) DEFAULT NULL, + `sipHost` varchar(100) DEFAULT NULL, + `sipPort` varchar(50) DEFAULT NULL, + `sipUser` varchar(50) DEFAULT NULL, + `sipPassword` varchar(50) DEFAULT NULL, + `databasePort` varchar(5) DEFAULT NULL, + `databaseTimezone` varchar(50) DEFAULT NULL, + `oAuthClientId` varchar(36) DEFAULT NULL, + `oAuthClientSecret` varchar(50) DEFAULT NULL, + `ils` varchar(20) DEFAULT 'koha', + `apiVersion` varchar(10) DEFAULT '', + `staffUsername` varchar(100) DEFAULT NULL, + `staffPassword` varchar(50) DEFAULT NULL, + `workstationId` varchar(10) DEFAULT '', + `domain` varchar(100) DEFAULT '', + `libraryForRecordingPayments` tinyint(4) DEFAULT 1, + `ssoSettingId` tinyint(4) DEFAULT -1, + `iiiLoginConfiguration` enum('','barcode_pin','name_barcode','name_barcode_pin') NOT NULL DEFAULT '', + `overrideCode` varchar(50) DEFAULT '', + `carlXViewVersion` enum('','v','v2') NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aci_speedpay_settings; CREATE TABLE `aci_speedpay_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sandboxMode` tinyint(1) DEFAULT '0', - `clientId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientSecret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiAuthKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `billerId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `billerAccountId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sdkClientId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sdkClientSecret` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sdkApiAuthKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, + `sandboxMode` tinyint(1) DEFAULT 0, + `clientId` varchar(100) DEFAULT NULL, + `clientSecret` varchar(100) DEFAULT NULL, + `apiAuthKey` varchar(100) DEFAULT NULL, + `billerId` varchar(100) DEFAULT NULL, + `billerAccountId` varchar(100) DEFAULT NULL, + `sdkClientId` varchar(100) DEFAULT NULL, + `sdkClientSecret` varchar(100) DEFAULT NULL, + `sdkApiAuthKey` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS administration_field_lock; CREATE TABLE `administration_field_lock` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `toolName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `field` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `module` varchar(30) NOT NULL, + `toolName` varchar(100) NOT NULL, + `field` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS amazon_ses_settings; CREATE TABLE `amazon_ses_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `fromAddress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `replyToAddress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accessKeyId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accessKeySecret` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `singleMailConfigSet` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bulkMailConfigSet` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `region` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `fromAddress` varchar(255) DEFAULT NULL, + `replyToAddress` varchar(255) DEFAULT NULL, + `accessKeyId` varchar(50) DEFAULT NULL, + `accessKeySecret` varchar(600) DEFAULT NULL, + `singleMailConfigSet` varchar(50) DEFAULT NULL, + `bulkMailConfigSet` varchar(50) DEFAULT NULL, + `region` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS api_usage; @@ -127,29 +127,29 @@ CREATE TABLE `api_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `module` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `method` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `numCalls` int(11) DEFAULT '0', + `instance` varchar(100) NOT NULL, + `module` varchar(30) NOT NULL, + `method` varchar(75) NOT NULL, + `numCalls` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uniqueness` (`year`,`month`,`instance`,`module`,`method`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS archive_requests; CREATE TABLE `archive_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `address2` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `city` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `state` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `zip` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `country` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `alternatePhone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `purpose` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `pid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) NOT NULL, + `address` varchar(200) DEFAULT NULL, + `address2` varchar(200) DEFAULT NULL, + `city` varchar(200) DEFAULT NULL, + `state` varchar(200) DEFAULT NULL, + `zip` varchar(12) DEFAULT NULL, + `country` varchar(50) DEFAULT NULL, + `phone` varchar(20) DEFAULT NULL, + `alternatePhone` varchar(20) DEFAULT NULL, + `email` varchar(100) DEFAULT NULL, + `format` longtext DEFAULT NULL, + `purpose` longtext DEFAULT NULL, + `pid` varchar(50) DEFAULT NULL, `dateRequested` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `pid` (`pid`), @@ -158,91 +158,91 @@ CREATE TABLE `archive_requests` ( DROP TABLE IF EXISTS aspen_lida_branded_settings; CREATE TABLE `aspen_lida_branded_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `slugName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `logoLogin` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `privacyPolicy` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `logoSplash` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `logoAppIcon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showFavicons` int(11) DEFAULT '0', - `logoNotification` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `appName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `privacyPolicyContactAddress` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `privacyPolicyContactPhone` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `privacyPolicyContactEmail` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `autoPickUserHomeLocation` tinyint(4) NOT NULL DEFAULT '1', + `slugName` varchar(50) DEFAULT NULL, + `logoLogin` varchar(100) DEFAULT NULL, + `privacyPolicy` varchar(255) DEFAULT NULL, + `logoSplash` varchar(100) DEFAULT NULL, + `logoAppIcon` varchar(100) DEFAULT NULL, + `showFavicons` int(11) DEFAULT 0, + `logoNotification` varchar(100) DEFAULT NULL, + `appName` varchar(100) DEFAULT NULL, + `privacyPolicyContactAddress` longtext DEFAULT NULL, + `privacyPolicyContactPhone` varchar(25) DEFAULT NULL, + `privacyPolicyContactEmail` varchar(250) DEFAULT NULL, + `autoPickUserHomeLocation` tinyint(4) NOT NULL DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `slugName` (`slugName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_build; CREATE TABLE `aspen_lida_build` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `buildId` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `appId` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `name` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `version` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `buildVersion` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `channel` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default', - `updateId` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0', - `patch` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0', - `updateCreated` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `gitCommitHash` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `buildMessage` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `error` tinyint(1) DEFAULT '0', - `errorMessage` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `createdAt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `completedAt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `updatedAt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isSupported` tinyint(1) DEFAULT '1', - `isEASUpdate` tinyint(1) DEFAULT '0', - `platform` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `artifact` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isSubmitted` tinyint(1) DEFAULT '0', - `storeUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `storeIdentifier` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `buildId` varchar(72) NOT NULL, + `status` varchar(11) NOT NULL, + `appId` varchar(72) NOT NULL, + `name` varchar(72) NOT NULL, + `version` varchar(72) NOT NULL, + `buildVersion` varchar(72) NOT NULL, + `channel` varchar(72) NOT NULL DEFAULT 'default', + `updateId` varchar(72) NOT NULL DEFAULT '0', + `patch` varchar(5) DEFAULT '0', + `updateCreated` varchar(255) DEFAULT NULL, + `gitCommitHash` varchar(72) DEFAULT NULL, + `buildMessage` varchar(72) DEFAULT NULL, + `error` tinyint(1) DEFAULT 0, + `errorMessage` varchar(255) DEFAULT NULL, + `createdAt` varchar(255) DEFAULT NULL, + `completedAt` varchar(255) DEFAULT NULL, + `updatedAt` varchar(255) DEFAULT NULL, + `isSupported` tinyint(1) DEFAULT 1, + `isEASUpdate` tinyint(1) DEFAULT 0, + `platform` varchar(25) NOT NULL, + `artifact` varchar(255) DEFAULT NULL, + `isSubmitted` tinyint(1) DEFAULT 0, + `storeUrl` varchar(255) DEFAULT NULL, + `storeIdentifier` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `buildId` (`buildId`,`updateId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_general_settings; CREATE TABLE `aspen_lida_general_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `autoRotateCard` tinyint(1) DEFAULT '0', + `name` varchar(50) NOT NULL, + `autoRotateCard` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_location_settings; CREATE TABLE `aspen_lida_location_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `enableAccess` tinyint(1) DEFAULT '0', - `releaseChannel` tinyint(1) DEFAULT '0', + `name` varchar(50) DEFAULT NULL, + `enableAccess` tinyint(1) DEFAULT 0, + `releaseChannel` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_notification_setting; CREATE TABLE `aspen_lida_notification_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `sendTo` tinyint(1) DEFAULT '0', - `notifySavedSearch` tinyint(1) DEFAULT '0', - `notifyCustom` tinyint(1) DEFAULT '0', - `notifyAccount` tinyint(1) DEFAULT '0', + `name` varchar(50) NOT NULL, + `sendTo` tinyint(1) DEFAULT 0, + `notifySavedSearch` tinyint(1) DEFAULT 0, + `notifyCustom` tinyint(1) DEFAULT 0, + `notifyAccount` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_notifications; CREATE TABLE `aspen_lida_notifications` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `title` varchar(75) NOT NULL, + `message` varchar(255) NOT NULL, `sendOn` int(11) DEFAULT NULL, `expiresOn` int(11) DEFAULT NULL, - `ctaUrl` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `ctaLabel` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `sent` int(11) DEFAULT '0', - `linkType` tinyint(1) DEFAULT '0', - `deepLinkPath` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `deepLinkId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ctaUrl` varchar(500) DEFAULT NULL, + `ctaLabel` varchar(25) DEFAULT NULL, + `sent` int(11) DEFAULT 0, + `linkType` tinyint(1) DEFAULT 0, + `deepLinkPath` varchar(75) DEFAULT NULL, + `deepLinkId` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; DROP TABLE IF EXISTS aspen_lida_notifications_library; @@ -269,40 +269,40 @@ CREATE TABLE `aspen_lida_notifications_ptype` ( DROP TABLE IF EXISTS aspen_lida_quick_search_setting; CREATE TABLE `aspen_lida_quick_search_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_quick_searches; CREATE TABLE `aspen_lida_quick_searches` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `libraryId` int(11) DEFAULT '-1', - `weight` int(11) NOT NULL DEFAULT '0', - `searchTerm` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `label` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `quickSearchSettingId` int(11) DEFAULT '-1', + `libraryId` int(11) DEFAULT -1, + `weight` int(11) NOT NULL DEFAULT 0, + `searchTerm` varchar(500) NOT NULL, + `label` varchar(50) NOT NULL, + `quickSearchSettingId` int(11) DEFAULT -1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_lida_self_check_barcode; CREATE TABLE `aspen_lida_self_check_barcode` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `selfCheckSettingsId` int(11) NOT NULL DEFAULT '-1', - `barcodeStyle` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `selfCheckSettingsId` int(11) NOT NULL DEFAULT -1, + `barcodeStyle` varchar(75) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS aspen_lida_self_check_settings; CREATE TABLE `aspen_lida_self_check_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `isEnabled` tinyint(1) DEFAULT '0', - `checkoutLocation` tinyint(1) DEFAULT '0', + `name` varchar(50) DEFAULT NULL, + `isEnabled` tinyint(1) DEFAULT 0, + `checkoutLocation` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS aspen_release; CREATE TABLE `aspen_release` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(10) NOT NULL, `releaseDate` date DEFAULT NULL, `releaseDateTest` date DEFAULT NULL, PRIMARY KEY (`id`), @@ -312,9 +312,9 @@ DROP TABLE IF EXISTS aspen_site_checks; CREATE TABLE `aspen_site_checks` ( `id` int(11) NOT NULL AUTO_INCREMENT, `siteId` int(11) NOT NULL, - `checkName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `checkName` varchar(50) DEFAULT NULL, `currentStatus` tinyint(1) DEFAULT NULL, - `currentNote` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `currentNote` varchar(500) DEFAULT NULL, `lastOkTime` int(11) DEFAULT NULL, `lastWarningTime` int(11) DEFAULT NULL, `lastErrorTime` int(11) DEFAULT NULL, @@ -344,15 +344,15 @@ CREATE TABLE `aspen_site_memory_usage` ( DROP TABLE IF EXISTS aspen_site_scheduled_update; CREATE TABLE `aspen_site_scheduled_update` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `dateScheduled` int(11) DEFAULT '0', - `updateToVersion` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `updateType` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dateRun` int(11) DEFAULT '0', - `status` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'pending', - `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `dateScheduled` int(11) DEFAULT 0, + `updateToVersion` varchar(32) DEFAULT NULL, + `updateType` varchar(10) DEFAULT NULL, + `dateRun` int(11) DEFAULT 0, + `status` varchar(10) DEFAULT 'pending', + `notes` text DEFAULT NULL, `siteId` int(11) DEFAULT NULL, `greenhouseId` int(11) DEFAULT NULL, - `remoteUpdate` tinyint(4) DEFAULT '0', + `remoteUpdate` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS aspen_site_stats; @@ -384,35 +384,35 @@ CREATE TABLE `aspen_site_wait_time` ( DROP TABLE IF EXISTS aspen_sites; CREATE TABLE `aspen_sites` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `siteType` int(11) DEFAULT '0', - `libraryType` int(11) DEFAULT '0', - `libraryServes` int(11) DEFAULT '0', - `implementationStatus` int(11) DEFAULT '0', - `hosting` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `operatingSystem` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `internalServerName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `appAccess` tinyint(1) DEFAULT '0', - `version` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sendErrorNotificationsTo` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, + `baseUrl` varchar(255) DEFAULT NULL, + `siteType` int(11) DEFAULT 0, + `libraryType` int(11) DEFAULT 0, + `libraryServes` int(11) DEFAULT 0, + `implementationStatus` int(11) DEFAULT 0, + `hosting` varchar(75) DEFAULT NULL, + `operatingSystem` varchar(75) DEFAULT NULL, + `notes` text DEFAULT NULL, + `internalServerName` varchar(50) DEFAULT NULL, + `appAccess` tinyint(1) DEFAULT 0, + `version` varchar(25) DEFAULT NULL, + `sendErrorNotificationsTo` varchar(250) DEFAULT NULL, `lastNotificationTime` int(11) DEFAULT NULL, `ils` int(11) DEFAULT NULL, `contractSigningDate` date DEFAULT NULL, `goLiveDate` date DEFAULT NULL, - `contactFrequency` tinyint(4) DEFAULT '3', + `contactFrequency` tinyint(4) DEFAULT 3, `lastContacted` date DEFAULT NULL, `nextMeetingDate` date DEFAULT NULL, - `nextMeetingPerson` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `activeTicketFeed` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `timezone` tinyint(1) DEFAULT '0', + `nextMeetingPerson` varchar(50) DEFAULT NULL, + `activeTicketFeed` varchar(1000) DEFAULT '', + `timezone` tinyint(1) DEFAULT 0, `lastOfflineTime` int(11) DEFAULT NULL, - `lastOfflineNote` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `lastOfflineNote` varchar(255) DEFAULT NULL, `lastOnlineTime` int(11) DEFAULT NULL, - `isOnline` tinyint(1) DEFAULT '1', - `monitored` tinyint(1) DEFAULT '1', - `optOutBatchUpdates` tinyint(1) DEFAULT '0', + `isOnline` tinyint(1) DEFAULT 1, + `monitored` tinyint(1) DEFAULT 1, + `optOutBatchUpdates` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), UNIQUE KEY `baseUrl` (`baseUrl`) @@ -422,63 +422,63 @@ CREATE TABLE `aspen_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `pageViews` int(11) DEFAULT '0', - `pageViewsByBots` int(11) DEFAULT '0', - `pageViewsByAuthenticatedUsers` int(11) DEFAULT '0', - `pagesWithErrors` int(11) DEFAULT '0', - `ajaxRequests` int(11) DEFAULT '0', - `coverViews` int(11) DEFAULT '0', - `genealogySearches` int(11) DEFAULT '0', - `groupedWorkSearches` int(11) DEFAULT '0', - `openArchivesSearches` int(11) DEFAULT '0', - `userListSearches` int(11) DEFAULT '0', - `websiteSearches` int(11) DEFAULT '0', - `eventsSearches` int(11) DEFAULT '0', - `blockedRequests` int(11) DEFAULT '0', - `blockedApiRequests` int(11) DEFAULT '0', - `ebscoEdsSearches` int(11) DEFAULT '0', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sessionsStarted` int(11) DEFAULT '0', - `timedOutSearches` int(11) DEFAULT '0', - `timedOutSearchesWithHighLoad` int(11) DEFAULT '0', - `searchesWithErrors` int(11) DEFAULT '0', - `ebscohostSearches` int(11) DEFAULT '0', - `emailsSent` int(11) DEFAULT '0', - `emailsFailed` int(11) DEFAULT '0', - `summonSearches` int(11) DEFAULT '0', + `pageViews` int(11) DEFAULT 0, + `pageViewsByBots` int(11) DEFAULT 0, + `pageViewsByAuthenticatedUsers` int(11) DEFAULT 0, + `pagesWithErrors` int(11) DEFAULT 0, + `ajaxRequests` int(11) DEFAULT 0, + `coverViews` int(11) DEFAULT 0, + `genealogySearches` int(11) DEFAULT 0, + `groupedWorkSearches` int(11) DEFAULT 0, + `openArchivesSearches` int(11) DEFAULT 0, + `userListSearches` int(11) DEFAULT 0, + `websiteSearches` int(11) DEFAULT 0, + `eventsSearches` int(11) DEFAULT 0, + `blockedRequests` int(11) DEFAULT 0, + `blockedApiRequests` int(11) DEFAULT 0, + `ebscoEdsSearches` int(11) DEFAULT 0, + `instance` varchar(100) DEFAULT NULL, + `sessionsStarted` int(11) DEFAULT 0, + `timedOutSearches` int(11) DEFAULT 0, + `timedOutSearchesWithHighLoad` int(11) DEFAULT 0, + `searchesWithErrors` int(11) DEFAULT 0, + `ebscohostSearches` int(11) DEFAULT 0, + `emailsSent` int(11) DEFAULT 0, + `emailsFailed` int(11) DEFAULT 0, + `summonSearches` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`year`,`month`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS assabet_events; CREATE TABLE `assabet_events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `settingsId` int(11) NOT NULL, - `externalId` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, + `externalId` varchar(150) NOT NULL, + `title` varchar(255) NOT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` mediumtext COLLATE utf8mb4_general_ci, - `deleted` tinyint(4) DEFAULT '0', + `rawResponse` mediumtext DEFAULT NULL, + `deleted` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `settingsId` (`settingsId`,`externalId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS assabet_settings; CREATE TABLE `assabet_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL, - `baseUrl` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, - `eventsInLists` tinyint(1) DEFAULT '1', - `bypassAspenEventPages` tinyint(1) DEFAULT '0', - `registrationModalBody` mediumtext COLLATE utf8mb4_general_ci, - `registrationModalBodyApp` varchar(500) COLLATE utf8mb4_general_ci DEFAULT NULL, - `numberOfDaysToIndex` int(11) DEFAULT '365', + `name` varchar(100) NOT NULL, + `baseUrl` varchar(255) NOT NULL, + `eventsInLists` tinyint(1) DEFAULT 1, + `bypassAspenEventPages` tinyint(1) DEFAULT 0, + `registrationModalBody` mediumtext DEFAULT NULL, + `registrationModalBodyApp` varchar(500) DEFAULT NULL, + `numberOfDaysToIndex` int(11) DEFAULT 365, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS author_authorities; CREATE TABLE `author_authorities` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `originalName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `authoritativeName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `originalName` varchar(255) NOT NULL, + `authoritativeName` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `originalName` (`originalName`), KEY `authoritativeName` (`authoritativeName`) @@ -486,9 +486,9 @@ CREATE TABLE `author_authorities` ( DROP TABLE IF EXISTS author_authority; CREATE TABLE `author_authority` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `author` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `author` varchar(512) NOT NULL, `dateAdded` int(11) DEFAULT NULL, - `normalized` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `normalized` varchar(512) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `author` (`author`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -496,8 +496,8 @@ DROP TABLE IF EXISTS author_authority_alternative; CREATE TABLE `author_authority_alternative` ( `id` int(11) NOT NULL AUTO_INCREMENT, `authorId` int(11) DEFAULT NULL, - `alternativeAuthor` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `normalized` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `alternativeAuthor` varchar(512) NOT NULL, + `normalized` varchar(512) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `alternativeAuthor` (`alternativeAuthor`), KEY `authorId` (`authorId`), @@ -506,9 +506,9 @@ CREATE TABLE `author_authority_alternative` ( DROP TABLE IF EXISTS author_enrichment; CREATE TABLE `author_enrichment` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `authorName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `authorName` varchar(255) NOT NULL, `hideWikipedia` tinyint(1) DEFAULT NULL, - `wikipediaUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `wikipediaUrl` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `authorName` (`authorName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -518,29 +518,29 @@ CREATE TABLE `axis360_export_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numAvailabilityChanges` int(11) DEFAULT '0', - `numMetadataChanges` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numAvailabilityChanges` int(11) DEFAULT 0, + `numMetadataChanges` int(11) DEFAULT 0, `settingId` int(11) DEFAULT NULL, `numSkipped` int(11) DEFAULT NULL, - `numInvalidRecords` int(11) DEFAULT '0', + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS axis360_record_usage; CREATE TABLE `axis360_record_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `axis360Id` int(11) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `timesHeld` int(11) NOT NULL DEFAULT '0', - `timesCheckedOut` int(11) NOT NULL DEFAULT '0', + `timesHeld` int(11) NOT NULL DEFAULT 0, + `timesCheckedOut` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`axis360Id`,`year`,`month`), KEY `instance_2` (`instance`,`year`,`month`), @@ -549,58 +549,58 @@ CREATE TABLE `axis360_record_usage` ( DROP TABLE IF EXISTS axis360_scopes; CREATE TABLE `axis360_scopes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, `settingId` int(11) DEFAULT NULL, - `includeAdult` tinyint(4) DEFAULT '1', - `includeTeen` tinyint(4) DEFAULT '1', - `includeKids` tinyint(4) DEFAULT '1', + `includeAdult` tinyint(4) DEFAULT 1, + `includeTeen` tinyint(4) DEFAULT 1, + `includeKids` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS axis360_settings; CREATE TABLE `axis360_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `apiUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `userInterfaceUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `vendorUsername` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `vendorPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `libraryPrefix` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', + `apiUrl` varchar(255) DEFAULT NULL, + `userInterfaceUrl` varchar(255) DEFAULT NULL, + `vendorUsername` varchar(50) DEFAULT NULL, + `vendorPassword` varchar(50) DEFAULT NULL, + `libraryPrefix` varchar(50) DEFAULT NULL, + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS axis360_stats; CREATE TABLE `axis360_stats` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `numCheckouts` int(11) NOT NULL DEFAULT '0', - `numRenewals` int(11) NOT NULL DEFAULT '0', - `numEarlyReturns` int(11) NOT NULL DEFAULT '0', - `numHoldsPlaced` int(11) NOT NULL DEFAULT '0', - `numHoldsCancelled` int(11) NOT NULL DEFAULT '0', - `numHoldsFrozen` int(11) NOT NULL DEFAULT '0', - `numHoldsThawed` int(11) NOT NULL DEFAULT '0', - `numApiErrors` int(11) NOT NULL DEFAULT '0', - `numConnectionFailures` int(11) NOT NULL DEFAULT '0', + `numCheckouts` int(11) NOT NULL DEFAULT 0, + `numRenewals` int(11) NOT NULL DEFAULT 0, + `numEarlyReturns` int(11) NOT NULL DEFAULT 0, + `numHoldsPlaced` int(11) NOT NULL DEFAULT 0, + `numHoldsCancelled` int(11) NOT NULL DEFAULT 0, + `numHoldsFrozen` int(11) NOT NULL DEFAULT 0, + `numHoldsThawed` int(11) NOT NULL DEFAULT 0, + `numApiErrors` int(11) NOT NULL DEFAULT 0, + `numConnectionFailures` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS axis360_title; CREATE TABLE `axis360_title` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `axis360Id` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `isbn` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `subtitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryAuthor` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `formatType` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `axis360Id` varchar(25) NOT NULL, + `isbn` varchar(13) NOT NULL, + `title` varchar(255) DEFAULT NULL, + `subtitle` varchar(255) DEFAULT NULL, + `primaryAuthor` varchar(255) DEFAULT NULL, + `formatType` varchar(20) DEFAULT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, `lastChange` int(11) NOT NULL, - `deleted` tinyint(4) NOT NULL DEFAULT '0', + `deleted` tinyint(4) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `axis360Id` (`axis360Id`), KEY `lastChange` (`lastChange`) @@ -609,14 +609,14 @@ DROP TABLE IF EXISTS axis360_title_availability; CREATE TABLE `axis360_title_availability` ( `id` int(11) NOT NULL AUTO_INCREMENT, `titleId` int(11) DEFAULT NULL, - `libraryPrefix` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `libraryPrefix` varchar(50) DEFAULT NULL, `ownedQty` int(11) DEFAULT NULL, `totalHolds` int(11) DEFAULT NULL, `settingId` int(11) DEFAULT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `lastChange` int(11) NOT NULL, - `available` tinyint(1) DEFAULT '1', + `available` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `titleId` (`titleId`,`settingId`), KEY `libraryPrefix` (`libraryPrefix`) @@ -625,7 +625,7 @@ CREATE TABLE `axis360_title_availability` ( /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -634,10 +634,10 @@ CREATE TABLE `axis360_title_availability` ( /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `bad_words`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!50503 SET character_set_client = utf8mb4 */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `bad_words` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'A unique Id for bad_word', - `word` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The bad word that will be replaced', + `word` varchar(50) NOT NULL COMMENT 'The bad word that will be replaced', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1651 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Stores information about bad_words that should be removed fr'; /*!40101 SET character_set_client = @saved_cs_client */; @@ -660,18 +660,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS bookcover_info; CREATE TABLE `bookcover_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `recordType` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `recordId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `recordType` varchar(20) DEFAULT NULL, + `recordId` varchar(50) DEFAULT NULL, `firstLoaded` int(11) NOT NULL, `lastUsed` int(11) NOT NULL, - `imageSource` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `imageSource` varchar(100) DEFAULT NULL, `sourceWidth` int(11) DEFAULT NULL, `sourceHeight` int(11) DEFAULT NULL, - `thumbnailLoaded` tinyint(1) DEFAULT '0', - `mediumLoaded` tinyint(1) DEFAULT '0', - `largeLoaded` tinyint(1) DEFAULT '0', - `uploadedImage` tinyint(1) DEFAULT '0', - `disallowThirdPartyCover` tinyint(1) DEFAULT '0', + `thumbnailLoaded` tinyint(1) DEFAULT 0, + `mediumLoaded` tinyint(1) DEFAULT 0, + `largeLoaded` tinyint(1) DEFAULT 0, + `uploadedImage` tinyint(1) DEFAULT 0, + `disallowThirdPartyCover` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `record_info` (`recordType`,`recordId`), KEY `lastUsed` (`lastUsed`), @@ -680,30 +680,30 @@ CREATE TABLE `bookcover_info` ( DROP TABLE IF EXISTS browse_category; CREATE TABLE `browse_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `textId` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '-1', + `textId` varchar(60) NOT NULL DEFAULT '-1', `userId` int(11) DEFAULT NULL, - `sharing` enum('private','location','library','everyone') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'everyone', - `label` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `defaultFilter` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating','holds','publication_year_desc','publication_year_asc') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'relevance', - `searchTerm` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `numTimesShown` int(11) NOT NULL DEFAULT '0', - `numTitlesClickedOn` mediumint(9) NOT NULL DEFAULT '0', + `sharing` enum('private','location','library','everyone') DEFAULT 'everyone', + `label` varchar(50) NOT NULL, + `description` longtext DEFAULT NULL, + `defaultFilter` mediumtext DEFAULT NULL, + `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating','holds','publication_year_desc','publication_year_asc') DEFAULT 'relevance', + `searchTerm` varchar(500) NOT NULL DEFAULT '', + `numTimesShown` int(11) NOT NULL DEFAULT 0, + `numTitlesClickedOn` mediumint(9) NOT NULL DEFAULT 0, `sourceListId` mediumint(9) DEFAULT NULL, - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `libraryId` int(11) DEFAULT '-1', - `startDate` int(11) DEFAULT '0', - `endDate` int(11) DEFAULT '0', - `numTimesDismissed` mediumint(9) NOT NULL DEFAULT '0', - `sourceCourseReserveId` mediumint(9) DEFAULT '-1', + `source` varchar(50) NOT NULL, + `libraryId` int(11) DEFAULT -1, + `startDate` int(11) DEFAULT 0, + `endDate` int(11) DEFAULT 0, + `numTimesDismissed` mediumint(9) NOT NULL DEFAULT 0, + `sourceCourseReserveId` mediumint(9) DEFAULT -1, PRIMARY KEY (`id`), UNIQUE KEY `textId` (`textId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS browse_category_dismissal; CREATE TABLE `browse_category_dismissal` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `browseCategoryId` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `browseCategoryId` varchar(60) DEFAULT NULL, `userId` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userBrowseCategory` (`userId`,`browseCategoryId`) @@ -711,9 +711,9 @@ CREATE TABLE `browse_category_dismissal` ( DROP TABLE IF EXISTS browse_category_group; CREATE TABLE `browse_category_group` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `defaultBrowseMode` tinyint(1) DEFAULT '0', - `browseCategoryRatingsMode` tinyint(1) DEFAULT '1', + `name` varchar(50) NOT NULL, + `defaultBrowseMode` tinyint(1) DEFAULT 0, + `browseCategoryRatingsMode` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -722,7 +722,7 @@ CREATE TABLE `browse_category_group_entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `browseCategoryGroupId` int(11) NOT NULL, `browseCategoryId` int(11) NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', + `weight` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `browseCategoryGroupId` (`browseCategoryGroupId`,`browseCategoryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -739,14 +739,14 @@ CREATE TABLE `browse_category_subcategories` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `browseCategoryId` int(11) NOT NULL, `subCategoryId` int(11) NOT NULL, - `weight` smallint(5) unsigned NOT NULL DEFAULT '0', + `weight` smallint(5) unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `subCategoryId` (`subCategoryId`,`browseCategoryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS cached_values; CREATE TABLE `cached_values` ( `cacheKey` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, - `value` varchar(16000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `value` varchar(16000) DEFAULT NULL, `expirationTime` int(11) DEFAULT NULL, UNIQUE KEY `cacheKey` (`cacheKey`), KEY `expirationTime` (`expirationTime`) @@ -754,11 +754,11 @@ CREATE TABLE `cached_values` ( DROP TABLE IF EXISTS claim_authorship_requests; CREATE TABLE `claim_authorship_requests` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `email` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `pid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) NOT NULL, + `phone` varchar(20) DEFAULT NULL, + `email` varchar(100) DEFAULT NULL, + `message` longtext DEFAULT NULL, + `pid` varchar(50) DEFAULT NULL, `dateRequested` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `pid` (`pid`), @@ -767,19 +767,19 @@ CREATE TABLE `claim_authorship_requests` ( DROP TABLE IF EXISTS cloud_library_availability; CREATE TABLE `cloud_library_availability` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `cloudLibraryId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `totalCopies` smallint(6) NOT NULL DEFAULT '0', - `sharedCopies` smallint(6) NOT NULL DEFAULT '0', - `totalLoanCopies` smallint(6) NOT NULL DEFAULT '0', - `totalHoldCopies` smallint(6) NOT NULL DEFAULT '0', - `sharedLoanCopies` smallint(6) NOT NULL DEFAULT '0', + `cloudLibraryId` varchar(25) NOT NULL, + `totalCopies` smallint(6) NOT NULL DEFAULT 0, + `sharedCopies` smallint(6) NOT NULL DEFAULT 0, + `totalLoanCopies` smallint(6) NOT NULL DEFAULT 0, + `totalHoldCopies` smallint(6) NOT NULL DEFAULT 0, + `sharedLoanCopies` smallint(6) NOT NULL DEFAULT 0, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `lastChange` int(11) NOT NULL, `settingId` int(11) DEFAULT NULL, - `availabilityType` smallint(6) NOT NULL DEFAULT '1', + `availabilityType` smallint(6) NOT NULL DEFAULT 1, `typeRawChecksum` bigint(20) DEFAULT NULL, - `typeRawResponse` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `typeRawResponse` mediumtext DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `cloudLibraryId` (`cloudLibraryId`,`settingId`), KEY `lastChange` (`lastChange`) @@ -790,16 +790,16 @@ CREATE TABLE `cloud_library_export_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numAvailabilityChanges` int(11) DEFAULT '0', - `numMetadataChanges` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numAvailabilityChanges` int(11) DEFAULT 0, + `numMetadataChanges` int(11) DEFAULT 0, `settingId` int(11) DEFAULT NULL, - `numInvalidRecords` int(11) DEFAULT '0', + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -811,7 +811,7 @@ CREATE TABLE `cloud_library_record_usage` ( `month` int(11) NOT NULL, `timesHeld` int(11) NOT NULL, `timesCheckedOut` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`cloudLibraryId`,`year`,`month`), UNIQUE KEY `instance_2` (`instance`,`cloudLibraryId`,`year`,`month`), @@ -820,42 +820,42 @@ CREATE TABLE `cloud_library_record_usage` ( DROP TABLE IF EXISTS cloud_library_scopes; CREATE TABLE `cloud_library_scopes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `includeEBooks` tinyint(4) DEFAULT '1', - `includeEAudiobook` tinyint(4) DEFAULT '1', + `name` varchar(50) NOT NULL, + `includeEBooks` tinyint(4) DEFAULT 1, + `includeEAudiobook` tinyint(4) DEFAULT 1, `settingId` int(11) DEFAULT NULL, - `includeAdult` tinyint(4) DEFAULT '1', - `includeTeen` tinyint(4) DEFAULT '1', - `includeKids` tinyint(4) DEFAULT '1', + `includeAdult` tinyint(4) DEFAULT 1, + `includeTeen` tinyint(4) DEFAULT 1, + `includeKids` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS cloud_library_settings; CREATE TABLE `cloud_library_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `apiUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `userInterfaceUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `libraryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accountId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accountKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', + `apiUrl` varchar(255) DEFAULT NULL, + `userInterfaceUrl` varchar(255) DEFAULT NULL, + `libraryId` varchar(50) DEFAULT NULL, + `accountId` varchar(50) DEFAULT NULL, + `accountKey` varchar(50) DEFAULT NULL, + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS cloud_library_title; CREATE TABLE `cloud_library_title` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `cloudLibraryId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `subTitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `author` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `targetAudience` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'ADULT', + `cloudLibraryId` varchar(25) NOT NULL, + `title` varchar(255) DEFAULT NULL, + `subTitle` varchar(255) DEFAULT NULL, + `author` varchar(255) DEFAULT NULL, + `format` varchar(50) DEFAULT NULL, + `targetAudience` varchar(25) DEFAULT 'ADULT', `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, `lastChange` int(11) NOT NULL, - `deleted` tinyint(4) NOT NULL DEFAULT '0', + `deleted` tinyint(4) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `cloudLibraryId` (`cloudLibraryId`), KEY `lastChange` (`lastChange`) @@ -863,82 +863,82 @@ CREATE TABLE `cloud_library_title` ( DROP TABLE IF EXISTS coce_settings; CREATE TABLE `coce_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `coceServerUrl` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `coceServerUrl` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS collection_spotlight_lists; CREATE TABLE `collection_spotlight_lists` ( `id` int(11) NOT NULL AUTO_INCREMENT, `collectionSpotlightId` int(11) NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `displayFor` enum('all','loggedIn','notLoggedIn') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'all', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `source` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fullListLink` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `defaultFilter` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating','holds','publication_year_desc','publication_year_asc') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'relevance', - `searchTerm` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', + `weight` int(11) NOT NULL DEFAULT 0, + `displayFor` enum('all','loggedIn','notLoggedIn') NOT NULL DEFAULT 'all', + `name` varchar(50) NOT NULL, + `source` varchar(500) NOT NULL, + `fullListLink` varchar(500) DEFAULT '', + `defaultFilter` mediumtext DEFAULT NULL, + `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating','holds','publication_year_desc','publication_year_asc') DEFAULT 'relevance', + `searchTerm` varchar(500) NOT NULL DEFAULT '', `sourceListId` mediumint(9) DEFAULT NULL, - `sourceCourseReserveId` mediumint(9) DEFAULT '-1', + `sourceCourseReserveId` mediumint(9) DEFAULT -1, PRIMARY KEY (`id`), KEY `ListWidgetId` (`collectionSpotlightId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='The lists that should appear within the widget'; DROP TABLE IF EXISTS collection_spotlights; CREATE TABLE `collection_spotlights` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `description` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `showTitleDescriptions` tinyint(4) DEFAULT '1', - `onSelectCallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `customCss` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `listDisplayType` enum('tabs','dropdown') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'tabs', - `autoRotate` tinyint(4) NOT NULL DEFAULT '0', - `showMultipleTitles` tinyint(4) NOT NULL DEFAULT '1', - `libraryId` int(11) NOT NULL DEFAULT '-1', - `style` enum('vertical','horizontal','single','single-with-next','text-list','horizontal-carousel') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'horizontal', - `coverSize` enum('small','medium') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'small', - `showRatings` tinyint(4) NOT NULL DEFAULT '0', - `showTitle` tinyint(4) NOT NULL DEFAULT '1', - `showAuthor` tinyint(4) NOT NULL DEFAULT '1', - `showViewMoreLink` tinyint(4) NOT NULL DEFAULT '0', - `viewMoreLinkMode` enum('covers','list') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'list', - `showSpotlightTitle` tinyint(4) NOT NULL DEFAULT '1', - `numTitlesToShow` int(11) NOT NULL DEFAULT '25', + `name` varchar(50) NOT NULL, + `description` mediumtext DEFAULT NULL, + `showTitleDescriptions` tinyint(4) DEFAULT 1, + `onSelectCallback` varchar(255) DEFAULT '', + `customCss` varchar(500) NOT NULL, + `listDisplayType` enum('tabs','dropdown') NOT NULL DEFAULT 'tabs', + `autoRotate` tinyint(4) NOT NULL DEFAULT 0, + `showMultipleTitles` tinyint(4) NOT NULL DEFAULT 1, + `libraryId` int(11) NOT NULL DEFAULT -1, + `style` enum('vertical','horizontal','single','single-with-next','text-list','horizontal-carousel') NOT NULL DEFAULT 'horizontal', + `coverSize` enum('small','medium') NOT NULL DEFAULT 'small', + `showRatings` tinyint(4) NOT NULL DEFAULT 0, + `showTitle` tinyint(4) NOT NULL DEFAULT 1, + `showAuthor` tinyint(4) NOT NULL DEFAULT 1, + `showViewMoreLink` tinyint(4) NOT NULL DEFAULT 0, + `viewMoreLinkMode` enum('covers','list') NOT NULL DEFAULT 'list', + `showSpotlightTitle` tinyint(4) NOT NULL DEFAULT 1, + `numTitlesToShow` int(11) NOT NULL DEFAULT 25, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='A widget that can be displayed within Pika or within other sites'; DROP TABLE IF EXISTS communico_events; CREATE TABLE `communico_events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `settingsId` int(11) NOT NULL, - `externalId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `externalId` varchar(36) NOT NULL, + `title` varchar(255) NOT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `deleted` tinyint(4) DEFAULT '0', + `rawResponse` mediumtext DEFAULT NULL, + `deleted` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `settingsId` (`settingsId`,`externalId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS communico_settings; CREATE TABLE `communico_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `clientId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `clientSecret` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `eventsInLists` tinyint(1) DEFAULT '1', - `bypassAspenEventPages` tinyint(1) DEFAULT '0', - `registrationModalBody` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numberOfDaysToIndex` int(11) DEFAULT '365', - `registrationModalBodyApp` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastUpdateOfAllEvents` int(11) DEFAULT '0', + `name` varchar(100) NOT NULL, + `baseUrl` varchar(255) NOT NULL, + `clientId` varchar(36) NOT NULL, + `clientSecret` varchar(36) NOT NULL, + `eventsInLists` tinyint(1) DEFAULT 1, + `bypassAspenEventPages` tinyint(1) DEFAULT 0, + `registrationModalBody` mediumtext DEFAULT NULL, + `numberOfDaysToIndex` int(11) DEFAULT 365, + `registrationModalBodyApp` varchar(500) DEFAULT NULL, + `lastUpdateOfAllEvents` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS companion_system; CREATE TABLE `companion_system` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `serverName` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `serverUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `serverName` varchar(72) NOT NULL, + `serverUrl` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS component_development_epic_link; @@ -954,7 +954,7 @@ CREATE TABLE `component_development_task_link` ( `id` int(11) NOT NULL AUTO_INCREMENT, `componentId` int(11) DEFAULT NULL, `taskId` int(11) DEFAULT NULL, - `weight` int(11) NOT NULL DEFAULT '0', + `weight` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `componentId` (`componentId`,`taskId`), KEY `componentId_2` (`componentId`,`weight`) @@ -970,10 +970,10 @@ CREATE TABLE `component_ticket_link` ( DROP TABLE IF EXISTS comprise_settings; CREATE TABLE `comprise_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `customerName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `customerName` varchar(50) DEFAULT NULL, `customerId` int(11) DEFAULT NULL, - `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `password` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `username` varchar(50) DEFAULT NULL, + `password` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `customerName` (`customerName`), UNIQUE KEY `customerId` (`customerId`) @@ -981,22 +981,22 @@ CREATE TABLE `comprise_settings` ( DROP TABLE IF EXISTS contentcafe_settings; CREATE TABLE `contentcafe_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `contentCafeId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `pwd` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `hasSummary` tinyint(1) DEFAULT '1', - `hasToc` tinyint(1) DEFAULT '0', - `hasExcerpt` tinyint(1) DEFAULT '0', - `hasAuthorNotes` tinyint(1) DEFAULT '0', - `enabled` tinyint(1) DEFAULT '1', + `contentCafeId` varchar(50) NOT NULL, + `pwd` varchar(50) NOT NULL, + `hasSummary` tinyint(1) DEFAULT 1, + `hasToc` tinyint(1) DEFAULT 0, + `hasExcerpt` tinyint(1) DEFAULT 0, + `hasAuthorNotes` tinyint(1) DEFAULT 0, + `enabled` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS course_reserve; CREATE TABLE `course_reserve` ( `id` int(11) NOT NULL AUTO_INCREMENT, `created` int(11) DEFAULT NULL, - `deleted` tinyint(1) DEFAULT '0', + `deleted` tinyint(1) DEFAULT 0, `dateUpdated` int(11) DEFAULT NULL, - `courseLibrary` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `courseLibrary` varchar(25) DEFAULT NULL, `courseInstructor` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `courseNumber` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `courseTitle` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, @@ -1006,11 +1006,11 @@ CREATE TABLE `course_reserve` ( DROP TABLE IF EXISTS course_reserve_entry; CREATE TABLE `course_reserve_entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `source` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'GroupedWork', - `sourceId` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `source` varchar(20) NOT NULL DEFAULT 'GroupedWork', + `sourceId` varchar(40) DEFAULT NULL, `courseReserveId` int(11) DEFAULT NULL, `dateAdded` int(11) DEFAULT NULL, - `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `title` varchar(50) DEFAULT '', PRIMARY KEY (`id`), KEY `courseReserveId` (`courseReserveId`), KEY `source` (`source`,`sourceId`) @@ -1021,29 +1021,29 @@ CREATE TABLE `course_reserves_indexing_log` ( `startTime` int(11) NOT NULL, `endTime` int(11) DEFAULT NULL, `lastUpdate` int(11) DEFAULT NULL, - `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numLists` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', + `notes` text DEFAULT NULL, + `numLists` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS course_reserves_indexing_settings; CREATE TABLE `course_reserves_indexing_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `runFullUpdate` tinyint(1) DEFAULT '1', - `lastUpdateOfChangedCourseReserves` int(11) DEFAULT '0', - `lastUpdateOfAllCourseReserves` int(11) DEFAULT '0', + `runFullUpdate` tinyint(1) DEFAULT 1, + `lastUpdateOfChangedCourseReserves` int(11) DEFAULT 0, + `lastUpdateOfAllCourseReserves` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS course_reserves_library_map; CREATE TABLE `course_reserves_library_map` ( `id` int(11) NOT NULL AUTO_INCREMENT, `settingId` int(11) DEFAULT NULL, - `value` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `translation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `value` varchar(50) NOT NULL, + `translation` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS cron_log; @@ -1052,8 +1052,8 @@ CREATE TABLE `cron_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the cron run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the cron run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the cron run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the cron run', - `numErrors` int(11) NOT NULL DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the cron run', + `numErrors` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1061,14 +1061,14 @@ DROP TABLE IF EXISTS cron_process_log; CREATE TABLE `cron_process_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of cron process', `cronId` int(11) NOT NULL COMMENT 'The id of the cron run this process ran during', - `processName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The name of the process being run', + `processName` varchar(50) NOT NULL COMMENT 'The name of the process being run', `startTime` int(11) NOT NULL COMMENT 'The timestamp when the process started', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the process last updated (to check for stuck processes)', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the process ended', - `numErrors` int(11) NOT NULL DEFAULT '0' COMMENT 'The number of errors that occurred during the process', - `numUpdates` int(11) NOT NULL DEFAULT '0' COMMENT 'The number of updates, additions, etc. that occurred', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the process', - `numSkipped` int(11) NOT NULL DEFAULT '0', + `numErrors` int(11) NOT NULL DEFAULT 0 COMMENT 'The number of errors that occurred during the process', + `numUpdates` int(11) NOT NULL DEFAULT 0 COMMENT 'The number of updates, additions, etc. that occurred', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the process', + `numSkipped` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `cronId` (`cronId`), KEY `processName` (`processName`), @@ -1077,18 +1077,18 @@ CREATE TABLE `cron_process_log` ( DROP TABLE IF EXISTS curbside_pickup_settings; CREATE TABLE `curbside_pickup_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `alwaysAllowPickups` tinyint(1) DEFAULT '0', - `allowCheckIn` tinyint(1) DEFAULT '1', - `useNote` tinyint(1) DEFAULT '1', - `noteLabel` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Note', - `noteInstruction` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `instructionSchedule` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `instructionNewPickup` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `contentSuccess` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `contentCheckedIn` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `timeAllowedBeforeCheckIn` int(11) DEFAULT '30', - `curbsidePickupInstructions` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, + `alwaysAllowPickups` tinyint(1) DEFAULT 0, + `allowCheckIn` tinyint(1) DEFAULT 1, + `useNote` tinyint(1) DEFAULT 1, + `noteLabel` varchar(75) DEFAULT 'Note', + `noteInstruction` varchar(255) DEFAULT NULL, + `instructionSchedule` longtext DEFAULT NULL, + `instructionNewPickup` longtext DEFAULT NULL, + `contentSuccess` longtext DEFAULT NULL, + `contentCheckedIn` longtext DEFAULT NULL, + `timeAllowedBeforeCheckIn` int(11) DEFAULT 30, + `curbsidePickupInstructions` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1096,7 +1096,7 @@ CREATE TABLE `curbside_pickup_settings` ( /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -1105,10 +1105,10 @@ CREATE TABLE `curbside_pickup_settings` ( /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `db_update`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!50503 SET character_set_client = utf8mb4 */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `db_update` ( - `update_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `date_run` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + `update_key` varchar(100) NOT NULL, + `date_run` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`update_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; @@ -1131,23 +1131,23 @@ UNLOCK TABLES; DROP TABLE IF EXISTS deluxe_certified_payments_settings; CREATE TABLE `deluxe_certified_payments_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `sandboxMode` tinyint(1) DEFAULT '0', - `applicationId` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, + `sandboxMode` tinyint(1) DEFAULT 0, + `applicationId` varchar(500) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS development_epic; CREATE TABLE `development_epic` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `description` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `linkToDesign` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `linkToRequirements` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `internalComments` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `dueDate` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dueDateComment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `privateStatus` int(11) DEFAULT '0', + `name` varchar(255) NOT NULL, + `description` mediumtext DEFAULT NULL, + `linkToDesign` varchar(255) DEFAULT NULL, + `linkToRequirements` varchar(255) DEFAULT NULL, + `internalComments` mediumtext DEFAULT NULL, + `dueDate` char(10) DEFAULT NULL, + `dueDateComment` varchar(255) DEFAULT NULL, + `privateStatus` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1162,37 +1162,37 @@ CREATE TABLE `development_epic_partner_link` ( DROP TABLE IF EXISTS development_priorities; CREATE TABLE `development_priorities` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `priority1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `priority2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `priority3` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `priority1` varchar(50) DEFAULT NULL, + `priority2` varchar(50) DEFAULT NULL, + `priority3` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS development_sprint; CREATE TABLE `development_sprint` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(255) NOT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, - `active` tinyint(1) DEFAULT '1', + `active` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS development_task; CREATE TABLE `development_task` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `taskType` int(11) DEFAULT '0', - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `dueDate` char(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dueDateComment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `description` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `releaseId` int(11) DEFAULT '0', - `status` int(11) DEFAULT '0', + `taskType` int(11) DEFAULT 0, + `name` varchar(255) NOT NULL, + `dueDate` char(10) DEFAULT NULL, + `dueDateComment` varchar(255) DEFAULT NULL, + `description` mediumtext DEFAULT NULL, + `releaseId` int(11) DEFAULT 0, + `status` int(11) DEFAULT 0, `storyPoints` float DEFAULT NULL, - `devTestingNotes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `qaFeedback` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `releaseNoteText` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `newSettingsAdded` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `suggestedForCommunityDev` tinyint(1) DEFAULT '0', + `devTestingNotes` mediumtext DEFAULT NULL, + `qaFeedback` mediumtext DEFAULT NULL, + `releaseNoteText` text DEFAULT NULL, + `newSettingsAdded` text DEFAULT NULL, + `suggestedForCommunityDev` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1209,7 +1209,7 @@ CREATE TABLE `development_task_epic_link` ( `id` int(11) NOT NULL AUTO_INCREMENT, `epicId` int(11) DEFAULT NULL, `taskId` int(11) DEFAULT NULL, - `weight` int(11) NOT NULL DEFAULT '0', + `weight` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `epicId` (`epicId`,`taskId`), KEY `epicId_2` (`epicId`,`weight`) @@ -1235,7 +1235,7 @@ CREATE TABLE `development_task_sprint_link` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sprintId` int(11) DEFAULT NULL, `taskId` int(11) DEFAULT NULL, - `weight` int(11) NOT NULL DEFAULT '0', + `weight` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `sprintId` (`sprintId`,`taskId`), KEY `sprintId_2` (`sprintId`,`weight`) @@ -1252,44 +1252,44 @@ DROP TABLE IF EXISTS donations; CREATE TABLE `donations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `paymentId` int(11) DEFAULT NULL, - `firstName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `email` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `anonymous` tinyint(1) DEFAULT '0', - `comments` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `dedicate` tinyint(1) DEFAULT '0', + `firstName` varchar(256) DEFAULT NULL, + `lastName` varchar(256) DEFAULT NULL, + `email` varchar(256) DEFAULT NULL, + `anonymous` tinyint(1) DEFAULT 0, + `comments` mediumtext DEFAULT NULL, + `dedicate` tinyint(1) DEFAULT 0, `dedicateType` int(11) DEFAULT NULL, - `honoreeFirstName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `honoreeLastName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sendEmailToUser` tinyint(1) DEFAULT '0', + `honoreeFirstName` varchar(256) DEFAULT NULL, + `honoreeLastName` varchar(256) DEFAULT NULL, + `sendEmailToUser` tinyint(1) DEFAULT 0, `donateToLocationId` int(11) DEFAULT NULL, `donationSettingId` int(11) DEFAULT NULL, - `donateToLocation` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `shouldBeNotified` tinyint(1) DEFAULT '0', - `notificationFirstName` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notificationLastName` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notificationAddress` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notificationCity` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notificationState` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notificationZip` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `address` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `address2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `city` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `state` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `donateToLocation` varchar(60) DEFAULT NULL, + `shouldBeNotified` tinyint(1) DEFAULT 0, + `notificationFirstName` varchar(75) DEFAULT NULL, + `notificationLastName` varchar(75) DEFAULT NULL, + `notificationAddress` varchar(75) DEFAULT NULL, + `notificationCity` varchar(75) DEFAULT NULL, + `notificationState` varchar(75) DEFAULT NULL, + `notificationZip` varchar(75) DEFAULT NULL, + `address` varchar(50) DEFAULT NULL, + `address2` varchar(50) DEFAULT NULL, + `city` varchar(50) DEFAULT NULL, + `state` varchar(50) DEFAULT NULL, `zip` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS donations_dedicate_type; CREATE TABLE `donations_dedicate_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `label` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `label` varchar(75) DEFAULT NULL, `donationSettingId` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS donations_earmark; CREATE TABLE `donations_earmark` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `label` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `label` varchar(75) DEFAULT NULL, `weight` smallint(6) DEFAULT NULL, `donationSettingId` int(11) DEFAULT NULL, PRIMARY KEY (`id`) @@ -1297,13 +1297,13 @@ CREATE TABLE `donations_earmark` ( DROP TABLE IF EXISTS donations_settings; CREATE TABLE `donations_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `allowDonationsToBranch` tinyint(1) DEFAULT '0', - `allowDonationEarmark` tinyint(1) DEFAULT '0', - `allowDonationDedication` tinyint(1) DEFAULT '0', - `donationsContent` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `donationEmailTemplate` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `requiresAddressInfo` tinyint(1) DEFAULT '0', + `name` varchar(50) DEFAULT NULL, + `allowDonationsToBranch` tinyint(1) DEFAULT 0, + `allowDonationEarmark` tinyint(1) DEFAULT 0, + `allowDonationDedication` tinyint(1) DEFAULT 0, + `donationsContent` longtext DEFAULT NULL, + `donationEmailTemplate` text DEFAULT NULL, + `requiresAddressInfo` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1311,37 +1311,37 @@ DROP TABLE IF EXISTS donations_value; CREATE TABLE `donations_value` ( `id` int(11) NOT NULL AUTO_INCREMENT, `value` int(11) DEFAULT NULL, - `isDefault` tinyint(1) DEFAULT '0', + `isDefault` tinyint(1) DEFAULT 0, `donationSettingId` int(11) DEFAULT NULL, - `weight` int(11) DEFAULT '0', + `weight` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS dpla_api_settings; CREATE TABLE `dpla_api_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `apiKey` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `apiKey` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ebsco_eds_settings; CREATE TABLE `ebsco_eds_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `edsApiProfile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `edsSearchProfile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `edsApiUsername` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `edsApiPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `fullTextLimiter` tinyint(4) NOT NULL DEFAULT '1', + `name` varchar(50) NOT NULL, + `edsApiProfile` varchar(50) DEFAULT '', + `edsSearchProfile` varchar(50) DEFAULT '', + `edsApiUsername` varchar(50) DEFAULT '', + `edsApiPassword` varchar(50) DEFAULT '', + `fullTextLimiter` tinyint(4) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ebsco_eds_usage; CREATE TABLE `ebsco_eds_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `ebscoId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `ebscoId` varchar(100) NOT NULL, `month` int(11) NOT NULL, `year` int(11) NOT NULL, `timesViewedInSearch` int(11) NOT NULL, `timesUsed` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`ebscoId`,`year`,`month`), UNIQUE KEY `instance_2` (`instance`,`ebscoId`,`year`,`month`) @@ -1349,8 +1349,8 @@ CREATE TABLE `ebsco_eds_usage` ( DROP TABLE IF EXISTS ebsco_research_starter; CREATE TABLE `ebsco_research_starter` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `ebscoId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `ebscoId` varchar(100) NOT NULL, + `title` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ebscoId` (`ebscoId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1366,45 +1366,45 @@ DROP TABLE IF EXISTS ebscohost_database; CREATE TABLE `ebscohost_database` ( `id` int(11) NOT NULL AUTO_INCREMENT, `searchSettingId` int(11) NOT NULL, - `shortName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `allowSearching` tinyint(4) DEFAULT '1', - `searchByDefault` tinyint(4) DEFAULT '1', - `showInExploreMore` tinyint(4) DEFAULT '0', - `showInCombinedResults` tinyint(4) DEFAULT '0', - `logo` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `hasDateAndRelevancySorting` tinyint(1) DEFAULT '1', + `shortName` varchar(50) NOT NULL, + `displayName` varchar(50) NOT NULL, + `allowSearching` tinyint(4) DEFAULT 1, + `searchByDefault` tinyint(4) DEFAULT 1, + `showInExploreMore` tinyint(4) DEFAULT 0, + `showInCombinedResults` tinyint(4) DEFAULT 0, + `logo` varchar(512) DEFAULT '', + `hasDateAndRelevancySorting` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ebscohost_facet; CREATE TABLE `ebscohost_facet` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `shortName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `displayName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `shortName` varchar(50) NOT NULL, + `displayName` varchar(100) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `shortName` (`shortName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ebscohost_search_options; CREATE TABLE `ebscohost_search_options` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, `settingId` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ebscohost_settings; CREATE TABLE `ebscohost_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `profileId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `profilePwd` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `name` varchar(50) NOT NULL, + `profileId` varchar(50) DEFAULT '', + `profilePwd` varchar(50) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ebscohost_usage; CREATE TABLE `ebscohost_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ebscohostId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `instance` varchar(100) DEFAULT NULL, + `ebscohostId` varchar(50) NOT NULL, `month` int(11) NOT NULL, `year` int(11) NOT NULL, `timesViewedInSearch` int(11) NOT NULL, @@ -1415,32 +1415,32 @@ CREATE TABLE `ebscohost_usage` ( DROP TABLE IF EXISTS email_template; CREATE TABLE `email_template` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `templateType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `languageCode` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `subject` varchar(998) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `plainTextBody` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) NOT NULL, + `templateType` varchar(50) NOT NULL, + `languageCode` char(3) NOT NULL, + `subject` varchar(998) NOT NULL, + `plainTextBody` mediumtext DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS errors; CREATE TABLE `errors` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `module` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `action` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `url` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `message` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `backtrace` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `module` varchar(50) NOT NULL, + `action` varchar(50) NOT NULL, + `url` mediumtext DEFAULT NULL, + `message` mediumtext DEFAULT NULL, + `backtrace` mediumtext DEFAULT NULL, `timestamp` int(11) DEFAULT NULL, - `userAgent` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `userAgent` mediumtext DEFAULT NULL, PRIMARY KEY (`id`), KEY `timestamp` (`timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS event_library_map_values; CREATE TABLE `event_library_map_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `aspenLocation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `eventsLocation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `aspenLocation` varchar(255) NOT NULL, + `eventsLocation` varchar(255) NOT NULL, `locationId` int(11) NOT NULL, `libraryId` int(11) NOT NULL, PRIMARY KEY (`id`), @@ -1450,68 +1450,68 @@ DROP TABLE IF EXISTS events_facet; CREATE TABLE `events_facet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `facetGroupId` int(11) NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `displayNamePlural` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `facetName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT '5', - `showAsDropDown` tinyint(4) NOT NULL DEFAULT '0', - `sortMode` enum('alphabetically','num_results') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'num_results', - `showAboveResults` tinyint(4) NOT NULL DEFAULT '0', - `showInResults` tinyint(4) NOT NULL DEFAULT '1', - `showInAdvancedSearch` tinyint(4) NOT NULL DEFAULT '1', - `collapseByDefault` tinyint(4) DEFAULT '1', - `useMoreFacetPopup` tinyint(4) DEFAULT '1', - `translate` tinyint(4) DEFAULT '0', - `multiSelect` tinyint(4) DEFAULT '0', - `canLock` tinyint(4) DEFAULT '0', + `displayName` varchar(50) NOT NULL, + `displayNamePlural` varchar(50) DEFAULT NULL, + `facetName` varchar(50) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT 5, + `showAsDropDown` tinyint(4) NOT NULL DEFAULT 0, + `sortMode` enum('alphabetically','num_results') NOT NULL DEFAULT 'num_results', + `showAboveResults` tinyint(4) NOT NULL DEFAULT 0, + `showInResults` tinyint(4) NOT NULL DEFAULT 1, + `showInAdvancedSearch` tinyint(4) NOT NULL DEFAULT 1, + `collapseByDefault` tinyint(4) DEFAULT 1, + `useMoreFacetPopup` tinyint(4) DEFAULT 1, + `translate` tinyint(4) DEFAULT 0, + `multiSelect` tinyint(4) DEFAULT 0, + `canLock` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `groupFacet` (`facetGroupId`,`facetName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS events_facet_groups; CREATE TABLE `events_facet_groups` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `eventFacetCountsToShow` tinyint(4) DEFAULT '1', + `name` varchar(255) NOT NULL, + `eventFacetCountsToShow` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS events_indexing_log; CREATE TABLE `events_indexing_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of log entry', - `name` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(150) NOT NULL, `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numEvents` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numEvents` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS events_spotlights; CREATE TABLE `events_spotlights` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(255) NOT NULL, `showNameAsTitle` tinyint(1) DEFAULT NULL, - `description` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `showDescription` tinyint(1) DEFAULT '0', - `showEventImages` tinyint(1) DEFAULT '1', - `showEventDescriptions` tinyint(1) DEFAULT '1', - `searchTerm` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `defaultFilter` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `defaultSort` enum('relevance','start_date_sort','title_sort') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `description` mediumtext DEFAULT NULL, + `showDescription` tinyint(1) DEFAULT 0, + `showEventImages` tinyint(1) DEFAULT 1, + `showEventDescriptions` tinyint(1) DEFAULT 1, + `searchTerm` varchar(500) NOT NULL DEFAULT '', + `defaultFilter` mediumtext DEFAULT NULL, + `defaultSort` enum('relevance','start_date_sort','title_sort') DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS events_usage; CREATE TABLE `events_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `type` varchar(25) NOT NULL, `source` int(11) NOT NULL, - `identifier` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `identifier` varchar(36) NOT NULL, `month` int(11) NOT NULL, `year` int(11) NOT NULL, `timesViewedInSearch` int(11) NOT NULL, @@ -1522,14 +1522,14 @@ CREATE TABLE `events_usage` ( DROP TABLE IF EXISTS external_request_log; CREATE TABLE `external_request_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `requestUrl` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `requestHeaders` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `requestBody` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `response` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `requestUrl` varchar(400) DEFAULT NULL, + `requestHeaders` text DEFAULT NULL, + `requestBody` text DEFAULT NULL, + `response` mediumtext DEFAULT NULL, `responseCode` int(11) DEFAULT NULL, `requestTime` int(11) DEFAULT NULL, - `requestType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `requestMethod` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `requestType` varchar(50) DEFAULT NULL, + `requestMethod` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`), KEY `requestUrl` (`requestUrl`), KEY `requestTime` (`requestTime`), @@ -1539,7 +1539,7 @@ CREATE TABLE `external_request_log` ( DROP TABLE IF EXISTS failed_logins_by_ip_address; CREATE TABLE `failed_logins_by_ip_address` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `ipAddress` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `ipAddress` varchar(25) DEFAULT NULL, `timestamp` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipAddress` (`ipAddress`) @@ -1547,10 +1547,10 @@ CREATE TABLE `failed_logins_by_ip_address` ( DROP TABLE IF EXISTS file_uploads; CREATE TABLE `file_uploads` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fullPath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `thumbFullPath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `title` varchar(255) NOT NULL, + `fullPath` varchar(512) NOT NULL, + `type` varchar(25) NOT NULL, + `thumbFullPath` varchar(512) DEFAULT NULL, PRIMARY KEY (`id`), KEY `type` (`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1558,89 +1558,89 @@ DROP TABLE IF EXISTS format_map_values; CREATE TABLE `format_map_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, `indexingProfileId` int(11) NOT NULL, - `value` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `format` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `formatCategory` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `value` varchar(50) NOT NULL, + `format` varchar(255) NOT NULL, + `formatCategory` varchar(255) NOT NULL, `formatBoost` tinyint(4) NOT NULL, - `suppress` tinyint(1) DEFAULT '0', - `holdType` enum('bib','item','either','none') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'bib', - `inLibraryUseOnly` tinyint(1) DEFAULT '0', - `pickupAt` tinyint(1) DEFAULT '0', - `appliesToBibLevel` tinyint(1) DEFAULT '1', - `appliesToItemShelvingLocation` tinyint(1) DEFAULT '1', - `appliesToItemSublocation` tinyint(1) DEFAULT '1', - `appliesToItemCollection` tinyint(1) DEFAULT '1', - `appliesToItemType` tinyint(1) DEFAULT '1', - `appliesToItemFormat` tinyint(1) DEFAULT '1', - `appliesToMatType` tinyint(1) DEFAULT '1', - `appliesToFallbackFormat` tinyint(1) DEFAULT '1', + `suppress` tinyint(1) DEFAULT 0, + `holdType` enum('bib','item','either','none') DEFAULT 'bib', + `inLibraryUseOnly` tinyint(1) DEFAULT 0, + `pickupAt` tinyint(1) DEFAULT 0, + `appliesToBibLevel` tinyint(1) DEFAULT 1, + `appliesToItemShelvingLocation` tinyint(1) DEFAULT 1, + `appliesToItemSublocation` tinyint(1) DEFAULT 1, + `appliesToItemCollection` tinyint(1) DEFAULT 1, + `appliesToItemType` tinyint(1) DEFAULT 1, + `appliesToItemFormat` tinyint(1) DEFAULT 1, + `appliesToMatType` tinyint(1) DEFAULT 1, + `appliesToFallbackFormat` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `indexingProfileId` (`indexingProfileId`,`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS google_api_settings; CREATE TABLE `google_api_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `googleBooksKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `googleAnalyticsTrackingId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `googleAnalyticsLinkingId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `googleAnalyticsLinkedProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `googleAnalyticsDomainName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `googleMapsKey` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `googleAnalyticsVersion` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'v3', + `googleBooksKey` varchar(50) DEFAULT NULL, + `googleAnalyticsTrackingId` varchar(50) DEFAULT NULL, + `googleAnalyticsLinkingId` varchar(50) DEFAULT NULL, + `googleAnalyticsLinkedProperties` longtext DEFAULT NULL, + `googleAnalyticsDomainName` varchar(100) DEFAULT NULL, + `googleMapsKey` varchar(60) DEFAULT NULL, + `googleAnalyticsVersion` varchar(5) DEFAULT 'v3', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS greenhouse_cache; CREATE TABLE `greenhouse_cache` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) DEFAULT NULL, `locationId` int(11) DEFAULT NULL, `libraryId` int(11) DEFAULT NULL, - `solrScope` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `latitude` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `longitude` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `unit` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `solrScope` varchar(75) DEFAULT NULL, + `latitude` varchar(75) DEFAULT NULL, + `longitude` varchar(75) DEFAULT NULL, + `unit` varchar(3) DEFAULT NULL, + `baseUrl` varchar(255) DEFAULT NULL, `lastUpdated` int(11) DEFAULT NULL, `siteId` int(11) DEFAULT NULL, - `releaseChannel` tinyint(1) DEFAULT '0', - `logo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `favicon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryBackgroundColor` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryForegroundColor` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `secondaryBackgroundColor` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `secondaryForegroundColor` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `tertiaryBackgroundColor` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `tertiaryForegroundColor` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `version` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `releaseChannel` tinyint(1) DEFAULT 0, + `logo` varchar(255) DEFAULT NULL, + `favicon` varchar(255) DEFAULT NULL, + `primaryBackgroundColor` varchar(25) DEFAULT NULL, + `primaryForegroundColor` varchar(25) DEFAULT NULL, + `secondaryBackgroundColor` varchar(25) DEFAULT NULL, + `secondaryForegroundColor` varchar(25) DEFAULT NULL, + `tertiaryBackgroundColor` varchar(25) DEFAULT NULL, + `tertiaryForegroundColor` varchar(25) DEFAULT NULL, + `version` varchar(25) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS greenhouse_settings; CREATE TABLE `greenhouse_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `greenhouseAlertSlackHook` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiKey1` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiKey2` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiKey3` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiKey4` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiKey5` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notificationAccessToken` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `requestTrackerAuthToken` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `requestTrackerBaseUrl` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `expoEASBuildWebhookKey` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sendBuildTrackerAlert` tinyint(1) DEFAULT '0', - `expoEASSubmitWebhookKey` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `greenhouseAlertSlackHook` varchar(255) DEFAULT NULL, + `apiKey1` varchar(256) DEFAULT NULL, + `apiKey2` varchar(256) DEFAULT NULL, + `apiKey3` varchar(256) DEFAULT NULL, + `apiKey4` varchar(256) DEFAULT NULL, + `apiKey5` varchar(256) DEFAULT NULL, + `notificationAccessToken` varchar(256) DEFAULT NULL, + `requestTrackerAuthToken` varchar(50) DEFAULT NULL, + `requestTrackerBaseUrl` varchar(100) DEFAULT NULL, + `expoEASBuildWebhookKey` varchar(256) DEFAULT NULL, + `sendBuildTrackerAlert` tinyint(1) DEFAULT 0, + `expoEASSubmitWebhookKey` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS grouped_work; CREATE TABLE `grouped_work` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, - `permanent_id` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `grouping_category` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `full_title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `permanent_id` char(40) NOT NULL, + `author` varchar(50) DEFAULT NULL, + `grouping_category` varchar(25) NOT NULL, + `full_title` varchar(500) NOT NULL, `date_updated` int(11) DEFAULT NULL, - `referenceCover` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primary_language` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `referenceCover` varchar(50) DEFAULT NULL, + `primary_language` varchar(3) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `permanent_id` (`permanent_id`), KEY `date_updated` (`date_updated`) @@ -1648,12 +1648,12 @@ CREATE TABLE `grouped_work` ( DROP TABLE IF EXISTS grouped_work_alternate_titles; CREATE TABLE `grouped_work_alternate_titles` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `permanent_id` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `alternateTitle` varchar(709) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `alternateAuthor` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `permanent_id` char(40) NOT NULL, + `alternateTitle` varchar(709) DEFAULT NULL, + `alternateAuthor` varchar(50) DEFAULT NULL, `addedBy` int(11) DEFAULT NULL, `dateAdded` int(11) DEFAULT NULL, - `alternateGroupingCategory` varchar(5) COLLATE utf8mb4_general_ci DEFAULT NULL, + `alternateGroupingCategory` varchar(5) DEFAULT NULL, PRIMARY KEY (`id`), KEY `permanent_id` (`permanent_id`), KEY `alternateTitle` (`alternateTitle`,`alternateAuthor`) @@ -1661,8 +1661,8 @@ CREATE TABLE `grouped_work_alternate_titles` ( DROP TABLE IF EXISTS grouped_work_debug_info; CREATE TABLE `grouped_work_debug_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `permanent_id` char(40) COLLATE utf8mb4_general_ci NOT NULL, - `debugInfo` text COLLATE utf8mb4_general_ci, + `permanent_id` char(40) NOT NULL, + `debugInfo` text DEFAULT NULL, `debugTime` int(11) DEFAULT NULL, `processed` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`), @@ -1671,10 +1671,10 @@ CREATE TABLE `grouped_work_debug_info` ( DROP TABLE IF EXISTS grouped_work_display_info; CREATE TABLE `grouped_work_display_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `permanent_id` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `author` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `seriesName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `permanent_id` char(40) NOT NULL, + `title` varchar(500) DEFAULT NULL, + `author` varchar(50) DEFAULT NULL, + `seriesName` varchar(255) DEFAULT NULL, `seriesDisplayOrder` decimal(6,2) DEFAULT NULL, `addedBy` int(11) DEFAULT NULL, `dateAdded` int(11) DEFAULT NULL, @@ -1686,55 +1686,55 @@ CREATE TABLE `grouped_work_display_info` ( DROP TABLE IF EXISTS grouped_work_display_settings; CREATE TABLE `grouped_work_display_settings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `applyNumberOfHoldingsBoost` tinyint(4) DEFAULT '1', - `showSearchTools` tinyint(4) DEFAULT '1', - `showQuickCopy` tinyint(4) DEFAULT '1', - `showInSearchResultsMainDetails` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'a:5:{i:0;s:10:"showSeries";i:1;s:13:"showPublisher";i:2;s:19:"showPublicationDate";i:3;s:13:"showLanguages";i:4;s:10:"showArInfo";}', - `alwaysShowSearchResultsMainDetails` tinyint(4) DEFAULT '0', - `availabilityToggleLabelSuperScope` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Entire Collection', - `availabilityToggleLabelLocal` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '{display name}', - `availabilityToggleLabelAvailable` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Available Now', - `availabilityToggleLabelAvailableOnline` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Available Online', - `baseAvailabilityToggleOnLocalHoldingsOnly` tinyint(1) DEFAULT '1', - `includeOnlineMaterialsInAvailableToggle` tinyint(1) DEFAULT '1', - `includeAllRecordsInShelvingFacets` tinyint(4) DEFAULT '0', - `includeAllRecordsInDateAddedFacets` tinyint(4) DEFAULT '0', - `includeOutOfSystemExternalLinks` tinyint(4) DEFAULT '0', - `facetGroupId` int(11) DEFAULT '0', - `showStandardReviews` tinyint(4) DEFAULT '1', - `showGoodReadsReviews` tinyint(4) DEFAULT '1', - `preferSyndeticsSummary` tinyint(4) DEFAULT '1', - `showSimilarTitles` tinyint(4) DEFAULT '1', - `showSimilarAuthors` tinyint(4) DEFAULT '1', - `showRatings` tinyint(4) DEFAULT '1', - `showComments` tinyint(4) DEFAULT '1', - `hideCommentsWithBadWords` tinyint(4) DEFAULT '0', - `show856LinksAsTab` tinyint(4) DEFAULT '1', - `showCheckInGrid` tinyint(4) DEFAULT '1', - `showStaffView` tinyint(4) DEFAULT '1', - `showLCSubjects` tinyint(4) DEFAULT '1', - `showBisacSubjects` tinyint(4) DEFAULT '1', - `showFastAddSubjects` tinyint(4) DEFAULT '1', - `showOtherSubjects` tinyint(4) DEFAULT '1', - `showInMainDetails` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `defaultAvailabilityToggle` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'global', - `isDefault` tinyint(4) DEFAULT '0', - `showItemDueDates` tinyint(1) DEFAULT '1', - `facetCountsToShow` tinyint(4) DEFAULT '1', - `alwaysFlagNewTitles` tinyint(1) DEFAULT '0', - `showRelatedRecordLabels` tinyint(1) DEFAULT '1', - `sortOwnedEditionsFirst` tinyint(1) DEFAULT '0', - `show856LinksAsAccessOnlineButtons` tinyint(1) DEFAULT '0', - `showSearchToolsAtTop` tinyint(1) DEFAULT '0', - `showEditionCovers` tinyint(1) DEFAULT '0', - `searchSpecVersion` tinyint(1) DEFAULT '2', - `limitBoosts` tinyint(1) DEFAULT '1', - `maxTotalBoost` int(11) DEFAULT '500', - `maxPopularityBoost` int(11) DEFAULT '25', - `maxFormatBoost` int(11) DEFAULT '25', - `maxHoldingsBoost` int(11) DEFAULT '25', - `showItemNotes` tinyint(1) DEFAULT '1', + `name` varchar(255) NOT NULL, + `applyNumberOfHoldingsBoost` tinyint(4) DEFAULT 1, + `showSearchTools` tinyint(4) DEFAULT 1, + `showQuickCopy` tinyint(4) DEFAULT 1, + `showInSearchResultsMainDetails` varchar(512) DEFAULT 'a:5:{i:0;s:10:"showSeries";i:1;s:13:"showPublisher";i:2;s:19:"showPublicationDate";i:3;s:13:"showLanguages";i:4;s:10:"showArInfo";}', + `alwaysShowSearchResultsMainDetails` tinyint(4) DEFAULT 0, + `availabilityToggleLabelSuperScope` varchar(50) DEFAULT 'Entire Collection', + `availabilityToggleLabelLocal` varchar(50) DEFAULT '{display name}', + `availabilityToggleLabelAvailable` varchar(50) DEFAULT 'Available Now', + `availabilityToggleLabelAvailableOnline` varchar(50) DEFAULT 'Available Online', + `baseAvailabilityToggleOnLocalHoldingsOnly` tinyint(1) DEFAULT 1, + `includeOnlineMaterialsInAvailableToggle` tinyint(1) DEFAULT 1, + `includeAllRecordsInShelvingFacets` tinyint(4) DEFAULT 0, + `includeAllRecordsInDateAddedFacets` tinyint(4) DEFAULT 0, + `includeOutOfSystemExternalLinks` tinyint(4) DEFAULT 0, + `facetGroupId` int(11) DEFAULT 0, + `showStandardReviews` tinyint(4) DEFAULT 1, + `showGoodReadsReviews` tinyint(4) DEFAULT 1, + `preferSyndeticsSummary` tinyint(4) DEFAULT 1, + `showSimilarTitles` tinyint(4) DEFAULT 1, + `showSimilarAuthors` tinyint(4) DEFAULT 1, + `showRatings` tinyint(4) DEFAULT 1, + `showComments` tinyint(4) DEFAULT 1, + `hideCommentsWithBadWords` tinyint(4) DEFAULT 0, + `show856LinksAsTab` tinyint(4) DEFAULT 1, + `showCheckInGrid` tinyint(4) DEFAULT 1, + `showStaffView` tinyint(4) DEFAULT 1, + `showLCSubjects` tinyint(4) DEFAULT 1, + `showBisacSubjects` tinyint(4) DEFAULT 1, + `showFastAddSubjects` tinyint(4) DEFAULT 1, + `showOtherSubjects` tinyint(4) DEFAULT 1, + `showInMainDetails` varchar(500) DEFAULT NULL, + `defaultAvailabilityToggle` varchar(20) DEFAULT 'global', + `isDefault` tinyint(4) DEFAULT 0, + `showItemDueDates` tinyint(1) DEFAULT 1, + `facetCountsToShow` tinyint(4) DEFAULT 1, + `alwaysFlagNewTitles` tinyint(1) DEFAULT 0, + `showRelatedRecordLabels` tinyint(1) DEFAULT 1, + `sortOwnedEditionsFirst` tinyint(1) DEFAULT 0, + `show856LinksAsAccessOnlineButtons` tinyint(1) DEFAULT 0, + `showSearchToolsAtTop` tinyint(1) DEFAULT 0, + `showEditionCovers` tinyint(1) DEFAULT 0, + `searchSpecVersion` tinyint(1) DEFAULT 2, + `limitBoosts` tinyint(1) DEFAULT 1, + `maxTotalBoost` int(11) DEFAULT 500, + `maxPopularityBoost` int(11) DEFAULT 25, + `maxFormatBoost` int(11) DEFAULT 25, + `maxHoldingsBoost` int(11) DEFAULT 25, + `showItemNotes` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1742,46 +1742,46 @@ DROP TABLE IF EXISTS grouped_work_facet; CREATE TABLE `grouped_work_facet` ( `id` int(11) NOT NULL AUTO_INCREMENT, `facetGroupId` int(11) NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `facetName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT '5', - `showAsDropDown` tinyint(4) NOT NULL DEFAULT '0', - `sortMode` enum('alphabetically','num_results') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'num_results', - `showAboveResults` tinyint(4) NOT NULL DEFAULT '0', - `showInResults` tinyint(4) NOT NULL DEFAULT '1', - `showInAdvancedSearch` tinyint(4) NOT NULL DEFAULT '1', - `collapseByDefault` tinyint(4) DEFAULT '1', - `useMoreFacetPopup` tinyint(4) DEFAULT '1', - `translate` tinyint(4) DEFAULT '0', - `multiSelect` tinyint(4) DEFAULT '0', - `canLock` tinyint(4) DEFAULT '0', - `displayNamePlural` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `displayName` varchar(50) NOT NULL, + `facetName` varchar(50) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT 5, + `showAsDropDown` tinyint(4) NOT NULL DEFAULT 0, + `sortMode` enum('alphabetically','num_results') NOT NULL DEFAULT 'num_results', + `showAboveResults` tinyint(4) NOT NULL DEFAULT 0, + `showInResults` tinyint(4) NOT NULL DEFAULT 1, + `showInAdvancedSearch` tinyint(4) NOT NULL DEFAULT 1, + `collapseByDefault` tinyint(4) DEFAULT 1, + `useMoreFacetPopup` tinyint(4) DEFAULT 1, + `translate` tinyint(4) DEFAULT 0, + `multiSelect` tinyint(4) DEFAULT 0, + `canLock` tinyint(4) DEFAULT 0, + `displayNamePlural` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `groupFacet` (`facetGroupId`,`facetName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS grouped_work_facet_groups; CREATE TABLE `grouped_work_facet_groups` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS grouped_work_more_details; CREATE TABLE `grouped_work_more_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `weight` int(11) NOT NULL DEFAULT '0', - `source` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `source` varchar(25) NOT NULL, `collapseByDefault` tinyint(1) DEFAULT NULL, - `groupedWorkSettingsId` int(11) NOT NULL DEFAULT '-1', + `groupedWorkSettingsId` int(11) NOT NULL DEFAULT -1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS grouped_work_primary_identifiers; CREATE TABLE `grouped_work_primary_identifiers` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `grouped_work_id` bigint(20) NOT NULL, - `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `identifier` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `type` varchar(50) NOT NULL, + `identifier` varchar(150) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `type` (`type`,`identifier`), KEY `grouped_record_id` (`grouped_work_id`) @@ -1790,7 +1790,7 @@ DROP TABLE IF EXISTS grouped_work_record_item_url; CREATE TABLE `grouped_work_record_item_url` ( `groupedWorkItemId` int(11) DEFAULT NULL, `scopeId` int(11) DEFAULT NULL, - `url` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `url` varchar(1000) DEFAULT NULL, UNIQUE KEY `groupedWorkItemId` (`groupedWorkItemId`,`scopeId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS grouped_work_record_items; @@ -1798,12 +1798,12 @@ CREATE TABLE `grouped_work_record_items` ( `id` int(11) NOT NULL AUTO_INCREMENT, `groupedWorkRecordId` int(11) NOT NULL, `groupedWorkVariationId` int(11) NOT NULL, - `itemId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `itemId` varchar(255) DEFAULT NULL, `shelfLocationId` int(11) DEFAULT NULL, `callNumberId` int(11) DEFAULT NULL, `sortableCallNumberId` int(11) DEFAULT NULL, `numCopies` int(11) DEFAULT NULL, - `isOrderItem` tinyint(4) DEFAULT '0', + `isOrderItem` tinyint(4) DEFAULT 0, `statusId` int(11) DEFAULT NULL, `dateAdded` bigint(20) DEFAULT NULL, `locationCodeId` int(11) DEFAULT NULL, @@ -1813,10 +1813,10 @@ CREATE TABLE `grouped_work_record_items` ( `available` tinyint(1) DEFAULT NULL, `holdable` tinyint(1) DEFAULT NULL, `inLibraryUseOnly` tinyint(1) DEFAULT NULL, - `locationOwnedScopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT (_utf8mb4'~'), - `libraryOwnedScopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT (_utf8mb4'~'), - `recordIncludedScopes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT (_utf8mb4'~'), - `isVirtual` tinyint(1) NOT NULL DEFAULT '0', + `locationOwnedScopes` text DEFAULT _utf8mb4'~', + `libraryOwnedScopes` text DEFAULT _utf8mb4'~', + `recordIncludedScopes` text DEFAULT _utf8mb4'~', + `isVirtual` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `itemId` (`itemId`,`groupedWorkRecordId`), KEY `groupedWorkRecordId` (`groupedWorkRecordId`), @@ -1835,10 +1835,10 @@ CREATE TABLE `grouped_work_records` ( `publicationDateId` int(11) DEFAULT NULL, `physicalDescriptionId` int(11) DEFAULT NULL, `languageId` int(11) DEFAULT NULL, - `isClosedCaptioned` tinyint(1) DEFAULT '0', - `hasParentRecord` tinyint(1) NOT NULL DEFAULT '0', - `hasChildRecord` tinyint(1) NOT NULL DEFAULT '0', - `placeOfPublicationId` int(11) DEFAULT '1', + `isClosedCaptioned` tinyint(1) DEFAULT 0, + `hasParentRecord` tinyint(1) NOT NULL DEFAULT 0, + `hasChildRecord` tinyint(1) NOT NULL DEFAULT 0, + `placeOfPublicationId` int(11) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `sourceId` (`sourceId`,`recordIdentifier`), KEY `groupedWorkId` (`groupedWorkId`) @@ -1846,9 +1846,9 @@ CREATE TABLE `grouped_work_records` ( DROP TABLE IF EXISTS grouped_work_scheduled_index; CREATE TABLE `grouped_work_scheduled_index` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `permanent_id` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `permanent_id` char(40) NOT NULL, `indexAfter` int(11) NOT NULL, - `processed` tinyint(1) DEFAULT '0', + `processed` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `allfields` (`processed`,`indexAfter`,`permanent_id`), KEY `permanent_id` (`permanent_id`), @@ -1857,13 +1857,13 @@ CREATE TABLE `grouped_work_scheduled_index` ( DROP TABLE IF EXISTS grouped_work_test_search; CREATE TABLE `grouped_work_test_search` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `searchTerm` text CHARACTER SET utf8 COLLATE utf8_bin, - `expectedGroupedWorks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `unexpectedGroupedWorks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `status` int(11) DEFAULT '0', - `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `searchIndex` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Keyword', - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `searchTerm` text CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, + `expectedGroupedWorks` text DEFAULT NULL, + `unexpectedGroupedWorks` text DEFAULT NULL, + `status` int(11) DEFAULT 0, + `notes` text DEFAULT NULL, + `searchIndex` varchar(40) DEFAULT 'Keyword', + `description` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS grouped_work_variation; @@ -1880,8 +1880,8 @@ CREATE TABLE `grouped_work_variation` ( DROP TABLE IF EXISTS hide_series; CREATE TABLE `hide_series` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `seriesTerm` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `seriesNormalized` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `seriesTerm` varchar(512) NOT NULL, + `seriesNormalized` varchar(512) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `seriesTerm` (`seriesTerm`), UNIQUE KEY `seriesNormalized` (`seriesNormalized`) @@ -1889,8 +1889,8 @@ CREATE TABLE `hide_series` ( DROP TABLE IF EXISTS hide_subject_facets; CREATE TABLE `hide_subject_facets` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `subjectTerm` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `subjectNormalized` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `subjectTerm` varchar(512) NOT NULL, + `subjectNormalized` varchar(512) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `subjectTerm` (`subjectTerm`), UNIQUE KEY `subjectNormalized` (`subjectNormalized`) @@ -1899,8 +1899,8 @@ DROP TABLE IF EXISTS hold_request_confirmation; CREATE TABLE `hold_request_confirmation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `requestId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `additionalParams` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `requestId` varchar(36) NOT NULL, + `additionalParams` mediumtext DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS holiday; @@ -1908,7 +1908,7 @@ CREATE TABLE `holiday` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of holiday', `libraryId` int(11) NOT NULL COMMENT 'The library system id', `date` date NOT NULL COMMENT 'Date of holiday', - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Name of holiday', + `name` varchar(100) NOT NULL COMMENT 'Name of holiday', PRIMARY KEY (`id`), UNIQUE KEY `LibraryDate` (`date`,`libraryId`), KEY `Library` (`libraryId`), @@ -1918,18 +1918,18 @@ DROP TABLE IF EXISTS hoopla_export; CREATE TABLE `hoopla_export` ( `id` int(11) NOT NULL AUTO_INCREMENT, `hooplaId` int(11) NOT NULL, - `active` tinyint(4) NOT NULL DEFAULT '1', - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `kind` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `pa` tinyint(4) NOT NULL DEFAULT '0', - `demo` tinyint(4) NOT NULL DEFAULT '0', - `profanity` tinyint(4) NOT NULL DEFAULT '0', - `rating` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `abridged` tinyint(4) NOT NULL DEFAULT '0', - `children` tinyint(4) NOT NULL DEFAULT '0', - `price` double NOT NULL DEFAULT '0', + `active` tinyint(4) NOT NULL DEFAULT 1, + `title` varchar(255) DEFAULT NULL, + `kind` varchar(50) DEFAULT NULL, + `pa` tinyint(4) NOT NULL DEFAULT 0, + `demo` tinyint(4) NOT NULL DEFAULT 0, + `profanity` tinyint(4) NOT NULL DEFAULT 0, + `rating` varchar(10) DEFAULT NULL, + `abridged` tinyint(4) NOT NULL DEFAULT 0, + `children` tinyint(4) NOT NULL DEFAULT 0, + `price` double NOT NULL DEFAULT 0, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` mediumblob, + `rawResponse` mediumblob DEFAULT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `hooplaId` (`hooplaId`) @@ -1940,16 +1940,16 @@ CREATE TABLE `hoopla_export_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', - `numChangedAfterGrouping` int(11) DEFAULT '0', - `numRegrouped` int(11) DEFAULT '0', - `numInvalidRecords` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, + `numChangedAfterGrouping` int(11) DEFAULT 0, + `numRegrouped` int(11) DEFAULT 0, + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -1960,7 +1960,7 @@ CREATE TABLE `hoopla_record_usage` ( `year` int(11) NOT NULL, `month` int(11) NOT NULL, `timesCheckedOut` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`hooplaId`,`year`,`month`), UNIQUE KEY `instance_2` (`instance`,`hooplaId`,`year`,`month`), @@ -1969,84 +1969,84 @@ CREATE TABLE `hoopla_record_usage` ( DROP TABLE IF EXISTS hoopla_scopes; CREATE TABLE `hoopla_scopes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `includeEBooks` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutEBooks` float DEFAULT '5', - `includeEComics` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutEComics` float DEFAULT '5', - `includeEAudiobook` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutEAudiobook` float DEFAULT '5', - `includeMovies` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutMovies` float DEFAULT '5', - `includeMusic` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutMusic` float DEFAULT '5', - `includeTelevision` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutTelevision` float DEFAULT '5', - `ratingsToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `excludeAbridged` tinyint(4) DEFAULT '0', - `excludeParentalAdvisory` tinyint(4) DEFAULT '0', - `excludeProfanity` tinyint(4) DEFAULT '0', + `name` varchar(50) NOT NULL, + `includeEBooks` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutEBooks` float DEFAULT 5, + `includeEComics` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutEComics` float DEFAULT 5, + `includeEAudiobook` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutEAudiobook` float DEFAULT 5, + `includeMovies` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutMovies` float DEFAULT 5, + `includeMusic` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutMusic` float DEFAULT 5, + `includeTelevision` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutTelevision` float DEFAULT 5, + `ratingsToExclude` varchar(100) DEFAULT NULL, + `excludeAbridged` tinyint(4) DEFAULT 0, + `excludeParentalAdvisory` tinyint(4) DEFAULT 0, + `excludeProfanity` tinyint(4) DEFAULT 0, `settingId` int(11) DEFAULT NULL, - `excludeTitlesWithCopiesFromOtherVendors` tinyint(4) DEFAULT '0', - `includeBingePass` tinyint(4) DEFAULT '1', - `maxCostPerCheckoutBingePass` float DEFAULT '5', - `genresToExclude` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `includeAdult` tinyint(4) DEFAULT '1', - `includeTeen` tinyint(4) DEFAULT '1', - `includeKids` tinyint(4) DEFAULT '1', + `excludeTitlesWithCopiesFromOtherVendors` tinyint(4) DEFAULT 0, + `includeBingePass` tinyint(4) DEFAULT 1, + `maxCostPerCheckoutBingePass` float DEFAULT 5, + `genresToExclude` longtext DEFAULT NULL, + `includeAdult` tinyint(4) DEFAULT 1, + `includeTeen` tinyint(4) DEFAULT 1, + `includeKids` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS hoopla_settings; CREATE TABLE `hoopla_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `apiUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `libraryId` int(11) DEFAULT '0', - `apiUsername` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', - `regroupAllRecords` tinyint(1) DEFAULT '0', - `indexByDay` tinyint(1) DEFAULT '0', + `apiUrl` varchar(255) DEFAULT NULL, + `libraryId` int(11) DEFAULT 0, + `apiUsername` varchar(50) DEFAULT NULL, + `apiPassword` varchar(50) DEFAULT NULL, + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, + `regroupAllRecords` tinyint(1) DEFAULT 0, + `indexByDay` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS host_information; CREATE TABLE `host_information` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `host` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `host` varchar(100) DEFAULT NULL, `libraryId` int(11) DEFAULT NULL, - `locationId` int(11) DEFAULT '-1', - `defaultPath` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `locationId` int(11) DEFAULT -1, + `defaultPath` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ils_extract_log; CREATE TABLE `ils_extract_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of log', - `indexingProfile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `indexingProfile` varchar(50) NOT NULL, `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numSkipped` int(11) DEFAULT '0', - `numRegrouped` int(11) DEFAULT '0', - `numChangedAfterGrouping` int(11) DEFAULT '0', + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numSkipped` int(11) DEFAULT 0, + `numRegrouped` int(11) DEFAULT 0, + `numChangedAfterGrouping` int(11) DEFAULT 0, `isFullUpdate` tinyint(1) DEFAULT NULL, - `currentId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `numRecordsWithInvalidMarc` int(11) NOT NULL DEFAULT '0', - `numInvalidRecords` int(11) DEFAULT '0', + `currentId` varchar(36) DEFAULT NULL, + `numRecordsWithInvalidMarc` int(11) NOT NULL DEFAULT 0, + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `indexingProfileTime` (`indexingProfile`,`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ils_hold_summary; CREATE TABLE `ils_hold_summary` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `ilsId` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `numHolds` int(11) DEFAULT '0', + `ilsId` varchar(20) NOT NULL, + `numHolds` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `ilsId` (`ilsId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2054,14 +2054,14 @@ DROP TABLE IF EXISTS ils_record_usage; CREATE TABLE `ils_record_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `indexingProfileId` int(11) NOT NULL, - `recordId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `recordId` varchar(36) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, `timesUsed` int(11) NOT NULL, - `pdfDownloadCount` int(11) DEFAULT '0', - `supplementalFileDownloadCount` int(11) DEFAULT '0', - `pdfViewCount` int(11) DEFAULT '0', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `pdfDownloadCount` int(11) DEFAULT 0, + `supplementalFileDownloadCount` int(11) DEFAULT 0, + `pdfViewCount` int(11) DEFAULT 0, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`indexingProfileId`,`recordId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -2069,17 +2069,17 @@ CREATE TABLE `ils_record_usage` ( DROP TABLE IF EXISTS ils_records; CREATE TABLE `ils_records` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `ilsId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `ilsId` varchar(50) NOT NULL, `checksum` bigint(20) unsigned NOT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'ils', + `source` varchar(50) NOT NULL DEFAULT 'ils', `deleted` tinyint(1) DEFAULT NULL, `dateDeleted` int(11) DEFAULT NULL, `suppressedNoMarcAvailable` tinyint(1) DEFAULT NULL, - `sourceData` mediumblob, + `sourceData` mediumblob DEFAULT NULL, `lastModified` int(11) DEFAULT NULL, - `suppressed` tinyint(1) DEFAULT '0', - `suppressionNotes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `suppressed` tinyint(1) DEFAULT 0, + `suppressionNotes` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `source` (`source`,`ilsId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2088,9 +2088,9 @@ CREATE TABLE `ils_volume_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `recordId` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'Full Record ID including the source', `displayLabel` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `relatedItems` text CHARACTER SET utf8 COLLATE utf8_general_ci, + `relatedItems` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `volumeId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, - `displayOrder` int(11) DEFAULT '0', + `displayOrder` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `recordVolume` (`recordId`,`volumeId`), KEY `recordId` (`recordId`) @@ -2098,17 +2098,17 @@ CREATE TABLE `ils_volume_info` ( DROP TABLE IF EXISTS image_uploads; CREATE TABLE `image_uploads` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fullSizePath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `generateMediumSize` tinyint(1) NOT NULL DEFAULT '0', - `mediumSizePath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `generateSmallSize` tinyint(1) NOT NULL DEFAULT '0', - `smallSizePath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `generateLargeSize` tinyint(1) NOT NULL DEFAULT '1', - `largeSizePath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `generateXLargeSize` tinyint(1) NOT NULL DEFAULT '1', - `xLargeSizePath` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `title` varchar(255) NOT NULL, + `fullSizePath` varchar(512) NOT NULL, + `generateMediumSize` tinyint(1) NOT NULL DEFAULT 0, + `mediumSizePath` varchar(512) DEFAULT NULL, + `generateSmallSize` tinyint(1) NOT NULL DEFAULT 0, + `smallSizePath` varchar(512) DEFAULT NULL, + `type` varchar(25) NOT NULL, + `generateLargeSize` tinyint(1) NOT NULL DEFAULT 1, + `largeSizePath` varchar(512) DEFAULT '', + `generateXLargeSize` tinyint(1) NOT NULL DEFAULT 1, + `xLargeSizePath` varchar(512) DEFAULT '', PRIMARY KEY (`id`), KEY `type` (`type`,`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2236,129 +2236,129 @@ CREATE TABLE `indexed_sub_location_code` ( DROP TABLE IF EXISTS indexing_profiles; CREATE TABLE `indexing_profiles` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `marcPath` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `marcEncoding` enum('MARC8','UTF8','UNIMARC','ISO8859_1','BESTGUESS') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'MARC8', - `groupingClass` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'MarcRecordGrouper', - `indexingClass` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `recordDriver` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'MarcRecord', - `recordUrlComponent` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'Record', - `formatSource` enum('bib','item','specified') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bib', - `recordNumberTag` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `recordNumberPrefix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `itemTag` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `itemRecordNumber` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `useItemBasedCallNumbers` tinyint(1) NOT NULL DEFAULT '1', - `callNumberPrestamp` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumber` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumberCutter` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumberPoststamp` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `location` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `locationsToSuppress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `subLocation` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `shelvingLocation` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `volume` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemUrl` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `barcode` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `statusesToSuppress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `totalCheckouts` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastYearCheckouts` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `yearToDateCheckouts` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `totalRenewals` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `iType` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dueDate` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dateCreated` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dateCreatedFormat` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `iCode2` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `useICode2Suppression` tinyint(1) NOT NULL DEFAULT '1', - `format` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `eContentDescriptor` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderTag` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderStatus` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderLocation` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderCopies` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderCode3` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `collection` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `catalogDriver` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `nonHoldableITypes` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `nonHoldableStatuses` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `nonHoldableLocations` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastCheckinFormat` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastCheckinDate` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderLocationSingle` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `specifiedFormat` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `specifiedFormatCategory` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) NOT NULL, + `marcPath` varchar(100) NOT NULL, + `marcEncoding` enum('MARC8','UTF8','UNIMARC','ISO8859_1','BESTGUESS') NOT NULL DEFAULT 'MARC8', + `groupingClass` varchar(100) NOT NULL DEFAULT 'MarcRecordGrouper', + `indexingClass` varchar(50) NOT NULL, + `recordDriver` varchar(100) NOT NULL DEFAULT 'MarcRecord', + `recordUrlComponent` varchar(25) NOT NULL DEFAULT 'Record', + `formatSource` enum('bib','item','specified') NOT NULL DEFAULT 'bib', + `recordNumberTag` char(3) NOT NULL, + `recordNumberPrefix` varchar(10) NOT NULL, + `itemTag` char(3) NOT NULL, + `itemRecordNumber` char(1) DEFAULT NULL, + `useItemBasedCallNumbers` tinyint(1) NOT NULL DEFAULT 1, + `callNumberPrestamp` char(1) DEFAULT NULL, + `callNumber` char(1) DEFAULT NULL, + `callNumberCutter` char(1) DEFAULT NULL, + `callNumberPoststamp` varchar(1) DEFAULT NULL, + `location` char(1) DEFAULT NULL, + `locationsToSuppress` varchar(255) DEFAULT NULL, + `subLocation` char(1) DEFAULT NULL, + `shelvingLocation` char(1) DEFAULT NULL, + `volume` varchar(1) DEFAULT NULL, + `itemUrl` char(1) DEFAULT NULL, + `barcode` char(1) DEFAULT NULL, + `status` char(1) DEFAULT NULL, + `statusesToSuppress` varchar(255) DEFAULT NULL, + `totalCheckouts` char(1) DEFAULT NULL, + `lastYearCheckouts` char(1) DEFAULT NULL, + `yearToDateCheckouts` char(1) DEFAULT NULL, + `totalRenewals` char(1) DEFAULT NULL, + `iType` char(1) DEFAULT NULL, + `dueDate` char(1) DEFAULT NULL, + `dateCreated` char(1) DEFAULT NULL, + `dateCreatedFormat` varchar(20) DEFAULT NULL, + `iCode2` char(1) DEFAULT NULL, + `useICode2Suppression` tinyint(1) NOT NULL DEFAULT 1, + `format` char(1) DEFAULT NULL, + `eContentDescriptor` char(1) DEFAULT NULL, + `orderTag` char(3) DEFAULT NULL, + `orderStatus` char(1) DEFAULT NULL, + `orderLocation` char(1) DEFAULT NULL, + `orderCopies` char(1) DEFAULT NULL, + `orderCode3` char(1) DEFAULT NULL, + `collection` char(1) DEFAULT NULL, + `catalogDriver` varchar(50) DEFAULT NULL, + `nonHoldableITypes` varchar(600) DEFAULT NULL, + `nonHoldableStatuses` varchar(255) DEFAULT NULL, + `nonHoldableLocations` varchar(512) DEFAULT NULL, + `lastCheckinFormat` varchar(20) DEFAULT NULL, + `lastCheckinDate` char(1) DEFAULT NULL, + `orderLocationSingle` char(1) DEFAULT NULL, + `specifiedFormat` varchar(50) DEFAULT NULL, + `specifiedFormatCategory` varchar(50) DEFAULT NULL, `specifiedFormatBoost` int(11) DEFAULT NULL, - `filenamesToInclude` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '.*\\.ma?rc', - `collectionsToSuppress` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `dueDateFormat` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'yyMMdd', - `doAutomaticEcontentSuppression` tinyint(1) DEFAULT '1', - `iTypesToSuppress` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `iCode2sToSuppress` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bCode3sToSuppress` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sierraRecordFixedFieldsTag` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bCode3` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `recordNumberField` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'a', - `recordNumberSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'a', - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', - `lastUpdateFromMarcExport` int(11) DEFAULT '0', - `treatUnknownLanguageAs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'English', - `treatUndeterminedLanguageAs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'English', - `checkRecordForLargePrint` tinyint(1) DEFAULT '1', - `determineAudienceBy` tinyint(4) DEFAULT '0', - `audienceSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `includeLocationNameInDetailedLocation` tinyint(1) DEFAULT '1', - `lastVolumeExportTimestamp` int(11) DEFAULT '0', - `lastUpdateOfAuthorities` int(11) DEFAULT '0', - `regroupAllRecords` tinyint(1) DEFAULT '0', - `fullMarcExportRecordIdThreshold` bigint(20) DEFAULT '0', - `lastChangeProcessed` int(11) DEFAULT '0', - `noteSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `treatUnknownAudienceAs` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'General', - `suppressRecordsWithUrlsMatching` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'overdrive.com|contentreserve.com|hoopla|yourcloudlibrary|axis360.baker-taylor.com', - `determineLiteraryFormBy` tinyint(4) DEFAULT '0', - `literaryFormSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `hideUnknownLiteraryForm` tinyint(4) DEFAULT '1', - `hideNotCodedLiteraryForm` tinyint(4) DEFAULT '1', - `fallbackFormatField` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `treatLibraryUseOnlyGroupedStatusesAsAvailable` tinyint(4) DEFAULT '1', - `customMarcFieldsToIndexAsKeyword` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `processRecordLinking` tinyint(1) DEFAULT '0', - `evergreenOrgUnitSchema` tinyint(1) DEFAULT '1', - `index856Links` tinyint(1) NOT NULL DEFAULT '0', - `includePersonalAndCorporateNamesInTopics` tinyint(1) NOT NULL DEFAULT '1', - `orderRecordsStatusesToInclude` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'o|1', - `hideOrderRecordsForBibsWithPhysicalItems` tinyint(1) DEFAULT '0', - `orderRecordsToSuppressByDate` tinyint(1) DEFAULT '1', - `checkSierraMatTypeForFormat` tinyint(4) DEFAULT '0', - `customFacet1SourceField` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `customFacet1ValuesToInclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `customFacet1ValuesToExclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `customFacet2SourceField` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `customFacet2ValuesToInclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `customFacet2ValuesToExclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `customFacet3SourceField` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `customFacet3ValuesToInclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `customFacet3ValuesToExclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `callNumberPrestamp2` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemUrlDescription` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `numRetriesForBibLookups` tinyint(4) DEFAULT '2', - `numMillisecondsToPauseAfterBibLookups` int(11) DEFAULT '0', - `numExtractionThreads` tinyint(4) DEFAULT '10', - `orderRecordStatusToTreatAsUnderConsideration` varchar(10) COLLATE utf8mb4_general_ci DEFAULT '', + `filenamesToInclude` varchar(250) DEFAULT '.*\\.ma?rc', + `collectionsToSuppress` varchar(100) DEFAULT '', + `dueDateFormat` varchar(20) DEFAULT 'yyMMdd', + `doAutomaticEcontentSuppression` tinyint(1) DEFAULT 1, + `iTypesToSuppress` varchar(100) DEFAULT NULL, + `iCode2sToSuppress` varchar(100) DEFAULT NULL, + `bCode3sToSuppress` varchar(100) DEFAULT NULL, + `sierraRecordFixedFieldsTag` char(3) DEFAULT NULL, + `bCode3` char(1) DEFAULT NULL, + `recordNumberField` char(1) DEFAULT 'a', + `recordNumberSubfield` char(1) DEFAULT 'a', + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, + `lastUpdateFromMarcExport` int(11) DEFAULT 0, + `treatUnknownLanguageAs` varchar(50) DEFAULT 'English', + `treatUndeterminedLanguageAs` varchar(50) DEFAULT 'English', + `checkRecordForLargePrint` tinyint(1) DEFAULT 1, + `determineAudienceBy` tinyint(4) DEFAULT 0, + `audienceSubfield` char(1) DEFAULT NULL, + `includeLocationNameInDetailedLocation` tinyint(1) DEFAULT 1, + `lastVolumeExportTimestamp` int(11) DEFAULT 0, + `lastUpdateOfAuthorities` int(11) DEFAULT 0, + `regroupAllRecords` tinyint(1) DEFAULT 0, + `fullMarcExportRecordIdThreshold` bigint(20) DEFAULT 0, + `lastChangeProcessed` int(11) DEFAULT 0, + `noteSubfield` char(1) DEFAULT '', + `treatUnknownAudienceAs` varchar(10) DEFAULT 'General', + `suppressRecordsWithUrlsMatching` varchar(512) DEFAULT 'overdrive.com|contentreserve.com|hoopla|yourcloudlibrary|axis360.baker-taylor.com', + `determineLiteraryFormBy` tinyint(4) DEFAULT 0, + `literaryFormSubfield` char(1) DEFAULT '', + `hideUnknownLiteraryForm` tinyint(4) DEFAULT 1, + `hideNotCodedLiteraryForm` tinyint(4) DEFAULT 1, + `fallbackFormatField` varchar(5) DEFAULT NULL, + `treatLibraryUseOnlyGroupedStatusesAsAvailable` tinyint(4) DEFAULT 1, + `customMarcFieldsToIndexAsKeyword` varchar(255) DEFAULT '', + `processRecordLinking` tinyint(1) DEFAULT 0, + `evergreenOrgUnitSchema` tinyint(1) DEFAULT 1, + `index856Links` tinyint(1) NOT NULL DEFAULT 0, + `includePersonalAndCorporateNamesInTopics` tinyint(1) NOT NULL DEFAULT 1, + `orderRecordsStatusesToInclude` varchar(25) DEFAULT 'o|1', + `hideOrderRecordsForBibsWithPhysicalItems` tinyint(1) DEFAULT 0, + `orderRecordsToSuppressByDate` tinyint(1) DEFAULT 1, + `checkSierraMatTypeForFormat` tinyint(4) DEFAULT 0, + `customFacet1SourceField` varchar(50) DEFAULT '', + `customFacet1ValuesToInclude` text DEFAULT NULL, + `customFacet1ValuesToExclude` text DEFAULT NULL, + `customFacet2SourceField` varchar(50) DEFAULT '', + `customFacet2ValuesToInclude` text DEFAULT NULL, + `customFacet2ValuesToExclude` text DEFAULT NULL, + `customFacet3SourceField` varchar(50) DEFAULT '', + `customFacet3ValuesToInclude` text DEFAULT NULL, + `customFacet3ValuesToExclude` text DEFAULT NULL, + `callNumberPrestamp2` char(1) DEFAULT NULL, + `itemUrlDescription` char(1) DEFAULT NULL, + `numRetriesForBibLookups` tinyint(4) DEFAULT 2, + `numMillisecondsToPauseAfterBibLookups` int(11) DEFAULT 0, + `numExtractionThreads` tinyint(4) DEFAULT 10, + `orderRecordStatusToTreatAsUnderConsideration` varchar(10) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS invoice_cloud_settings; CREATE TABLE `invoice_cloud_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `apiKey` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, + `apiKey` varchar(500) NOT NULL, `invoiceTypeId` int(11) DEFAULT NULL, - `ccServiceFee` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `ccServiceFee` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2366,21 +2366,21 @@ DROP TABLE IF EXISTS ip_lookup; CREATE TABLE `ip_lookup` ( `id` int(11) NOT NULL AUTO_INCREMENT, `locationid` int(11) NOT NULL, - `location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `location` varchar(255) NOT NULL, + `ip` varchar(255) NOT NULL, `startIpVal` bigint(20) DEFAULT NULL, `endIpVal` bigint(20) DEFAULT NULL, - `isOpac` tinyint(3) unsigned NOT NULL DEFAULT '1', - `blockAccess` tinyint(4) NOT NULL DEFAULT '0', - `allowAPIAccess` tinyint(4) NOT NULL DEFAULT '0', - `showDebuggingInformation` tinyint(4) NOT NULL DEFAULT '0', - `logTimingInformation` tinyint(4) DEFAULT '0', - `logAllQueries` tinyint(4) DEFAULT '0', - `defaultLogMeOutAfterPlacingHoldOn` tinyint(1) DEFAULT '1', - `authenticatedForEBSCOhost` tinyint(4) DEFAULT '0', - `blockedForSpam` tinyint(4) DEFAULT '0', - `masqueradeMode` tinyint(1) DEFAULT '0', - `ssoLogin` tinyint(1) DEFAULT '0', + `isOpac` tinyint(3) unsigned NOT NULL DEFAULT 1, + `blockAccess` tinyint(4) NOT NULL DEFAULT 0, + `allowAPIAccess` tinyint(4) NOT NULL DEFAULT 0, + `showDebuggingInformation` tinyint(4) NOT NULL DEFAULT 0, + `logTimingInformation` tinyint(4) DEFAULT 0, + `logAllQueries` tinyint(4) DEFAULT 0, + `defaultLogMeOutAfterPlacingHoldOn` tinyint(1) DEFAULT 1, + `authenticatedForEBSCOhost` tinyint(4) DEFAULT 0, + `blockedForSpam` tinyint(4) DEFAULT 0, + `masqueradeMode` tinyint(1) DEFAULT 0, + `ssoLogin` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `startIpVal` (`startIpVal`), KEY `endIpVal` (`endIpVal`), @@ -2406,8 +2406,8 @@ CREATE TABLE `javascript_snippet_location` ( DROP TABLE IF EXISTS javascript_snippets; CREATE TABLE `javascript_snippets` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `snippet` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) NOT NULL, + `snippet` mediumtext DEFAULT NULL, `containsAnalyticsCookies` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) @@ -2415,329 +2415,329 @@ CREATE TABLE `javascript_snippets` ( DROP TABLE IF EXISTS languages; CREATE TABLE `languages` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `weight` int(11) NOT NULL DEFAULT '0', - `code` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `displayNameEnglish` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `facetValue` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `displayToTranslatorsOnly` tinyint(1) DEFAULT '0', - `locale` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'en-US', + `weight` int(11) NOT NULL DEFAULT 0, + `code` char(3) NOT NULL, + `displayName` varchar(50) DEFAULT NULL, + `displayNameEnglish` varchar(50) DEFAULT NULL, + `facetValue` varchar(100) NOT NULL, + `displayToTranslatorsOnly` tinyint(1) DEFAULT 0, + `locale` varchar(10) DEFAULT 'en-US', PRIMARY KEY (`id`), UNIQUE KEY `code` (`code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS layout_settings; CREATE TABLE `layout_settings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `homeLinkText` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Home', - `showLibraryHoursAndLocationsLink` int(11) DEFAULT '1', - `useHomeLink` tinyint(1) DEFAULT '0', - `showBookIcon` tinyint(1) DEFAULT '0', - `browseLinkText` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Browse', - `showTopOfPageButton` tinyint(1) DEFAULT '1', - `dismissPlacardButtonLocation` tinyint(1) DEFAULT '0', - `dismissPlacardButtonIcon` tinyint(1) DEFAULT '0', - `contrastRatio` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '4.50', + `name` varchar(255) NOT NULL, + `homeLinkText` varchar(50) DEFAULT 'Home', + `showLibraryHoursAndLocationsLink` int(11) DEFAULT 1, + `useHomeLink` tinyint(1) DEFAULT 0, + `showBookIcon` tinyint(1) DEFAULT 0, + `browseLinkText` varchar(30) DEFAULT 'Browse', + `showTopOfPageButton` tinyint(1) DEFAULT 1, + `dismissPlacardButtonLocation` tinyint(1) DEFAULT 0, + `dismissPlacardButtonIcon` tinyint(1) DEFAULT 0, + `contrastRatio` varchar(5) DEFAULT '4.50', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS library; CREATE TABLE `library` ( `libraryId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'A unique id to identify the library within the system', - `subdomain` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The subdomain which can be used to access settings for the library', - `displayName` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `showLibraryFacet` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Whether or not the user can see and use the library facet to change to another branch in their library system.', - `showConsortiumFacet` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether or not the user can see and use the consortium facet to change to other library systems. ', - `allowInBranchHolds` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Whether or not the user can place holds for their branch. If this isn''t shown, they won''t be able to place holds for books at the location they are in. If set to false, they won''t be able to place any holds. ', - `allowInLibraryHolds` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Whether or not the user can place holds for books at other locations in their library system', - `allowConsortiumHolds` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether or not the user can place holds for any book anywhere in the consortium. ', - `scope` smallint(6) DEFAULT '0', - `useScope` tinyint(4) DEFAULT '0', - `showHoldButton` tinyint(4) DEFAULT '1', - `showLoginButton` tinyint(4) DEFAULT '1', - `showEmailThis` tinyint(4) DEFAULT '1', - `showComments` tinyint(4) DEFAULT '1', - `showFavorites` tinyint(4) DEFAULT '1', - `inSystemPickupsOnly` tinyint(4) DEFAULT '0', - `facetLabel` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `subdomain` varchar(25) NOT NULL COMMENT 'The subdomain which can be used to access settings for the library', + `displayName` varchar(80) NOT NULL, + `showLibraryFacet` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Whether or not the user can see and use the library facet to change to another branch in their library system.', + `showConsortiumFacet` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Whether or not the user can see and use the consortium facet to change to other library systems. ', + `allowInBranchHolds` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Whether or not the user can place holds for their branch. If this isn''t shown, they won''t be able to place holds for books at the location they are in. If set to false, they won''t be able to place any holds. ', + `allowInLibraryHolds` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Whether or not the user can place holds for books at other locations in their library system', + `allowConsortiumHolds` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Whether or not the user can place holds for any book anywhere in the consortium. ', + `scope` smallint(6) DEFAULT 0, + `useScope` tinyint(4) DEFAULT 0, + `showHoldButton` tinyint(4) DEFAULT 1, + `showLoginButton` tinyint(4) DEFAULT 1, + `showEmailThis` tinyint(4) DEFAULT 1, + `showComments` tinyint(4) DEFAULT 1, + `showFavorites` tinyint(4) DEFAULT 1, + `inSystemPickupsOnly` tinyint(4) DEFAULT 0, + `facetLabel` varchar(75) DEFAULT '', `finePaymentType` tinyint(1) DEFAULT NULL, - `repeatSearchOption` enum('none','librarySystem','marmot','all') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'all' COMMENT 'Where to allow repeating search. Valid options are: none, librarySystem, marmot, all', - `repeatInInnReach` tinyint(4) DEFAULT '0', - `repeatInWorldCat` tinyint(4) DEFAULT '0', - `systemsToRepeatIn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `homeLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default', - `showAdvancedSearchbox` tinyint(4) NOT NULL DEFAULT '1', - `validPickupSystems` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `allowProfileUpdates` tinyint(4) NOT NULL DEFAULT '1', - `allowRenewals` tinyint(4) NOT NULL DEFAULT '1', - `allowFreezeHolds` tinyint(4) NOT NULL DEFAULT '1', - `showItsHere` tinyint(4) NOT NULL DEFAULT '1', - `holdDisclaimer` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `showHoldCancelDate` tinyint(4) NOT NULL DEFAULT '0', - `enableInnReachIntegration` tinyint(4) NOT NULL DEFAULT '0', - `minimumFineAmount` float NOT NULL DEFAULT '0', - `enableGenealogy` tinyint(4) NOT NULL DEFAULT '0', - `enableCourseReserves` tinyint(1) NOT NULL DEFAULT '0', - `exportOptions` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'RefWorks|EndNote', - `enableSelfRegistration` tinyint(4) NOT NULL DEFAULT '0', - `enableMaterialsRequest` tinyint(4) DEFAULT '0', - `eContentLinkRules` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `notesTabName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Notes', - `showHoldButtonInSearchResults` tinyint(4) DEFAULT '1', - `showSimilarAuthors` tinyint(4) DEFAULT '1', - `showSimilarTitles` tinyint(4) DEFAULT '1', - `worldCatUrl` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `worldCatQt` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `showGoDeeper` tinyint(4) DEFAULT '1', - `showInnReachResultsAtEndOfSearch` tinyint(4) DEFAULT '1', - `defaultNotNeededAfterDays` int(11) DEFAULT '0', - `showOtherFormatCategory` tinyint(1) DEFAULT '1', - `showWikipediaContent` tinyint(1) DEFAULT '1', - `payFinesLink` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'default', - `payFinesLinkText` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Click to Pay Fines Online', - `ilsCode` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `systemMessage` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `restrictSearchByLibrary` tinyint(1) DEFAULT '0', - `restrictOwningBranchesAndSystems` tinyint(1) DEFAULT '1', - `showAvailableAtAnyLocation` tinyint(1) DEFAULT '1', - `allowPatronAddressUpdates` tinyint(1) DEFAULT '1', - `showWorkPhoneInProfile` tinyint(1) DEFAULT '0', - `showNoticeTypeInProfile` tinyint(1) DEFAULT '0', - `allowPickupLocationUpdates` tinyint(1) DEFAULT '0', - `accountingUnit` int(11) DEFAULT '10', - `additionalCss` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `repeatSearchOption` enum('none','librarySystem','marmot','all') NOT NULL DEFAULT 'all' COMMENT 'Where to allow repeating search. Valid options are: none, librarySystem, marmot, all', + `repeatInInnReach` tinyint(4) DEFAULT 0, + `repeatInWorldCat` tinyint(4) DEFAULT 0, + `systemsToRepeatIn` varchar(255) DEFAULT '', + `homeLink` varchar(255) NOT NULL DEFAULT 'default', + `showAdvancedSearchbox` tinyint(4) NOT NULL DEFAULT 1, + `validPickupSystems` varchar(500) DEFAULT '', + `allowProfileUpdates` tinyint(4) NOT NULL DEFAULT 1, + `allowRenewals` tinyint(4) NOT NULL DEFAULT 1, + `allowFreezeHolds` tinyint(4) NOT NULL DEFAULT 1, + `showItsHere` tinyint(4) NOT NULL DEFAULT 1, + `holdDisclaimer` longtext DEFAULT NULL, + `showHoldCancelDate` tinyint(4) NOT NULL DEFAULT 0, + `enableInnReachIntegration` tinyint(4) NOT NULL DEFAULT 0, + `minimumFineAmount` float NOT NULL DEFAULT 0, + `enableGenealogy` tinyint(4) NOT NULL DEFAULT 0, + `enableCourseReserves` tinyint(1) NOT NULL DEFAULT 0, + `exportOptions` varchar(100) NOT NULL DEFAULT 'RefWorks|EndNote', + `enableSelfRegistration` tinyint(4) NOT NULL DEFAULT 0, + `enableMaterialsRequest` tinyint(4) DEFAULT 0, + `eContentLinkRules` varchar(512) DEFAULT '', + `notesTabName` varchar(50) DEFAULT 'Notes', + `showHoldButtonInSearchResults` tinyint(4) DEFAULT 1, + `showSimilarAuthors` tinyint(4) DEFAULT 1, + `showSimilarTitles` tinyint(4) DEFAULT 1, + `worldCatUrl` varchar(100) DEFAULT '', + `worldCatQt` varchar(40) DEFAULT '', + `showGoDeeper` tinyint(4) DEFAULT 1, + `showInnReachResultsAtEndOfSearch` tinyint(4) DEFAULT 1, + `defaultNotNeededAfterDays` int(11) DEFAULT 0, + `showOtherFormatCategory` tinyint(1) DEFAULT 1, + `showWikipediaContent` tinyint(1) DEFAULT 1, + `payFinesLink` varchar(512) DEFAULT 'default', + `payFinesLinkText` varchar(512) DEFAULT 'Click to Pay Fines Online', + `ilsCode` varchar(75) DEFAULT NULL, + `systemMessage` mediumtext DEFAULT NULL, + `restrictSearchByLibrary` tinyint(1) DEFAULT 0, + `restrictOwningBranchesAndSystems` tinyint(1) DEFAULT 1, + `showAvailableAtAnyLocation` tinyint(1) DEFAULT 1, + `allowPatronAddressUpdates` tinyint(1) DEFAULT 1, + `showWorkPhoneInProfile` tinyint(1) DEFAULT 0, + `showNoticeTypeInProfile` tinyint(1) DEFAULT 0, + `allowPickupLocationUpdates` tinyint(1) DEFAULT 0, + `accountingUnit` int(11) DEFAULT 10, + `additionalCss` longtext DEFAULT NULL, `allowPinReset` tinyint(1) DEFAULT NULL, - `maxRequestsPerYear` int(11) DEFAULT '60', - `maxOpenRequests` int(11) DEFAULT '5', - `twitterLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `pinterestLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `youtubeLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `instagramLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `goodreadsLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `facebookLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `generalContactLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `repeatInOnlineCollection` int(11) DEFAULT '1', - `showExpirationWarnings` tinyint(1) DEFAULT '1', - `econtentLocationsToInclude` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showLibraryHoursNoticeOnAccountPages` tinyint(1) DEFAULT '1', - `showShareOnExternalSites` int(11) DEFAULT '1', - `barcodePrefix` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `minBarcodeLength` int(11) DEFAULT '0', - `maxBarcodeLength` int(11) DEFAULT '0', - `showDisplayNameInHeader` tinyint(4) DEFAULT '0', - `headerText` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `promptForBirthDateInSelfReg` tinyint(4) DEFAULT '0', - `loginFormUsernameLabel` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Your Name', - `loginFormPasswordLabel` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Library Card Number', - `additionalLocationsToShowAvailabilityFor` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `includeDplaResults` tinyint(1) DEFAULT '0', - `selfRegistrationFormMessage` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `selfRegistrationSuccessMessage` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `addSMSIndicatorToPhone` tinyint(1) DEFAULT '0', - `showAlternateLibraryOptionsInProfile` tinyint(1) DEFAULT '1', - `selfRegistrationTemplate` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'default', - `externalMaterialsRequestUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `maxRequestsPerYear` int(11) DEFAULT 60, + `maxOpenRequests` int(11) DEFAULT 5, + `twitterLink` varchar(255) DEFAULT '', + `pinterestLink` varchar(255) DEFAULT NULL, + `youtubeLink` varchar(255) DEFAULT NULL, + `instagramLink` varchar(255) DEFAULT NULL, + `goodreadsLink` varchar(255) DEFAULT NULL, + `facebookLink` varchar(255) DEFAULT '', + `generalContactLink` varchar(255) DEFAULT '', + `repeatInOnlineCollection` int(11) DEFAULT 1, + `showExpirationWarnings` tinyint(1) DEFAULT 1, + `econtentLocationsToInclude` varchar(255) DEFAULT NULL, + `showLibraryHoursNoticeOnAccountPages` tinyint(1) DEFAULT 1, + `showShareOnExternalSites` int(11) DEFAULT 1, + `barcodePrefix` varchar(15) DEFAULT '', + `minBarcodeLength` int(11) DEFAULT 0, + `maxBarcodeLength` int(11) DEFAULT 0, + `showDisplayNameInHeader` tinyint(4) DEFAULT 0, + `headerText` longtext DEFAULT NULL, + `promptForBirthDateInSelfReg` tinyint(4) DEFAULT 0, + `loginFormUsernameLabel` varchar(100) DEFAULT 'Your Name', + `loginFormPasswordLabel` varchar(100) DEFAULT 'Library Card Number', + `additionalLocationsToShowAvailabilityFor` varchar(255) NOT NULL DEFAULT '', + `includeDplaResults` tinyint(1) DEFAULT 0, + `selfRegistrationFormMessage` mediumtext DEFAULT NULL, + `selfRegistrationSuccessMessage` mediumtext DEFAULT NULL, + `addSMSIndicatorToPhone` tinyint(1) DEFAULT 0, + `showAlternateLibraryOptionsInProfile` tinyint(1) DEFAULT 1, + `selfRegistrationTemplate` varchar(25) DEFAULT 'default', + `externalMaterialsRequestUrl` varchar(255) DEFAULT NULL, `isDefault` tinyint(1) DEFAULT NULL, - `showHoldButtonForUnavailableOnly` tinyint(1) DEFAULT '0', - `allowLinkedAccounts` tinyint(1) DEFAULT '1', - `allowAutomaticSearchReplacements` tinyint(1) DEFAULT '1', - `publicListsToInclude` tinyint(1) DEFAULT '4', - `showOtherSubjects` tinyint(1) DEFAULT '1', - `maxFinesToAllowAccountUpdates` float DEFAULT '10', - `showRefreshAccountButton` tinyint(4) NOT NULL DEFAULT '1', - `patronNameDisplayStyle` enum('firstinitial_lastname','lastinitial_firstname') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'firstinitial_lastname', - `preventExpiredCardLogin` tinyint(1) DEFAULT '0', - `casHost` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `showHoldButtonForUnavailableOnly` tinyint(1) DEFAULT 0, + `allowLinkedAccounts` tinyint(1) DEFAULT 1, + `allowAutomaticSearchReplacements` tinyint(1) DEFAULT 1, + `publicListsToInclude` tinyint(1) DEFAULT 4, + `showOtherSubjects` tinyint(1) DEFAULT 1, + `maxFinesToAllowAccountUpdates` float DEFAULT 10, + `showRefreshAccountButton` tinyint(4) NOT NULL DEFAULT 1, + `patronNameDisplayStyle` enum('firstinitial_lastname','lastinitial_firstname') DEFAULT 'firstinitial_lastname', + `preventExpiredCardLogin` tinyint(1) DEFAULT 0, + `casHost` varchar(50) DEFAULT NULL, `casPort` smallint(6) DEFAULT NULL, - `casContext` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `casContext` varchar(50) DEFAULT NULL, `masqueradeAutomaticTimeoutLength` tinyint(3) unsigned DEFAULT NULL, - `allowMasqueradeMode` tinyint(1) DEFAULT '1', - `allowReadingHistoryDisplayInMasqueradeMode` tinyint(1) DEFAULT '0', - `newMaterialsRequestSummary` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `materialsRequestDaysToPreserve` int(11) DEFAULT '0', - `showGroupedHoldCopiesCount` tinyint(1) DEFAULT '1', - `interLibraryLoanName` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `interLibraryLoanUrl` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `expirationNearMessage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `expiredMessage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `enableCombinedResults` tinyint(1) DEFAULT '0', - `combinedResultsLabel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Combined Results', - `defaultToCombinedResults` tinyint(1) DEFAULT '0', + `allowMasqueradeMode` tinyint(1) DEFAULT 1, + `allowReadingHistoryDisplayInMasqueradeMode` tinyint(1) DEFAULT 0, + `newMaterialsRequestSummary` mediumtext DEFAULT NULL, + `materialsRequestDaysToPreserve` int(11) DEFAULT 0, + `showGroupedHoldCopiesCount` tinyint(1) DEFAULT 1, + `interLibraryLoanName` varchar(30) DEFAULT NULL, + `interLibraryLoanUrl` varchar(200) DEFAULT NULL, + `expirationNearMessage` longtext DEFAULT NULL, + `expiredMessage` longtext DEFAULT NULL, + `enableCombinedResults` tinyint(1) DEFAULT 0, + `combinedResultsLabel` varchar(255) DEFAULT 'Combined Results', + `defaultToCombinedResults` tinyint(1) DEFAULT 0, `hooplaLibraryID` int(10) unsigned DEFAULT NULL, - `showOnOrderCounts` tinyint(1) DEFAULT '1', - `sharedOverdriveCollection` tinyint(1) DEFAULT '-1', - `showSeriesAsTab` tinyint(4) NOT NULL DEFAULT '0', - `enableAlphaBrowse` tinyint(4) DEFAULT '1', - `homePageWidgetId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `searchGroupedRecords` tinyint(4) DEFAULT '0', - `showStandardSubjects` tinyint(1) DEFAULT '1', - `theme` int(11) DEFAULT '1', - `enableOpenArchives` tinyint(1) DEFAULT '0', - `hooplaScopeId` int(11) DEFAULT '-1', - `finesToPay` tinyint(1) DEFAULT '1', - `finePaymentOrder` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `layoutSettingId` int(11) DEFAULT '0', - `overDriveScopeId` int(11) DEFAULT '-1', - `groupedWorkDisplaySettingId` int(11) DEFAULT '0', + `showOnOrderCounts` tinyint(1) DEFAULT 1, + `sharedOverdriveCollection` tinyint(1) DEFAULT -1, + `showSeriesAsTab` tinyint(4) NOT NULL DEFAULT 0, + `enableAlphaBrowse` tinyint(4) DEFAULT 1, + `homePageWidgetId` varchar(50) DEFAULT '', + `searchGroupedRecords` tinyint(4) DEFAULT 0, + `showStandardSubjects` tinyint(1) DEFAULT 1, + `theme` int(11) DEFAULT 1, + `enableOpenArchives` tinyint(1) DEFAULT 0, + `hooplaScopeId` int(11) DEFAULT -1, + `finesToPay` tinyint(1) DEFAULT 1, + `finePaymentOrder` varchar(80) DEFAULT '', + `layoutSettingId` int(11) DEFAULT 0, + `overDriveScopeId` int(11) DEFAULT -1, + `groupedWorkDisplaySettingId` int(11) DEFAULT 0, `browseCategoryGroupId` int(11) NOT NULL, - `showConvertListsFromClassic` tinyint(1) DEFAULT '0', - `enableForgotPasswordLink` tinyint(1) DEFAULT '1', - `selfRegistrationLocationRestrictions` int(11) DEFAULT '2', - `baseUrl` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `generateSitemap` tinyint(1) DEFAULT '1', - `selfRegistrationUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showWhileYouWait` tinyint(1) DEFAULT '1', - `useAllCapsWhenSubmittingSelfRegistration` tinyint(1) DEFAULT '0', - `validSelfRegistrationStates` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `selfRegistrationPasswordNotes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `showAlternateLibraryCard` tinyint(4) DEFAULT '0', - `showAlternateLibraryCardPassword` tinyint(4) DEFAULT '0', - `alternateLibraryCardLabel` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `alternateLibraryCardPasswordLabel` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `libraryCardBarcodeStyle` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'none', - `alternateLibraryCardStyle` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'none', - `allowUsernameUpdates` tinyint(1) DEFAULT '0', - `edsSettingsId` int(11) DEFAULT '-1', - `useAllCapsWhenUpdatingProfile` tinyint(1) DEFAULT '0', - `bypassReviewQueueWhenUpdatingProfile` tinyint(1) DEFAULT '0', - `availableHoldDelay` int(11) DEFAULT '0', - `enableWebBuilder` tinyint(1) DEFAULT '0', - `requireNumericPhoneNumbersWhenUpdatingProfile` tinyint(1) DEFAULT '0', - `axis360ScopeId` int(11) DEFAULT '-1', - `allowPatronPhoneNumberUpdates` tinyint(1) DEFAULT '1', - `validSelfRegistrationZipCodes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `loginNotes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `allowRememberPickupLocation` tinyint(1) DEFAULT '1', - `allowHomeLibraryUpdates` tinyint(1) DEFAULT '1', - `msbUrl` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showOpacNotes` tinyint(1) DEFAULT '0', - `showBorrowerMessages` tinyint(1) DEFAULT '0', - `showDebarmentNotes` tinyint(1) DEFAULT '0', - `symphonyPaymentType` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `symphonyPaymentPolicy` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `allowDeletingILSRequests` tinyint(1) DEFAULT '1', - `tiktokLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `workstationId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `compriseSettingId` int(11) DEFAULT '-1', - `proPaySettingId` int(11) DEFAULT '-1', - `payPalSettingId` int(11) DEFAULT '-1', - `worldPaySettingId` int(11) DEFAULT '-1', - `createSearchInterface` tinyint(1) DEFAULT '1', - `maxDaysToFreeze` int(11) DEFAULT '365', - `displayItemBarcode` tinyint(1) DEFAULT '0', - `treatBibOrItemHoldsAs` tinyint(1) DEFAULT '1', - `showCardExpirationDate` tinyint(1) DEFAULT '1', - `showInSelectInterface` tinyint(1) DEFAULT '1', - `isConsortialCatalog` tinyint(1) DEFAULT '0', - `showMessagingSettings` tinyint(1) DEFAULT '1', - `contactEmail` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `displayMaterialsRequestToPublic` tinyint(1) DEFAULT '1', - `donationSettingId` int(11) DEFAULT '-1', - `courseReserveLibrariesToInclude` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `curbsidePickupSettingId` int(11) DEFAULT '-1', - `twoFactorAuthSettingId` int(11) DEFAULT '-1', - `defaultRememberMe` tinyint(1) DEFAULT '0', - `showLogMeOutAfterPlacingHolds` tinyint(1) DEFAULT '1', - `systemHoldNote` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `systemHoldNoteMasquerade` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `enableReadingHistory` tinyint(1) DEFAULT '1', - `showCitationStyleGuides` tinyint(1) DEFAULT '1', - `minPinLength` int(11) DEFAULT '4', - `maxPinLength` int(11) DEFAULT '6', - `onlyDigitsAllowedInPin` int(11) DEFAULT '1', - `enableSavedSearches` tinyint(1) DEFAULT '1', - `holdPlacedAt` tinyint(1) DEFAULT '0', - `allowLoginToPatronsOfThisLibraryOnly` tinyint(1) DEFAULT '0', - `messageForPatronsOfOtherLibraries` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `allowNameUpdates` tinyint(1) DEFAULT '1', - `allowDateOfBirthUpdates` tinyint(1) DEFAULT '1', - `xpressPaySettingId` int(11) DEFAULT '-1', - `preventLogin` tinyint(1) DEFAULT '0', - `preventLoginMessage` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `footerText` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `ebscohostSettingId` int(11) DEFAULT '-1', - `ebscohostSearchSettingId` int(11) DEFAULT '-1', - `displayHoldsOnCheckout` tinyint(1) DEFAULT '0', - `lidaNotificationSettingId` int(11) DEFAULT '-1', - `lidaQuickSearchId` int(11) DEFAULT '-1', - `aciSpeedpaySettingId` int(11) DEFAULT '-1', - `ssoName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoXmlUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoUniqueAttribute` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoMetadataFilename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoIdAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoUsernameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoFirstnameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoLastnameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoEmailAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoDisplayNameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoPhoneAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoPatronTypeAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoPatronTypeFallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoAddressAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoCityAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoLibraryIdAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoLibraryIdFallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoCategoryIdAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoCategoryIdFallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoSettingId` tinyint(4) DEFAULT '-1', - `showUserCirculationModules` tinyint(1) DEFAULT '1', - `showUserPreferences` tinyint(1) DEFAULT '1', - `showUserContactInformation` tinyint(1) DEFAULT '1', - `ssoEntityId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showVolumesWithLocalCopiesFirst` tinyint(4) DEFAULT '0', - `enableListDescriptions` tinyint(1) DEFAULT '1', - `allowableListNames` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `invoiceCloudSettingId` int(11) DEFAULT '-1', - `holdRange` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'SYSTEM', - `optInToReadingHistoryUpdatesILS` tinyint(1) DEFAULT '0', - `optOutOfReadingHistoryUpdatesILS` tinyint(1) DEFAULT '1', - `setUsePreferredNameInIlsOnUpdate` tinyint(1) DEFAULT '1', - `accountProfileId` int(11) DEFAULT '-1', - `lidaGeneralSettingId` int(11) DEFAULT '-1', - `materialsRequestSendStaffEmailOnNew` tinyint(1) DEFAULT '0', - `materialsRequestSendStaffEmailOnAssign` tinyint(1) DEFAULT '0', - `materialsRequestNewEmail` varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `novelistSettingId` int(11) DEFAULT '-1', - `deluxeCertifiedPaymentsSettingId` int(11) DEFAULT '-1', - `paypalPayflowSettingId` int(11) DEFAULT '-1', - `thirdPartyRegistrationLocation` int(11) DEFAULT '-1', - `thirdPartyPTypeAddressValidated` int(11) DEFAULT '-1', - `thirdPartyPTypeAddressNotValidated` int(11) DEFAULT '-1', - `squareSettingId` int(11) DEFAULT '-1', - `twilioSettingId` int(11) DEFAULT '-1', - `eCommerceFee` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0', - `eCommerceTerms` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `cookieStorageConsent` tinyint(1) DEFAULT '0', - `cookiePolicyHTML` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `openArchivesFacetSettingId` int(11) DEFAULT '1', - `websiteIndexingFacetSettingId` int(11) DEFAULT '1', - `enableForgotBarcode` tinyint(1) DEFAULT '0', - `allowChangingPickupLocationForAvailableHolds` tinyint(1) DEFAULT '0', - `allowCancellingAvailableHolds` tinyint(1) DEFAULT '1', - `alwaysDisplayRenewalCount` tinyint(1) DEFAULT '0', - `selfRegistrationFormId` int(11) DEFAULT '-1', - `ILLSystem` tinyint(1) DEFAULT '2', - `palaceProjectScopeId` int(11) DEFAULT '-1', - `languageAndDisplayInHeader` int(11) DEFAULT '1', - `enableCardRenewal` tinyint(1) DEFAULT '0', - `showCardRenewalWhenExpirationIsClose` tinyint(1) DEFAULT '1', - `cardRenewalUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `allowCancellingInTransitHolds` tinyint(1) DEFAULT '1', - `stripeSettingId` int(11) DEFAULT '-1', - `summonSettingsId` int(11) DEFAULT '-1', - `summonApiId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `summonApiPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showPaymentHistory` tinyint(4) DEFAULT '0', - `deletePaymentHistoryOlderThan` int(11) DEFAULT '0', - `showHoldPosition` tinyint(1) DEFAULT '1', - `minSelfRegAge` int(2) DEFAULT '0', - `institutionCode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `showAvailableCoversInSummon` tinyint(1) DEFAULT '0', - `allowMasqueradeWithUsername` tinyint(4) NOT NULL DEFAULT '1', - `usernameField` varchar(1) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'w', - `allowPatronWorkPhoneNumberUpdates` tinyint(1) DEFAULT '1', - `ncrSettingId` int(11) DEFAULT '-1', + `showConvertListsFromClassic` tinyint(1) DEFAULT 0, + `enableForgotPasswordLink` tinyint(1) DEFAULT 1, + `selfRegistrationLocationRestrictions` int(11) DEFAULT 2, + `baseUrl` varchar(75) DEFAULT NULL, + `generateSitemap` tinyint(1) DEFAULT 1, + `selfRegistrationUrl` varchar(255) DEFAULT NULL, + `showWhileYouWait` tinyint(1) DEFAULT 1, + `useAllCapsWhenSubmittingSelfRegistration` tinyint(1) DEFAULT 0, + `validSelfRegistrationStates` varchar(255) DEFAULT '', + `selfRegistrationPasswordNotes` varchar(255) DEFAULT '', + `showAlternateLibraryCard` tinyint(4) DEFAULT 0, + `showAlternateLibraryCardPassword` tinyint(4) DEFAULT 0, + `alternateLibraryCardLabel` varchar(50) DEFAULT '', + `alternateLibraryCardPasswordLabel` varchar(50) DEFAULT '', + `libraryCardBarcodeStyle` varchar(20) DEFAULT 'none', + `alternateLibraryCardStyle` varchar(20) DEFAULT 'none', + `allowUsernameUpdates` tinyint(1) DEFAULT 0, + `edsSettingsId` int(11) DEFAULT -1, + `useAllCapsWhenUpdatingProfile` tinyint(1) DEFAULT 0, + `bypassReviewQueueWhenUpdatingProfile` tinyint(1) DEFAULT 0, + `availableHoldDelay` int(11) DEFAULT 0, + `enableWebBuilder` tinyint(1) DEFAULT 0, + `requireNumericPhoneNumbersWhenUpdatingProfile` tinyint(1) DEFAULT 0, + `axis360ScopeId` int(11) DEFAULT -1, + `allowPatronPhoneNumberUpdates` tinyint(1) DEFAULT 1, + `validSelfRegistrationZipCodes` varchar(255) DEFAULT '', + `loginNotes` longtext DEFAULT NULL, + `allowRememberPickupLocation` tinyint(1) DEFAULT 1, + `allowHomeLibraryUpdates` tinyint(1) DEFAULT 1, + `msbUrl` varchar(80) DEFAULT NULL, + `showOpacNotes` tinyint(1) DEFAULT 0, + `showBorrowerMessages` tinyint(1) DEFAULT 0, + `showDebarmentNotes` tinyint(1) DEFAULT 0, + `symphonyPaymentType` varchar(12) DEFAULT NULL, + `symphonyPaymentPolicy` varchar(10) DEFAULT NULL, + `allowDeletingILSRequests` tinyint(1) DEFAULT 1, + `tiktokLink` varchar(255) DEFAULT '', + `workstationId` varchar(10) DEFAULT '', + `compriseSettingId` int(11) DEFAULT -1, + `proPaySettingId` int(11) DEFAULT -1, + `payPalSettingId` int(11) DEFAULT -1, + `worldPaySettingId` int(11) DEFAULT -1, + `createSearchInterface` tinyint(1) DEFAULT 1, + `maxDaysToFreeze` int(11) DEFAULT 365, + `displayItemBarcode` tinyint(1) DEFAULT 0, + `treatBibOrItemHoldsAs` tinyint(1) DEFAULT 1, + `showCardExpirationDate` tinyint(1) DEFAULT 1, + `showInSelectInterface` tinyint(1) DEFAULT 1, + `isConsortialCatalog` tinyint(1) DEFAULT 0, + `showMessagingSettings` tinyint(1) DEFAULT 1, + `contactEmail` varchar(250) DEFAULT NULL, + `displayMaterialsRequestToPublic` tinyint(1) DEFAULT 1, + `donationSettingId` int(11) DEFAULT -1, + `courseReserveLibrariesToInclude` varchar(50) DEFAULT NULL, + `curbsidePickupSettingId` int(11) DEFAULT -1, + `twoFactorAuthSettingId` int(11) DEFAULT -1, + `defaultRememberMe` tinyint(1) DEFAULT 0, + `showLogMeOutAfterPlacingHolds` tinyint(1) DEFAULT 1, + `systemHoldNote` varchar(50) DEFAULT '', + `systemHoldNoteMasquerade` varchar(50) DEFAULT '', + `enableReadingHistory` tinyint(1) DEFAULT 1, + `showCitationStyleGuides` tinyint(1) DEFAULT 1, + `minPinLength` int(11) DEFAULT 4, + `maxPinLength` int(11) DEFAULT 6, + `onlyDigitsAllowedInPin` int(11) DEFAULT 1, + `enableSavedSearches` tinyint(1) DEFAULT 1, + `holdPlacedAt` tinyint(1) DEFAULT 0, + `allowLoginToPatronsOfThisLibraryOnly` tinyint(1) DEFAULT 0, + `messageForPatronsOfOtherLibraries` text DEFAULT NULL, + `allowNameUpdates` tinyint(1) DEFAULT 1, + `allowDateOfBirthUpdates` tinyint(1) DEFAULT 1, + `xpressPaySettingId` int(11) DEFAULT -1, + `preventLogin` tinyint(1) DEFAULT 0, + `preventLoginMessage` text DEFAULT NULL, + `footerText` mediumtext DEFAULT NULL, + `ebscohostSettingId` int(11) DEFAULT -1, + `ebscohostSearchSettingId` int(11) DEFAULT -1, + `displayHoldsOnCheckout` tinyint(1) DEFAULT 0, + `lidaNotificationSettingId` int(11) DEFAULT -1, + `lidaQuickSearchId` int(11) DEFAULT -1, + `aciSpeedpaySettingId` int(11) DEFAULT -1, + `ssoName` varchar(255) DEFAULT NULL, + `ssoXmlUrl` varchar(255) DEFAULT NULL, + `ssoUniqueAttribute` varchar(255) DEFAULT NULL, + `ssoMetadataFilename` varchar(255) DEFAULT NULL, + `ssoIdAttr` varchar(255) DEFAULT NULL, + `ssoUsernameAttr` varchar(255) DEFAULT NULL, + `ssoFirstnameAttr` varchar(255) DEFAULT NULL, + `ssoLastnameAttr` varchar(255) DEFAULT NULL, + `ssoEmailAttr` varchar(255) DEFAULT NULL, + `ssoDisplayNameAttr` varchar(255) DEFAULT NULL, + `ssoPhoneAttr` varchar(255) DEFAULT NULL, + `ssoPatronTypeAttr` varchar(255) DEFAULT NULL, + `ssoPatronTypeFallback` varchar(255) DEFAULT NULL, + `ssoAddressAttr` varchar(255) DEFAULT NULL, + `ssoCityAttr` varchar(255) DEFAULT NULL, + `ssoLibraryIdAttr` varchar(255) DEFAULT NULL, + `ssoLibraryIdFallback` varchar(255) DEFAULT NULL, + `ssoCategoryIdAttr` varchar(255) DEFAULT NULL, + `ssoCategoryIdFallback` varchar(255) DEFAULT NULL, + `ssoSettingId` tinyint(4) DEFAULT -1, + `showUserCirculationModules` tinyint(1) DEFAULT 1, + `showUserPreferences` tinyint(1) DEFAULT 1, + `showUserContactInformation` tinyint(1) DEFAULT 1, + `ssoEntityId` varchar(255) DEFAULT NULL, + `showVolumesWithLocalCopiesFirst` tinyint(4) DEFAULT 0, + `enableListDescriptions` tinyint(1) DEFAULT 1, + `allowableListNames` varchar(500) DEFAULT '', + `invoiceCloudSettingId` int(11) DEFAULT -1, + `holdRange` varchar(20) DEFAULT 'SYSTEM', + `optInToReadingHistoryUpdatesILS` tinyint(1) DEFAULT 0, + `optOutOfReadingHistoryUpdatesILS` tinyint(1) DEFAULT 1, + `setUsePreferredNameInIlsOnUpdate` tinyint(1) DEFAULT 1, + `accountProfileId` int(11) DEFAULT -1, + `lidaGeneralSettingId` int(11) DEFAULT -1, + `materialsRequestSendStaffEmailOnNew` tinyint(1) DEFAULT 0, + `materialsRequestSendStaffEmailOnAssign` tinyint(1) DEFAULT 0, + `materialsRequestNewEmail` varchar(125) DEFAULT NULL, + `novelistSettingId` int(11) DEFAULT -1, + `deluxeCertifiedPaymentsSettingId` int(11) DEFAULT -1, + `paypalPayflowSettingId` int(11) DEFAULT -1, + `thirdPartyRegistrationLocation` int(11) DEFAULT -1, + `thirdPartyPTypeAddressValidated` int(11) DEFAULT -1, + `thirdPartyPTypeAddressNotValidated` int(11) DEFAULT -1, + `squareSettingId` int(11) DEFAULT -1, + `twilioSettingId` int(11) DEFAULT -1, + `eCommerceFee` varchar(11) DEFAULT '0', + `eCommerceTerms` mediumtext DEFAULT NULL, + `cookieStorageConsent` tinyint(1) DEFAULT 0, + `cookiePolicyHTML` text DEFAULT NULL, + `openArchivesFacetSettingId` int(11) DEFAULT 1, + `websiteIndexingFacetSettingId` int(11) DEFAULT 1, + `enableForgotBarcode` tinyint(1) DEFAULT 0, + `allowChangingPickupLocationForAvailableHolds` tinyint(1) DEFAULT 0, + `allowCancellingAvailableHolds` tinyint(1) DEFAULT 1, + `alwaysDisplayRenewalCount` tinyint(1) DEFAULT 0, + `selfRegistrationFormId` int(11) DEFAULT -1, + `ILLSystem` tinyint(1) DEFAULT 2, + `palaceProjectScopeId` int(11) DEFAULT -1, + `languageAndDisplayInHeader` int(11) DEFAULT 1, + `enableCardRenewal` tinyint(1) DEFAULT 0, + `showCardRenewalWhenExpirationIsClose` tinyint(1) DEFAULT 1, + `cardRenewalUrl` varchar(255) DEFAULT NULL, + `allowCancellingInTransitHolds` tinyint(1) DEFAULT 1, + `stripeSettingId` int(11) DEFAULT -1, + `summonSettingsId` int(11) DEFAULT -1, + `summonApiId` varchar(50) DEFAULT NULL, + `summonApiPassword` varchar(50) DEFAULT NULL, + `showPaymentHistory` tinyint(4) DEFAULT 0, + `deletePaymentHistoryOlderThan` int(11) DEFAULT 0, + `showHoldPosition` tinyint(1) DEFAULT 1, + `minSelfRegAge` int(2) DEFAULT 0, + `institutionCode` varchar(100) DEFAULT '', + `showAvailableCoversInSummon` tinyint(1) DEFAULT 0, + `allowMasqueradeWithUsername` tinyint(4) NOT NULL DEFAULT 1, + `usernameField` varchar(1) NOT NULL DEFAULT 'w', + `allowPatronWorkPhoneNumberUpdates` tinyint(1) DEFAULT 1, + `ncrSettingId` int(11) DEFAULT -1, PRIMARY KEY (`libraryId`), UNIQUE KEY `subdomain` (`subdomain`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2753,10 +2753,10 @@ DROP TABLE IF EXISTS library_combined_results_section; CREATE TABLE `library_combined_results_section` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, - `displayName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `source` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `numberOfResultsToShow` int(11) NOT NULL DEFAULT '5', - `weight` int(11) NOT NULL DEFAULT '0', + `displayName` varchar(255) DEFAULT NULL, + `source` varchar(45) DEFAULT NULL, + `numberOfResultsToShow` int(11) NOT NULL DEFAULT 5, + `weight` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `LibraryIdIndex` (`libraryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2771,10 +2771,10 @@ CREATE TABLE `library_email_template` ( DROP TABLE IF EXISTS library_events_setting; CREATE TABLE `library_events_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `settingSource` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `settingSource` varchar(25) NOT NULL, `settingId` int(11) NOT NULL, `libraryId` int(11) NOT NULL, - `eventsFacetSettingsId` int(11) DEFAULT '1', + `eventsFacetSettingsId` int(11) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `settingSource` (`settingSource`,`settingId`,`libraryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2782,7 +2782,7 @@ DROP TABLE IF EXISTS library_ill_item_type; CREATE TABLE `library_ill_item_type` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, - `code` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `code` varchar(75) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS library_link_language; @@ -2797,19 +2797,19 @@ DROP TABLE IF EXISTS library_links; CREATE TABLE `library_links` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, - `category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `linkText` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `htmlContents` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `showExpanded` tinyint(4) DEFAULT '0', - `openInNewTab` tinyint(4) DEFAULT '1', - `showToLoggedInUsersOnly` tinyint(4) DEFAULT '0', - `showInTopMenu` tinyint(4) DEFAULT '0', - `iconName` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `alwaysShowIconInTopMenu` tinyint(4) DEFAULT '0', - `published` tinyint(4) DEFAULT '1', - `showLinkOn` tinyint(1) DEFAULT '0', + `category` varchar(100) NOT NULL, + `linkText` varchar(100) NOT NULL, + `url` varchar(255) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `htmlContents` longtext DEFAULT NULL, + `showExpanded` tinyint(4) DEFAULT 0, + `openInNewTab` tinyint(4) DEFAULT 1, + `showToLoggedInUsersOnly` tinyint(4) DEFAULT 0, + `showInTopMenu` tinyint(4) DEFAULT 0, + `iconName` varchar(30) DEFAULT '', + `alwaysShowIconInTopMenu` tinyint(4) DEFAULT 0, + `published` tinyint(4) DEFAULT 1, + `showLinkOn` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `libraryId` (`libraryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2834,30 +2834,30 @@ CREATE TABLE `library_records_to_include` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, `indexingProfileId` int(11) NOT NULL, - `location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `subLocation` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `includeHoldableOnly` tinyint(4) NOT NULL DEFAULT '1', - `includeItemsOnOrder` tinyint(1) NOT NULL DEFAULT '0', - `includeEContent` tinyint(1) NOT NULL DEFAULT '0', - `weight` int(11) NOT NULL DEFAULT '0', - `iType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `audience` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `marcTagToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `marcValueToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `includeExcludeMatches` tinyint(4) DEFAULT '1', - `urlToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `urlReplacement` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `locationsToExclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `subLocationsToExclude` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `markRecordsAsOwned` tinyint(4) DEFAULT '0', - `iTypesToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `audiencesToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `formatsToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `shelfLocation` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `shelfLocationsToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `collectionCode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `collectionCodesToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', + `location` varchar(100) NOT NULL, + `subLocation` varchar(150) NOT NULL DEFAULT '', + `includeHoldableOnly` tinyint(4) NOT NULL DEFAULT 1, + `includeItemsOnOrder` tinyint(1) NOT NULL DEFAULT 0, + `includeEContent` tinyint(1) NOT NULL DEFAULT 0, + `weight` int(11) NOT NULL DEFAULT 0, + `iType` varchar(100) DEFAULT NULL, + `audience` varchar(100) DEFAULT NULL, + `format` varchar(100) DEFAULT NULL, + `marcTagToMatch` varchar(100) DEFAULT NULL, + `marcValueToMatch` varchar(100) DEFAULT NULL, + `includeExcludeMatches` tinyint(4) DEFAULT 1, + `urlToMatch` varchar(100) DEFAULT NULL, + `urlReplacement` varchar(255) DEFAULT NULL, + `locationsToExclude` text DEFAULT NULL, + `subLocationsToExclude` varchar(400) NOT NULL DEFAULT '', + `markRecordsAsOwned` tinyint(4) DEFAULT 0, + `iTypesToExclude` varchar(100) NOT NULL DEFAULT '', + `audiencesToExclude` varchar(100) NOT NULL DEFAULT '', + `formatsToExclude` varchar(100) NOT NULL DEFAULT '', + `shelfLocation` varchar(100) NOT NULL DEFAULT '', + `shelfLocationsToExclude` varchar(100) NOT NULL DEFAULT '', + `collectionCode` varchar(100) NOT NULL DEFAULT '', + `collectionCodesToExclude` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `libraryId` (`libraryId`,`indexingProfileId`), KEY `indexingProfileId` (`indexingProfileId`) @@ -2865,13 +2865,13 @@ CREATE TABLE `library_records_to_include` ( DROP TABLE IF EXISTS library_search_source; CREATE TABLE `library_search_source` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `libraryId` int(11) NOT NULL DEFAULT '-1', - `label` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `searchWhat` enum('catalog','genealogy','overdrive','worldcat','prospector','goldrush','title_browse','author_browse','subject_browse','tags') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `defaultFilter` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `catalogScoping` enum('unscoped','library','location') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'unscoped', + `libraryId` int(11) NOT NULL DEFAULT -1, + `label` varchar(50) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `searchWhat` enum('catalog','genealogy','overdrive','worldcat','prospector','goldrush','title_browse','author_browse','subject_browse','tags') DEFAULT NULL, + `defaultFilter` mediumtext DEFAULT NULL, + `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating') DEFAULT NULL, + `catalogScoping` enum('unscoped','library','location') DEFAULT 'unscoped', PRIMARY KEY (`id`), KEY `libraryId` (`libraryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2888,7 +2888,7 @@ CREATE TABLE `library_themes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, `themeId` int(11) NOT NULL, - `weight` int(11) DEFAULT '0', + `weight` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `libraryToTheme` (`libraryId`,`themeId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -2924,7 +2924,7 @@ CREATE TABLE `library_web_builder_quick_poll` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, `pollId` int(11) NOT NULL, - `label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `label` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `libraryId` (`libraryId`,`pollId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -2951,134 +2951,134 @@ CREATE TABLE `list_indexing_log` ( `startTime` int(11) NOT NULL, `endTime` int(11) DEFAULT NULL, `lastUpdate` int(11) DEFAULT NULL, - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numLists` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL, + `numLists` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS list_indexing_settings; CREATE TABLE `list_indexing_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `runFullUpdate` tinyint(1) DEFAULT '1', - `lastUpdateOfChangedLists` int(11) DEFAULT '0', - `lastUpdateOfAllLists` int(11) DEFAULT '0', + `runFullUpdate` tinyint(1) DEFAULT 1, + `lastUpdateOfChangedLists` int(11) DEFAULT 0, + `lastUpdateOfAllLists` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS lm_library_calendar_events; CREATE TABLE `lm_library_calendar_events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `settingsId` int(11) NOT NULL, - `externalId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `externalId` varchar(36) NOT NULL, + `title` varchar(255) NOT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `deleted` tinyint(4) DEFAULT '0', + `rawResponse` longtext DEFAULT NULL, + `deleted` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `settingsId` (`settingsId`,`externalId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS lm_library_calendar_settings; CREATE TABLE `lm_library_calendar_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `clientId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientSecret` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `username` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'lc_feeds_staffadmin', - `password` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `eventsInLists` tinyint(1) DEFAULT '1', - `bypassAspenEventPages` tinyint(1) DEFAULT '0', - `registrationModalBody` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numberOfDaysToIndex` int(11) DEFAULT '365', - `registrationModalBodyApp` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) NOT NULL, + `baseUrl` varchar(255) NOT NULL, + `clientId` varchar(36) DEFAULT NULL, + `clientSecret` varchar(36) DEFAULT NULL, + `username` varchar(36) DEFAULT 'lc_feeds_staffadmin', + `password` varchar(36) DEFAULT NULL, + `eventsInLists` tinyint(1) DEFAULT 1, + `bypassAspenEventPages` tinyint(1) DEFAULT 0, + `registrationModalBody` mediumtext DEFAULT NULL, + `numberOfDaysToIndex` int(11) DEFAULT 365, + `registrationModalBodyApp` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS location; CREATE TABLE `location` ( `locationId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'A unique Id for the branch or location within vuFind', - `code` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `displayName` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The full name of the location for display to the user', + `code` varchar(75) DEFAULT NULL, + `displayName` varchar(60) NOT NULL COMMENT 'The full name of the location for display to the user', `libraryId` int(11) NOT NULL COMMENT 'A link to the library which the location belongs to', - `validHoldPickupBranch` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'Determines if the location can be used as a pickup location if it is not the patrons home location or the location they are in.', + `validHoldPickupBranch` tinyint(4) NOT NULL DEFAULT 1 COMMENT 'Determines if the location can be used as a pickup location if it is not the patrons home location or the location they are in.', `nearbyLocation1` int(11) DEFAULT NULL COMMENT 'A secondary location which is nearby and could be used for pickup of materials.', `nearbyLocation2` int(11) DEFAULT NULL COMMENT 'A tertiary location which is nearby and could be used for pickup of materials.', - `scope` smallint(6) DEFAULT '0', - `useScope` tinyint(4) DEFAULT '0', - `facetFile` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default' COMMENT 'The name of the facet file which should be used while searching use default to not override the file', - `showHoldButton` tinyint(4) DEFAULT '1', - `isMainBranch` tinyint(1) DEFAULT '0', - `repeatSearchOption` enum('none','librarySystem','marmot','all') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'all' COMMENT 'Where to allow repeating search. Valid options are: none, librarySystem, marmot, all', - `facetLabel` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `repeatInInnReach` tinyint(4) DEFAULT '0', - `repeatInWorldCat` tinyint(4) DEFAULT '0', - `systemsToRepeatIn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `homeLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default', - `ptypesToAllowRenewals` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '*', - `automaticTimeoutLength` int(11) DEFAULT '90', - `automaticTimeoutLengthLoggedOut` int(11) DEFAULT '450', - `restrictSearchByLocation` tinyint(1) DEFAULT '0', - `suppressHoldings` tinyint(1) DEFAULT '0', - `additionalCss` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `repeatInOnlineCollection` int(11) DEFAULT '1', - `econtentLocationsToInclude` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showInLocationsAndHoursList` int(11) DEFAULT '1', - `showShareOnExternalSites` int(11) DEFAULT '1', - `showEmailThis` int(11) DEFAULT '1', - `showFavorites` int(11) DEFAULT '1', - `address` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `phone` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `showDisplayNameInHeader` tinyint(4) DEFAULT '0', - `headerText` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `subLocation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publicListsToInclude` tinyint(1) DEFAULT '6', - `includeAllLibraryBranchesInFacets` tinyint(4) DEFAULT '1', - `additionalLocationsToShowAvailabilityFor` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `subdomain` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `includeLibraryRecordsToInclude` tinyint(1) DEFAULT '0', - `useLibraryCombinedResultsSettings` tinyint(1) DEFAULT '1', - `enableCombinedResults` tinyint(1) DEFAULT '0', - `combinedResultsLabel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Combined Results', - `defaultToCombinedResults` tinyint(1) DEFAULT '0', - `footerTemplate` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'default', - `homePageWidgetId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `theme` int(11) DEFAULT '1', - `hooplaScopeId` int(11) DEFAULT '-1', - `overDriveScopeId` int(11) DEFAULT '-2', - `groupedWorkDisplaySettingId` int(11) DEFAULT '-1', - `browseCategoryGroupId` int(11) NOT NULL DEFAULT '-1', - `historicCode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `axis360ScopeId` int(11) DEFAULT '-1', - `tty` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `createSearchInterface` tinyint(1) DEFAULT '1', - `showInSelectInterface` tinyint(1) DEFAULT '0', - `enableAppAccess` tinyint(1) DEFAULT '0', - `latitude` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0', - `longitude` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0', - `unit` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `appReleaseChannel` tinyint(1) DEFAULT '0', - `contactEmail` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showOnDonationsPage` tinyint(1) DEFAULT '1', - `curbsidePickupInstructions` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ebscohostSettingId` int(11) DEFAULT '-2', - `ebscohostSearchSettingId` int(11) DEFAULT '-2', - `lidaLocationSettingId` int(11) DEFAULT '-1', - `vdxLocation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `scope` smallint(6) DEFAULT 0, + `useScope` tinyint(4) DEFAULT 0, + `facetFile` varchar(15) NOT NULL DEFAULT 'default' COMMENT 'The name of the facet file which should be used while searching use default to not override the file', + `showHoldButton` tinyint(4) DEFAULT 1, + `isMainBranch` tinyint(1) DEFAULT 0, + `repeatSearchOption` enum('none','librarySystem','marmot','all') NOT NULL DEFAULT 'all' COMMENT 'Where to allow repeating search. Valid options are: none, librarySystem, marmot, all', + `facetLabel` varchar(75) DEFAULT '', + `repeatInInnReach` tinyint(4) DEFAULT 0, + `repeatInWorldCat` tinyint(4) DEFAULT 0, + `systemsToRepeatIn` varchar(255) DEFAULT '', + `homeLink` varchar(255) NOT NULL DEFAULT 'default', + `ptypesToAllowRenewals` varchar(128) NOT NULL DEFAULT '*', + `automaticTimeoutLength` int(11) DEFAULT 90, + `automaticTimeoutLengthLoggedOut` int(11) DEFAULT 450, + `restrictSearchByLocation` tinyint(1) DEFAULT 0, + `suppressHoldings` tinyint(1) DEFAULT 0, + `additionalCss` longtext DEFAULT NULL, + `repeatInOnlineCollection` int(11) DEFAULT 1, + `econtentLocationsToInclude` varchar(255) DEFAULT NULL, + `showInLocationsAndHoursList` int(11) DEFAULT 1, + `showShareOnExternalSites` int(11) DEFAULT 1, + `showEmailThis` int(11) DEFAULT 1, + `showFavorites` int(11) DEFAULT 1, + `address` longtext DEFAULT NULL, + `phone` varchar(25) DEFAULT '', + `showDisplayNameInHeader` tinyint(4) DEFAULT 0, + `headerText` longtext DEFAULT NULL, + `subLocation` varchar(50) DEFAULT NULL, + `publicListsToInclude` tinyint(1) DEFAULT 6, + `includeAllLibraryBranchesInFacets` tinyint(4) DEFAULT 1, + `additionalLocationsToShowAvailabilityFor` varchar(100) NOT NULL DEFAULT '', + `subdomain` varchar(25) DEFAULT '', + `includeLibraryRecordsToInclude` tinyint(1) DEFAULT 0, + `useLibraryCombinedResultsSettings` tinyint(1) DEFAULT 1, + `enableCombinedResults` tinyint(1) DEFAULT 0, + `combinedResultsLabel` varchar(255) DEFAULT 'Combined Results', + `defaultToCombinedResults` tinyint(1) DEFAULT 0, + `footerTemplate` varchar(40) NOT NULL DEFAULT 'default', + `homePageWidgetId` varchar(50) DEFAULT '', + `theme` int(11) DEFAULT 1, + `hooplaScopeId` int(11) DEFAULT -1, + `overDriveScopeId` int(11) DEFAULT -2, + `groupedWorkDisplaySettingId` int(11) DEFAULT -1, + `browseCategoryGroupId` int(11) NOT NULL DEFAULT -1, + `historicCode` varchar(20) DEFAULT '', + `axis360ScopeId` int(11) DEFAULT -1, + `tty` varchar(25) DEFAULT NULL, + `description` longtext DEFAULT NULL, + `createSearchInterface` tinyint(1) DEFAULT 1, + `showInSelectInterface` tinyint(1) DEFAULT 0, + `enableAppAccess` tinyint(1) DEFAULT 0, + `latitude` varchar(75) DEFAULT '0', + `longitude` varchar(75) DEFAULT '0', + `unit` varchar(3) DEFAULT NULL, + `appReleaseChannel` tinyint(1) DEFAULT 0, + `contactEmail` varchar(250) DEFAULT NULL, + `showOnDonationsPage` tinyint(1) DEFAULT 1, + `curbsidePickupInstructions` varchar(255) DEFAULT NULL, + `ebscohostSettingId` int(11) DEFAULT -2, + `ebscohostSearchSettingId` int(11) DEFAULT -2, + `lidaLocationSettingId` int(11) DEFAULT -1, + `vdxLocation` varchar(50) DEFAULT NULL, `vdxFormId` int(11) DEFAULT NULL, - `validSelfRegistrationBranch` tinyint(4) NOT NULL DEFAULT '1', - `useLibraryThemes` tinyint(1) DEFAULT '1', - `lidaSelfCheckSettingId` int(11) DEFAULT '-1', - `secondaryPhoneNumber` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `openArchivesFacetSettingId` int(11) DEFAULT '1', - `websiteIndexingFacetSettingId` int(11) DEFAULT '1', - `palaceProjectScopeId` int(11) DEFAULT '-1', - `languageAndDisplayInHeader` int(11) DEFAULT '1', - `locationImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `validSelfRegistrationBranch` tinyint(4) NOT NULL DEFAULT 1, + `useLibraryThemes` tinyint(1) DEFAULT 1, + `lidaSelfCheckSettingId` int(11) DEFAULT -1, + `secondaryPhoneNumber` varchar(25) DEFAULT '', + `openArchivesFacetSettingId` int(11) DEFAULT 1, + `websiteIndexingFacetSettingId` int(11) DEFAULT 1, + `palaceProjectScopeId` int(11) DEFAULT -1, + `languageAndDisplayInHeader` int(11) DEFAULT 1, + `locationImage` varchar(100) DEFAULT NULL, PRIMARY KEY (`locationId`), UNIQUE KEY `code` (`code`,`subLocation`), KEY `ValidHoldPickupBranch` (`validHoldPickupBranch`), @@ -3097,10 +3097,10 @@ DROP TABLE IF EXISTS location_combined_results_section; CREATE TABLE `location_combined_results_section` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `locationId` int(11) NOT NULL, - `displayName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `source` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `numberOfResultsToShow` int(11) NOT NULL DEFAULT '5', - `weight` int(11) NOT NULL DEFAULT '0', + `displayName` varchar(255) DEFAULT NULL, + `source` varchar(45) DEFAULT NULL, + `numberOfResultsToShow` int(11) NOT NULL DEFAULT 5, + `weight` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `LocationIdIndex` (`locationId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3109,19 +3109,19 @@ CREATE TABLE `location_hours` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of hours entry', `locationId` int(11) NOT NULL COMMENT 'The location id', `day` int(11) NOT NULL COMMENT 'Day of the week 0 to 7 (Sun to Monday)', - `closed` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether or not the library is closed on this day', - `open` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Open hour (24hr format) HH:MM', - `close` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Close hour (24hr format) HH:MM', - `notes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `closed` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Whether or not the library is closed on this day', + `open` varchar(10) NOT NULL COMMENT 'Open hour (24hr format) HH:MM', + `close` varchar(10) NOT NULL COMMENT 'Close hour (24hr format) HH:MM', + `notes` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `location` (`locationId`,`day`,`open`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS location_more_details; CREATE TABLE `location_more_details` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `locationId` int(11) NOT NULL DEFAULT '-1', - `weight` int(11) NOT NULL DEFAULT '0', - `source` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `locationId` int(11) NOT NULL DEFAULT -1, + `weight` int(11) NOT NULL DEFAULT 0, + `source` varchar(25) NOT NULL, `collapseByDefault` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `locationId` (`locationId`) @@ -3139,30 +3139,30 @@ CREATE TABLE `location_records_to_include` ( `id` int(11) NOT NULL AUTO_INCREMENT, `locationId` int(11) NOT NULL, `indexingProfileId` int(11) NOT NULL, - `location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `subLocation` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `includeHoldableOnly` tinyint(4) NOT NULL DEFAULT '1', - `includeItemsOnOrder` tinyint(1) NOT NULL DEFAULT '0', - `includeEContent` tinyint(1) NOT NULL DEFAULT '0', - `weight` int(11) NOT NULL DEFAULT '0', - `iType` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `audience` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `marcTagToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `marcValueToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `includeExcludeMatches` tinyint(4) DEFAULT '1', - `urlToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `urlReplacement` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `locationsToExclude` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `subLocationsToExclude` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `markRecordsAsOwned` tinyint(4) DEFAULT '0', - `iTypesToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `audiencesToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `formatsToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `shelfLocation` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `shelfLocationsToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `collectionCode` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `collectionCodesToExclude` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', + `location` varchar(100) NOT NULL, + `subLocation` varchar(150) NOT NULL DEFAULT '', + `includeHoldableOnly` tinyint(4) NOT NULL DEFAULT 1, + `includeItemsOnOrder` tinyint(1) NOT NULL DEFAULT 0, + `includeEContent` tinyint(1) NOT NULL DEFAULT 0, + `weight` int(11) NOT NULL DEFAULT 0, + `iType` varchar(100) DEFAULT NULL, + `audience` varchar(100) DEFAULT NULL, + `format` varchar(100) DEFAULT NULL, + `marcTagToMatch` varchar(100) DEFAULT NULL, + `marcValueToMatch` varchar(100) DEFAULT NULL, + `includeExcludeMatches` tinyint(4) DEFAULT 1, + `urlToMatch` varchar(100) DEFAULT NULL, + `urlReplacement` varchar(255) DEFAULT NULL, + `locationsToExclude` text DEFAULT NULL, + `subLocationsToExclude` varchar(400) NOT NULL DEFAULT '', + `markRecordsAsOwned` tinyint(4) DEFAULT 0, + `iTypesToExclude` varchar(100) NOT NULL DEFAULT '', + `audiencesToExclude` varchar(100) NOT NULL DEFAULT '', + `formatsToExclude` varchar(100) NOT NULL DEFAULT '', + `shelfLocation` varchar(100) NOT NULL DEFAULT '', + `shelfLocationsToExclude` varchar(100) NOT NULL DEFAULT '', + `collectionCode` varchar(100) NOT NULL DEFAULT '', + `collectionCodesToExclude` varchar(100) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `locationId` (`locationId`,`indexingProfileId`), KEY `indexingProfileId` (`indexingProfileId`) @@ -3170,13 +3170,13 @@ CREATE TABLE `location_records_to_include` ( DROP TABLE IF EXISTS location_search_source; CREATE TABLE `location_search_source` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `locationId` int(11) NOT NULL DEFAULT '-1', - `label` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `searchWhat` enum('catalog','genealogy','overdrive','worldcat','prospector','goldrush','title_browse','author_browse','subject_browse','tags') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `defaultFilter` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `catalogScoping` enum('unscoped','library','location') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'unscoped', + `locationId` int(11) NOT NULL DEFAULT -1, + `label` varchar(50) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `searchWhat` enum('catalog','genealogy','overdrive','worldcat','prospector','goldrush','title_browse','author_browse','subject_browse','tags') DEFAULT NULL, + `defaultFilter` mediumtext DEFAULT NULL, + `defaultSort` enum('relevance','popularity','newest_to_oldest','oldest_to_newest','author','title','user_rating') DEFAULT NULL, + `catalogScoping` enum('unscoped','library','location') DEFAULT 'unscoped', PRIMARY KEY (`id`), KEY `locationId` (`locationId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3193,7 +3193,7 @@ CREATE TABLE `location_themes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `locationId` int(11) NOT NULL, `themeId` int(11) NOT NULL, - `weight` int(11) DEFAULT '0', + `weight` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `libraryToTheme` (`locationId`,`themeId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3209,10 +3209,10 @@ DROP TABLE IF EXISTS marriage; CREATE TABLE `marriage` ( `marriageId` int(11) NOT NULL AUTO_INCREMENT, `personId` int(11) NOT NULL COMMENT 'A link to one person in the marriage', - `spouseName` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'The name of the other person in the marriage if they aren''t in the database', + `spouseName` varchar(200) DEFAULT NULL COMMENT 'The name of the other person in the marriage if they aren''t in the database', `spouseId` int(11) DEFAULT NULL COMMENT 'A link to the second person in the marriage if the person is in the database', `marriageDate` date DEFAULT NULL COMMENT 'The date of the marriage if known.', - `comments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `comments` longtext DEFAULT NULL, `marriageDateDay` int(11) DEFAULT NULL COMMENT 'The day of the month the marriage occurred empty or null if not known', `marriageDateMonth` int(11) DEFAULT NULL COMMENT 'The month the marriage occurred, null or blank if not known', `marriageDateYear` int(11) DEFAULT NULL COMMENT 'The year the marriage occurred, null or blank if not known', @@ -3222,44 +3222,44 @@ DROP TABLE IF EXISTS materials_request; CREATE TABLE `materials_request` ( `id` int(11) NOT NULL AUTO_INCREMENT, `libraryId` int(10) unsigned DEFAULT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `author` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `title` varchar(255) DEFAULT NULL, + `author` varchar(255) DEFAULT NULL, + `format` varchar(25) DEFAULT NULL, `formatId` int(10) unsigned DEFAULT NULL, - `ageLevel` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isbn` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oclcNumber` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publisher` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publicationYear` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `articleInfo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `ageLevel` varchar(25) DEFAULT NULL, + `isbn` varchar(15) DEFAULT NULL, + `oclcNumber` varchar(30) DEFAULT NULL, + `publisher` varchar(255) DEFAULT NULL, + `publicationYear` varchar(4) DEFAULT NULL, + `articleInfo` varchar(255) DEFAULT NULL, `abridged` tinyint(4) DEFAULT NULL, - `about` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `comments` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `about` mediumtext DEFAULT NULL, + `comments` mediumtext DEFAULT NULL, `status` int(11) DEFAULT NULL, `dateCreated` int(11) DEFAULT NULL, `createdBy` int(11) DEFAULT NULL, `dateUpdated` int(11) DEFAULT NULL, - `emailSent` tinyint(4) NOT NULL DEFAULT '0', - `holdsCreated` tinyint(4) NOT NULL DEFAULT '0', - `email` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `phone` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `season` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `magazineTitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `upc` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `issn` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bookType` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `subFormat` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `magazineDate` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `magazineVolume` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `magazinePageNumbers` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `emailSent` tinyint(4) NOT NULL DEFAULT 0, + `holdsCreated` tinyint(4) NOT NULL DEFAULT 0, + `email` varchar(80) DEFAULT NULL, + `phone` varchar(15) DEFAULT NULL, + `season` varchar(80) DEFAULT NULL, + `magazineTitle` varchar(255) DEFAULT NULL, + `upc` varchar(15) DEFAULT NULL, + `issn` varchar(8) DEFAULT NULL, + `bookType` varchar(20) DEFAULT NULL, + `subFormat` varchar(20) DEFAULT NULL, + `magazineDate` varchar(20) DEFAULT NULL, + `magazineVolume` varchar(20) DEFAULT NULL, + `magazinePageNumbers` varchar(20) DEFAULT NULL, `placeHoldWhenAvailable` tinyint(4) DEFAULT NULL, - `holdPickupLocation` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bookmobileStop` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `holdPickupLocation` varchar(10) DEFAULT NULL, + `bookmobileStop` varchar(50) DEFAULT NULL, `illItem` tinyint(4) DEFAULT NULL, - `magazineNumber` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `magazineNumber` varchar(80) DEFAULT NULL, `assignedTo` int(11) DEFAULT NULL, - `staffComments` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `createdEmailSent` tinyint(1) DEFAULT '0', + `staffComments` mediumtext DEFAULT NULL, + `createdEmailSent` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `status` (`status`), KEY `status_2` (`status`), @@ -3283,9 +3283,9 @@ DROP TABLE IF EXISTS materials_request_fields_to_display; CREATE TABLE `materials_request_fields_to_display` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `libraryId` int(11) NOT NULL, - `columnNameToDisplay` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `labelForColumnToDisplay` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `weight` smallint(5) unsigned NOT NULL DEFAULT '0', + `columnNameToDisplay` varchar(30) NOT NULL, + `labelForColumnToDisplay` varchar(45) NOT NULL, + `weight` smallint(5) unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `columnNameToDisplay` (`columnNameToDisplay`,`libraryId`), KEY `libraryId` (`libraryId`) @@ -3294,9 +3294,9 @@ DROP TABLE IF EXISTS materials_request_form_fields; CREATE TABLE `materials_request_form_fields` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `libraryId` int(10) unsigned NOT NULL, - `formCategory` varchar(55) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fieldLabel` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fieldType` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `formCategory` varchar(55) NOT NULL, + `fieldLabel` varchar(255) NOT NULL, + `fieldType` varchar(30) DEFAULT NULL, `weight` smallint(5) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`), @@ -3306,25 +3306,25 @@ DROP TABLE IF EXISTS materials_request_formats; CREATE TABLE `materials_request_formats` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `libraryId` int(10) unsigned NOT NULL, - `format` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `formatLabel` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `authorLabel` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `weight` smallint(5) unsigned NOT NULL DEFAULT '0', - `specialFields` set('Abridged/Unabridged','Article Field','Eaudio format','Ebook format','Season') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `activeForNewRequests` tinyint(1) DEFAULT '1', + `format` varchar(30) NOT NULL, + `formatLabel` varchar(60) NOT NULL, + `authorLabel` varchar(45) NOT NULL, + `weight` smallint(5) unsigned NOT NULL DEFAULT 0, + `specialFields` set('Abridged/Unabridged','Article Field','Eaudio format','Ebook format','Season') DEFAULT NULL, + `activeForNewRequests` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `libraryId` (`libraryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS materials_request_status; CREATE TABLE `materials_request_status` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `description` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isDefault` tinyint(4) DEFAULT '0', + `description` varchar(80) DEFAULT NULL, + `isDefault` tinyint(4) DEFAULT 0, `sendEmailToPatron` tinyint(4) DEFAULT NULL, - `emailTemplate` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `emailTemplate` mediumtext DEFAULT NULL, `isOpen` tinyint(4) DEFAULT NULL, `isPatronCancel` tinyint(4) DEFAULT NULL, - `libraryId` int(11) DEFAULT '-1', + `libraryId` int(11) DEFAULT -1, PRIMARY KEY (`id`), KEY `isDefault` (`isDefault`), KEY `isOpen` (`isOpen`), @@ -3344,24 +3344,24 @@ CREATE TABLE `materials_request_usage` ( `year` int(11) NOT NULL, `month` int(11) NOT NULL, `statusId` int(11) NOT NULL, - `numUsed` int(11) NOT NULL DEFAULT '0', + `numUsed` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS merged_grouped_works; CREATE TABLE `merged_grouped_works` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, - `sourceGroupedWorkId` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `destinationGroupedWorkId` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `notes` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', + `sourceGroupedWorkId` char(36) NOT NULL, + `destinationGroupedWorkId` char(36) NOT NULL, + `notes` varchar(250) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `sourceGroupedWorkId` (`sourceGroupedWorkId`,`destinationGroupedWorkId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS millennium_cache; CREATE TABLE `millennium_cache` ( - `recordId` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The recordId being checked', + `recordId` varchar(20) NOT NULL COMMENT 'The recordId being checked', `scope` int(11) NOT NULL COMMENT 'The scope that was loaded', - `holdingsInfo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Raw HTML returned from Millennium for holdings', - `framesetInfo` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'Raw HTML returned from Millennium on the frameset page', + `holdingsInfo` longtext NOT NULL COMMENT 'Raw HTML returned from Millennium for holdings', + `framesetInfo` longtext NOT NULL COMMENT 'Raw HTML returned from Millennium on the frameset page', `cacheDate` int(11) NOT NULL COMMENT 'When the entry was recorded in the cache', PRIMARY KEY (`recordId`,`scope`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Caches information from Millennium so we do not have to cont'; @@ -3369,7 +3369,7 @@ CREATE TABLE `millennium_cache` ( /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -3378,17 +3378,17 @@ CREATE TABLE `millennium_cache` ( /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `modules`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!50503 SET character_set_client = utf8mb4 */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `modules` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `enabled` tinyint(1) DEFAULT '0', - `indexName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `backgroundProcess` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `logClassPath` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `logClassName` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `settingsClassPath` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `settingsClassName` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) NOT NULL, + `enabled` tinyint(1) DEFAULT 0, + `indexName` varchar(50) DEFAULT '', + `backgroundProcess` varchar(50) DEFAULT '', + `logClassPath` varchar(100) DEFAULT NULL, + `logClassName` varchar(35) DEFAULT NULL, + `settingsClassPath` varchar(100) DEFAULT NULL, + `settingsClassName` varchar(35) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `enabled` (`enabled`) @@ -3413,43 +3413,43 @@ UNLOCK TABLES; DROP TABLE IF EXISTS ncr_payments_settings; CREATE TABLE `ncr_payments_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) COLLATE utf8mb4_general_ci NOT NULL, - `clientKey` varchar(500) COLLATE utf8mb4_general_ci NOT NULL, - `webKey` varchar(500) COLLATE utf8mb4_general_ci NOT NULL, - `paymentTypeId` int(1) NOT NULL DEFAULT '0', - `lastTransactionNumber` int(10) DEFAULT '0', + `name` varchar(50) NOT NULL, + `clientKey` varchar(500) NOT NULL, + `webKey` varchar(500) NOT NULL, + `paymentTypeId` int(1) NOT NULL DEFAULT 0, + `lastTransactionNumber` int(10) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS non_holdable_locations; CREATE TABLE `non_holdable_locations` ( `locationId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'A unique id for the non holdable location', - `millenniumCode` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The internal 5 letter code within Millennium', - `holdingDisplay` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The text displayed in the holdings list within Millennium', + `millenniumCode` varchar(5) NOT NULL COMMENT 'The internal 5 letter code within Millennium', + `holdingDisplay` varchar(30) NOT NULL COMMENT 'The text displayed in the holdings list within Millennium', `availableAtCircDesk` tinyint(4) NOT NULL COMMENT 'The item is available if the patron visits the circulation desk.', PRIMARY KEY (`locationId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS nongrouped_records; CREATE TABLE `nongrouped_records` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `recordId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `notes` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `source` varchar(50) NOT NULL, + `recordId` varchar(36) NOT NULL, + `notes` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `source` (`source`,`recordId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS novelist_data; CREATE TABLE `novelist_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `groupedRecordPermanentId` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `groupedRecordPermanentId` char(40) NOT NULL, `lastUpdate` int(11) DEFAULT NULL, `hasNovelistData` tinyint(1) DEFAULT NULL, `groupedRecordHasISBN` tinyint(1) DEFAULT NULL, - `primaryISBN` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `seriesTitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `seriesNote` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `volume` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `jsonResponse` mediumblob, + `primaryISBN` varchar(13) DEFAULT NULL, + `seriesTitle` varchar(255) DEFAULT NULL, + `seriesNote` varchar(255) DEFAULT NULL, + `volume` varchar(32) DEFAULT NULL, + `jsonResponse` mediumblob DEFAULT NULL, PRIMARY KEY (`id`), KEY `groupedRecordPermanentId` (`groupedRecordPermanentId`), KEY `primaryISBN` (`primaryISBN`), @@ -3458,14 +3458,14 @@ CREATE TABLE `novelist_data` ( DROP TABLE IF EXISTS novelist_settings; CREATE TABLE `novelist_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `profile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `pwd` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `profile` varchar(50) NOT NULL, + `pwd` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS nyt_api_settings; CREATE TABLE `nyt_api_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `booksApiKey` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `booksApiKey` varchar(32) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS nyt_update_log; @@ -3474,23 +3474,23 @@ CREATE TABLE `nyt_update_log` ( `startTime` int(11) NOT NULL, `endTime` int(11) DEFAULT NULL, `lastUpdate` int(11) DEFAULT NULL, - `numErrors` int(11) NOT NULL DEFAULT '0', - `numLists` int(11) NOT NULL DEFAULT '0', - `numAdded` int(11) NOT NULL DEFAULT '0', - `numUpdated` int(11) NOT NULL DEFAULT '0', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numSkipped` int(11) NOT NULL DEFAULT '0', + `numErrors` int(11) NOT NULL DEFAULT 0, + `numLists` int(11) NOT NULL DEFAULT 0, + `numAdded` int(11) NOT NULL DEFAULT 0, + `numUpdated` int(11) NOT NULL DEFAULT 0, + `notes` mediumtext DEFAULT NULL, + `numSkipped` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS obituary; CREATE TABLE `obituary` ( `obituaryId` int(11) NOT NULL AUTO_INCREMENT, `personId` int(11) NOT NULL COMMENT 'The person this obituary is for', - `source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `source` varchar(255) DEFAULT NULL, `date` date DEFAULT NULL, - `sourcePage` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `contents` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `picture` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `sourcePage` varchar(25) DEFAULT NULL, + `contents` longtext DEFAULT NULL, + `picture` varchar(255) DEFAULT NULL, `dateDay` int(11) DEFAULT NULL, `dateMonth` int(11) DEFAULT NULL, `dateYear` int(11) DEFAULT NULL, @@ -3499,14 +3499,14 @@ CREATE TABLE `obituary` ( DROP TABLE IF EXISTS object_history; CREATE TABLE `object_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `objectType` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `objectType` varchar(75) NOT NULL, `objectId` int(11) NOT NULL, - `propertyName` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `oldValue` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `newValue` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `propertyName` varchar(75) NOT NULL, + `oldValue` mediumtext DEFAULT NULL, + `newValue` mediumtext DEFAULT NULL, `changedBy` int(11) NOT NULL, `changeDate` int(11) NOT NULL, - `actionType` tinyint(4) DEFAULT '2', + `actionType` tinyint(4) DEFAULT 2, PRIMARY KEY (`id`), KEY `objectType` (`objectType`,`objectId`), KEY `changedBy` (`changedBy`), @@ -3518,16 +3518,16 @@ CREATE TABLE `offline_circulation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `timeEntered` int(11) NOT NULL, `timeProcessed` int(11) DEFAULT NULL, - `itemBarcode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `patronBarcode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `itemBarcode` varchar(20) NOT NULL, + `patronBarcode` varchar(20) DEFAULT NULL, `patronId` int(11) DEFAULT NULL, - `login` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `loginPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `initials` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `initialsPassword` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `type` enum('Check In','Check Out') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `status` enum('Not Processed','Processing Succeeded','Processing Failed') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notes` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `login` varchar(50) DEFAULT NULL, + `loginPassword` varchar(50) DEFAULT NULL, + `initials` varchar(50) DEFAULT NULL, + `initialsPassword` varchar(50) DEFAULT NULL, + `type` enum('Check In','Check Out') DEFAULT NULL, + `status` enum('Not Processed','Processing Succeeded','Processing Failed') DEFAULT NULL, + `notes` varchar(512) DEFAULT NULL, PRIMARY KEY (`id`), KEY `timeEntered` (`timeEntered`), KEY `patronBarcode` (`patronBarcode`), @@ -3543,13 +3543,13 @@ CREATE TABLE `offline_hold` ( `id` int(11) NOT NULL AUTO_INCREMENT, `timeEntered` int(11) NOT NULL, `timeProcessed` int(11) DEFAULT NULL, - `bibId` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `bibId` varchar(10) NOT NULL, `patronId` int(11) DEFAULT NULL, - `patronBarcode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `status` enum('Not Processed','Hold Succeeded','Hold Failed') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notes` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `patronName` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemId` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `patronBarcode` varchar(20) DEFAULT NULL, + `status` enum('Not Processed','Hold Succeeded','Hold Failed') DEFAULT NULL, + `notes` varchar(512) DEFAULT NULL, + `patronName` varchar(200) DEFAULT NULL, + `itemId` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `timeEntered` (`timeEntered`), KEY `timeProcessed` (`timeProcessed`), @@ -3561,26 +3561,26 @@ CREATE TABLE `offline_hold` ( DROP TABLE IF EXISTS omdb_settings; CREATE TABLE `omdb_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `apiKey` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fetchCoversWithoutDates` tinyint(1) DEFAULT '1', + `apiKey` varchar(10) NOT NULL, + `fetchCoversWithoutDates` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS open_archives_collection; CREATE TABLE `open_archives_collection` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `setName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `fetchFrequency` enum('hourly','daily','weekly','monthly','yearly','once') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) NOT NULL, + `baseUrl` varchar(255) NOT NULL, + `setName` varchar(100) NOT NULL, + `fetchFrequency` enum('hourly','daily','weekly','monthly','yearly','once') DEFAULT NULL, `lastFetched` int(11) DEFAULT NULL, - `subjectFilters` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `subjects` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `loadOneMonthAtATime` tinyint(1) DEFAULT '1', - `imageRegex` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `deleted` tinyint(1) DEFAULT '0', - `defaultCover` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `metadataFormat` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT (_utf8mb4'oai_dc'), - `indexAllSets` tinyint(1) DEFAULT (0), + `subjectFilters` longtext DEFAULT NULL, + `subjects` longtext DEFAULT NULL, + `loadOneMonthAtATime` tinyint(1) DEFAULT 1, + `imageRegex` text DEFAULT NULL, + `deleted` tinyint(1) DEFAULT 0, + `defaultCover` varchar(100) DEFAULT '', + `metadataFormat` varchar(10) DEFAULT 'oai_dc', + `indexAllSets` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS open_archives_export_log; @@ -3589,20 +3589,20 @@ CREATE TABLE `open_archives_export_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `collectionName` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numRecords` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `collectionName` longtext DEFAULT NULL, + `numRecords` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS open_archives_facet_groups; CREATE TABLE `open_archives_facet_groups` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `name` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -3610,17 +3610,17 @@ DROP TABLE IF EXISTS open_archives_facets; CREATE TABLE `open_archives_facets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `facetGroupId` int(11) NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `displayNamePlural` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `facetName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT '5', - `sortMode` enum('alphabetically','num_results') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'num_results', - `collapseByDefault` tinyint(4) DEFAULT '1', - `useMoreFacetPopup` tinyint(4) DEFAULT '1', - `translate` tinyint(4) DEFAULT '1', - `multiSelect` tinyint(4) DEFAULT '1', - `canLock` tinyint(4) DEFAULT '1', + `displayName` varchar(50) NOT NULL, + `displayNamePlural` varchar(50) DEFAULT NULL, + `facetName` varchar(50) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT 5, + `sortMode` enum('alphabetically','num_results') NOT NULL DEFAULT 'num_results', + `collapseByDefault` tinyint(4) DEFAULT 1, + `useMoreFacetPopup` tinyint(4) DEFAULT 1, + `translate` tinyint(4) DEFAULT 1, + `multiSelect` tinyint(4) DEFAULT 1, + `canLock` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `groupFacet` (`facetGroupId`,`facetName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -3628,8 +3628,8 @@ DROP TABLE IF EXISTS open_archives_record; CREATE TABLE `open_archives_record` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sourceCollection` int(11) NOT NULL, - `permanentUrl` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lastSeen` int(11) DEFAULT '0', + `permanentUrl` varchar(512) NOT NULL, + `lastSeen` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `sourceCollection` (`sourceCollection`,`permanentUrl`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3640,17 +3640,17 @@ CREATE TABLE `open_archives_record_usage` ( `year` int(11) NOT NULL, `timesViewedInSearch` int(11) NOT NULL, `timesUsed` int(11) NOT NULL, - `month` int(11) NOT NULL DEFAULT '4', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `month` int(11) NOT NULL DEFAULT 4, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`openArchivesRecordId`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS optional_updates; CREATE TABLE `optional_updates` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `descriptionFile` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `versionIntroduced` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) NOT NULL, + `descriptionFile` varchar(50) NOT NULL, + `versionIntroduced` varchar(8) DEFAULT NULL, `status` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) @@ -3659,12 +3659,12 @@ DROP TABLE IF EXISTS overdrive_account_cache; CREATE TABLE `overdrive_account_cache` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, - `holdPage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `holdPageLastLoaded` int(11) NOT NULL DEFAULT '0', - `bookshelfPage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `bookshelfPageLastLoaded` int(11) NOT NULL DEFAULT '0', - `wishlistPage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `wishlistPageLastLoaded` int(11) NOT NULL DEFAULT '0', + `holdPage` longtext DEFAULT NULL, + `holdPageLastLoaded` int(11) NOT NULL DEFAULT 0, + `bookshelfPage` longtext DEFAULT NULL, + `bookshelfPageLastLoaded` int(11) NOT NULL DEFAULT 0, + `wishlistPage` longtext DEFAULT NULL, + `wishlistPageLastLoaded` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='A cache to store information about a user''s account within OverDrive.'; DROP TABLE IF EXISTS overdrive_api_product_availability; @@ -3676,8 +3676,8 @@ CREATE TABLE `overdrive_api_product_availability` ( `copiesOwned` int(11) DEFAULT NULL, `copiesAvailable` int(11) DEFAULT NULL, `numberOfHolds` int(11) DEFAULT NULL, - `availabilityType` varchar(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Normal', - `shared` tinyint(1) DEFAULT '0', + `availabilityType` varchar(35) DEFAULT 'Normal', + `shared` tinyint(1) DEFAULT 0, `settingId` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `productId` (`productId`,`settingId`,`libraryId`), @@ -3687,16 +3687,16 @@ DROP TABLE IF EXISTS overdrive_api_product_formats; CREATE TABLE `overdrive_api_product_formats` ( `id` int(11) NOT NULL AUTO_INCREMENT, `productId` int(11) DEFAULT NULL, - `textId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `textId` varchar(25) DEFAULT NULL, `numericId` int(11) DEFAULT NULL, - `name` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `fileName` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(512) DEFAULT NULL, + `fileName` varchar(215) DEFAULT NULL, `fileSize` int(11) DEFAULT NULL, `partCount` smallint(6) DEFAULT NULL, - `sampleSource_1` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sampleUrl_1` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sampleSource_2` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sampleUrl_2` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `sampleSource_1` varchar(215) DEFAULT NULL, + `sampleUrl_1` varchar(215) DEFAULT NULL, + `sampleSource_2` varchar(215) DEFAULT NULL, + `sampleUrl_2` varchar(215) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `productId_2` (`productId`,`textId`), KEY `productId` (`productId`), @@ -3706,8 +3706,8 @@ DROP TABLE IF EXISTS overdrive_api_product_identifiers; CREATE TABLE `overdrive_api_product_identifiers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `productId` int(11) DEFAULT NULL, - `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `value` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `type` varchar(50) DEFAULT NULL, + `value` varchar(75) DEFAULT NULL, PRIMARY KEY (`id`), KEY `productId` (`productId`), KEY `type` (`type`) @@ -3717,43 +3717,43 @@ CREATE TABLE `overdrive_api_product_metadata` ( `id` int(11) NOT NULL AUTO_INCREMENT, `productId` int(11) DEFAULT NULL, `checksum` bigint(20) DEFAULT NULL, - `sortTitle` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publisher` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `sortTitle` varchar(512) DEFAULT NULL, + `publisher` varchar(215) DEFAULT NULL, `publishDate` int(11) DEFAULT NULL, `isPublicDomain` tinyint(1) DEFAULT NULL, `isPublicPerformanceAllowed` tinyint(1) DEFAULT NULL, - `shortDescription` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `fullDescription` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `shortDescription` mediumtext DEFAULT NULL, + `fullDescription` mediumtext DEFAULT NULL, `starRating` float DEFAULT NULL, `popularity` int(11) DEFAULT NULL, - `rawData` mediumblob, - `thumbnail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `cover` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isOwnedByCollections` tinyint(1) DEFAULT '1', + `rawData` mediumblob DEFAULT NULL, + `thumbnail` varchar(255) DEFAULT NULL, + `cover` varchar(255) DEFAULT NULL, + `isOwnedByCollections` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `productId` (`productId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS overdrive_api_products; CREATE TABLE `overdrive_api_products` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `overdriveId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `mediaType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `series` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryCreatorRole` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryCreatorName` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `cover` varchar(215) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `overdriveId` varchar(36) NOT NULL, + `mediaType` varchar(50) NOT NULL, + `title` varchar(512) NOT NULL, + `series` varchar(215) DEFAULT NULL, + `primaryCreatorRole` varchar(50) DEFAULT NULL, + `primaryCreatorName` varchar(215) DEFAULT NULL, + `cover` varchar(215) DEFAULT NULL, `dateAdded` int(11) DEFAULT NULL, `dateUpdated` int(11) DEFAULT NULL, `lastMetadataCheck` int(11) DEFAULT NULL, `lastMetadataChange` int(11) DEFAULT NULL, `lastAvailabilityCheck` int(11) DEFAULT NULL, `lastAvailabilityChange` int(11) DEFAULT NULL, - `deleted` tinyint(1) DEFAULT '0', + `deleted` tinyint(1) DEFAULT 0, `dateDeleted` int(11) DEFAULT NULL, - `subtitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `crossRefId` int(11) DEFAULT '0', - `lastSeen` int(11) DEFAULT '0', + `subtitle` varchar(255) DEFAULT NULL, + `crossRefId` int(11) DEFAULT 0, + `lastSeen` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `overdriveId` (`overdriveId`), KEY `dateUpdated` (`dateUpdated`), @@ -3768,29 +3768,29 @@ CREATE TABLE `overdrive_extract_log` ( `startTime` int(11) DEFAULT NULL, `endTime` int(11) DEFAULT NULL, `lastUpdate` int(11) DEFAULT NULL, - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', - `numAvailabilityChanges` int(11) DEFAULT '0', - `numMetadataChanges` int(11) DEFAULT '0', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, + `numAvailabilityChanges` int(11) DEFAULT 0, + `numMetadataChanges` int(11) DEFAULT 0, + `notes` mediumtext DEFAULT NULL, `settingId` int(11) DEFAULT NULL, - `numInvalidRecords` int(11) DEFAULT '0', + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS overdrive_record_usage; CREATE TABLE `overdrive_record_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `overdriveId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `overdriveId` varchar(36) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, `timesHeld` int(11) NOT NULL, `timesCheckedOut` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`overdriveId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -3798,64 +3798,64 @@ CREATE TABLE `overdrive_record_usage` ( DROP TABLE IF EXISTS overdrive_scopes; CREATE TABLE `overdrive_scopes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `includeAdult` tinyint(4) DEFAULT '1', - `includeTeen` tinyint(4) DEFAULT '1', - `includeKids` tinyint(4) DEFAULT '1', - `authenticationILSName` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `requirePin` tinyint(1) DEFAULT '0', - `overdriveAdvantageName` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `overdriveAdvantageProductsKey` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `name` varchar(50) NOT NULL, + `includeAdult` tinyint(4) DEFAULT 1, + `includeTeen` tinyint(4) DEFAULT 1, + `includeKids` tinyint(4) DEFAULT 1, + `authenticationILSName` varchar(45) DEFAULT NULL, + `requirePin` tinyint(1) DEFAULT 0, + `overdriveAdvantageName` varchar(128) DEFAULT '', + `overdriveAdvantageProductsKey` varchar(20) DEFAULT '', `settingId` int(11) DEFAULT NULL, - `clientSecret` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `circulationEnabled` tinyint(4) DEFAULT '1', - `readerName` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Libby', + `clientSecret` varchar(256) DEFAULT NULL, + `clientKey` varchar(50) DEFAULT NULL, + `circulationEnabled` tinyint(4) DEFAULT 1, + `readerName` varchar(25) DEFAULT 'Libby', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS overdrive_settings; CREATE TABLE `overdrive_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `patronApiUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientSecret` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accountId` int(11) DEFAULT '0', - `websiteId` int(11) DEFAULT '0', - `productsKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0', - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', - `allowLargeDeletes` tinyint(1) DEFAULT '1', - `numExtractionThreads` int(11) DEFAULT '10', - `useFulfillmentInterface` tinyint(1) DEFAULT '1', - `showLibbyPromo` tinyint(1) DEFAULT '1', + `url` varchar(255) DEFAULT NULL, + `patronApiUrl` varchar(255) DEFAULT NULL, + `clientSecret` varchar(256) DEFAULT NULL, + `clientKey` varchar(50) DEFAULT NULL, + `accountId` int(11) DEFAULT 0, + `websiteId` int(11) DEFAULT 0, + `productsKey` varchar(50) DEFAULT '0', + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, + `allowLargeDeletes` tinyint(1) DEFAULT 1, + `numExtractionThreads` int(11) DEFAULT 10, + `useFulfillmentInterface` tinyint(1) DEFAULT 1, + `showLibbyPromo` tinyint(1) DEFAULT 1, `enableRequestLogging` tinyint(1) DEFAULT NULL, - `numRetriesOnError` int(11) DEFAULT '1', - `productsToUpdate` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `numRetriesOnError` int(11) DEFAULT 1, + `productsToUpdate` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS overdrive_stats; CREATE TABLE `overdrive_stats` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `numCheckouts` int(11) NOT NULL DEFAULT '0', - `numFailedCheckouts` int(11) NOT NULL DEFAULT '0', - `numRenewals` int(11) NOT NULL DEFAULT '0', - `numEarlyReturns` int(11) NOT NULL DEFAULT '0', - `numHoldsPlaced` int(11) NOT NULL DEFAULT '0', - `numFailedHolds` int(11) NOT NULL DEFAULT '0', - `numHoldsCancelled` int(11) NOT NULL DEFAULT '0', - `numHoldsFrozen` int(11) NOT NULL DEFAULT '0', - `numHoldsThawed` int(11) NOT NULL DEFAULT '0', - `numDownloads` int(11) NOT NULL DEFAULT '0', - `numPreviews` int(11) NOT NULL DEFAULT '0', - `numOptionsUpdates` int(11) NOT NULL DEFAULT '0', - `numApiErrors` int(11) NOT NULL DEFAULT '0', - `numConnectionFailures` int(11) NOT NULL DEFAULT '0', + `numCheckouts` int(11) NOT NULL DEFAULT 0, + `numFailedCheckouts` int(11) NOT NULL DEFAULT 0, + `numRenewals` int(11) NOT NULL DEFAULT 0, + `numEarlyReturns` int(11) NOT NULL DEFAULT 0, + `numHoldsPlaced` int(11) NOT NULL DEFAULT 0, + `numFailedHolds` int(11) NOT NULL DEFAULT 0, + `numHoldsCancelled` int(11) NOT NULL DEFAULT 0, + `numHoldsFrozen` int(11) NOT NULL DEFAULT 0, + `numHoldsThawed` int(11) NOT NULL DEFAULT 0, + `numDownloads` int(11) NOT NULL DEFAULT 0, + `numPreviews` int(11) NOT NULL DEFAULT 0, + `numOptionsUpdates` int(11) NOT NULL DEFAULT 0, + `numApiErrors` int(11) NOT NULL DEFAULT 0, + `numConnectionFailures` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3863,10 +3863,10 @@ DROP TABLE IF EXISTS palace_project_collections; CREATE TABLE `palace_project_collections` ( `id` int(11) NOT NULL AUTO_INCREMENT, `settingId` int(11) NOT NULL, - `palaceProjectName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `displayName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `palaceProjectName` varchar(255) NOT NULL, + `displayName` varchar(255) NOT NULL, `hasCirculation` tinyint(1) DEFAULT NULL, - `includeInAspen` tinyint(1) DEFAULT '1', + `includeInAspen` tinyint(1) DEFAULT 1, `lastIndexed` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `settingId` (`settingId`,`palaceProjectName`) @@ -3877,28 +3877,28 @@ CREATE TABLE `palace_project_export_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', - `numChangedAfterGrouping` int(11) DEFAULT '0', - `numRegrouped` int(11) DEFAULT '0', - `numInvalidRecords` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, + `numChangedAfterGrouping` int(11) DEFAULT 0, + `numRegrouped` int(11) DEFAULT 0, + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS palace_project_record_usage; CREATE TABLE `palace_project_record_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `palaceProjectId` int(11) DEFAULT NULL, `year` int(4) NOT NULL, `month` int(2) NOT NULL, - `timesHeld` int(11) NOT NULL DEFAULT '0', - `timesCheckedOut` int(11) NOT NULL DEFAULT '0', + `timesHeld` int(11) NOT NULL DEFAULT 0, + `timesCheckedOut` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`palaceProjectId`,`year`,`month`), KEY `instance_2` (`instance`,`year`,`month`) @@ -3906,31 +3906,31 @@ CREATE TABLE `palace_project_record_usage` ( DROP TABLE IF EXISTS palace_project_scopes; CREATE TABLE `palace_project_scopes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `name` varchar(50) NOT NULL, `settingId` int(11) DEFAULT NULL, - `includeAdult` tinyint(4) DEFAULT '1', - `includeTeen` tinyint(4) DEFAULT '1', - `includeKids` tinyint(4) DEFAULT '1', + `includeAdult` tinyint(4) DEFAULT 1, + `includeTeen` tinyint(4) DEFAULT 1, + `includeKids` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS palace_project_settings; CREATE TABLE `palace_project_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `apiUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `libraryId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `regroupAllRecords` tinyint(1) DEFAULT '0', - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', + `apiUrl` varchar(255) DEFAULT NULL, + `libraryId` varchar(50) DEFAULT NULL, + `regroupAllRecords` tinyint(1) DEFAULT 0, + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS palace_project_title; CREATE TABLE `palace_project_title` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `palaceProjectId` varchar(125) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title` varchar(750) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `palaceProjectId` varchar(125) DEFAULT NULL, + `title` varchar(750) DEFAULT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` mediumblob, + `rawResponse` mediumblob DEFAULT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `palaceProjectId` (`palaceProjectId`) @@ -3948,24 +3948,24 @@ CREATE TABLE `palace_project_title_availability` ( DROP TABLE IF EXISTS paypal_payflow_settings; CREATE TABLE `paypal_payflow_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `sandboxMode` tinyint(1) DEFAULT '0', - `partner` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `vendor` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `user` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `password` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, + `sandboxMode` tinyint(1) DEFAULT 0, + `partner` varchar(72) NOT NULL, + `vendor` varchar(72) NOT NULL, + `user` varchar(72) NOT NULL, + `password` varchar(72) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS paypal_settings; CREATE TABLE `paypal_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, `sandboxMode` tinyint(1) DEFAULT NULL, - `clientId` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientSecret` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `showPayLater` tinyint(1) DEFAULT '0', - `errorEmail` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `clientId` varchar(80) DEFAULT NULL, + `clientSecret` varchar(80) DEFAULT NULL, + `showPayLater` tinyint(1) DEFAULT 0, + `errorEmail` varchar(128) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -3973,7 +3973,7 @@ CREATE TABLE `paypal_settings` ( /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -3982,14 +3982,14 @@ CREATE TABLE `paypal_settings` ( /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!50503 SET character_set_client = utf8mb4 */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `sectionName` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `requiredModule` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `weight` int(11) NOT NULL DEFAULT '0', - `description` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(75) NOT NULL, + `sectionName` varchar(75) NOT NULL, + `requiredModule` varchar(50) NOT NULL DEFAULT '', + `weight` int(11) NOT NULL DEFAULT 0, + `description` varchar(250) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=208 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4013,40 +4013,40 @@ UNLOCK TABLES; DROP TABLE IF EXISTS person; CREATE TABLE `person` ( `personId` int(11) NOT NULL AUTO_INCREMENT, - `firstName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `middleName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `maidenName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `otherName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `nickName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `firstName` varchar(100) DEFAULT NULL, + `middleName` varchar(100) DEFAULT NULL, + `lastName` varchar(100) DEFAULT NULL, + `maidenName` varchar(100) DEFAULT NULL, + `otherName` varchar(100) DEFAULT NULL, + `nickName` varchar(100) DEFAULT NULL, `birthDate` date DEFAULT NULL, `deathDate` date DEFAULT NULL, - `ageAtDeath` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `cemeteryName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `cemeteryLocation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `mortuaryName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `comments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `picture` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ledgerVolume` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `ledgerYear` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `ledgerEntry` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `sex` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `race` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `residence` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `causeOfDeath` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `cemeteryAvenue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `veteranOf` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `addition` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `block` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `lot` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `ageAtDeath` mediumtext DEFAULT NULL, + `cemeteryName` varchar(255) DEFAULT NULL, + `cemeteryLocation` varchar(255) DEFAULT NULL, + `mortuaryName` varchar(255) DEFAULT NULL, + `comments` longtext DEFAULT NULL, + `picture` varchar(255) DEFAULT NULL, + `ledgerVolume` varchar(20) DEFAULT '', + `ledgerYear` varchar(20) DEFAULT '', + `ledgerEntry` varchar(20) DEFAULT '', + `sex` varchar(20) DEFAULT '', + `race` varchar(20) DEFAULT '', + `residence` varchar(255) DEFAULT '', + `causeOfDeath` varchar(255) DEFAULT '', + `cemeteryAvenue` varchar(255) DEFAULT '', + `veteranOf` varchar(100) DEFAULT '', + `addition` varchar(100) DEFAULT '', + `block` varchar(100) DEFAULT '', + `lot` varchar(50) DEFAULT '', `grave` int(11) DEFAULT NULL, - `tombstoneInscription` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `addedBy` int(11) NOT NULL DEFAULT '-1', + `tombstoneInscription` mediumtext DEFAULT NULL, + `addedBy` int(11) NOT NULL DEFAULT -1, `dateAdded` int(11) DEFAULT NULL, - `modifiedBy` int(11) NOT NULL DEFAULT '-1', + `modifiedBy` int(11) NOT NULL DEFAULT -1, `lastModified` int(11) DEFAULT NULL, - `privateComments` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `importedFrom` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `privateComments` mediumtext DEFAULT NULL, + `importedFrom` varchar(50) DEFAULT NULL, `birthDateDay` int(11) DEFAULT NULL COMMENT 'The day of the month the person was born empty or null if not known', `birthDateMonth` int(11) DEFAULT NULL COMMENT 'The month the person was born, null or blank if not known', `birthDateYear` int(11) DEFAULT NULL COMMENT 'The year the person was born, null or blank if not known', @@ -4059,7 +4059,7 @@ DROP TABLE IF EXISTS pin_reset_token; CREATE TABLE `pin_reset_token` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `token` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `token` varchar(12) NOT NULL, `dateIssued` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4099,23 +4099,23 @@ DROP TABLE IF EXISTS placard_trigger; CREATE TABLE `placard_trigger` ( `id` int(11) NOT NULL AUTO_INCREMENT, `placardId` int(11) NOT NULL, - `triggerWord` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `exactMatch` tinyint(1) DEFAULT '0', + `triggerWord` varchar(100) NOT NULL, + `exactMatch` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `triggerWord` (`triggerWord`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS placards; CREATE TABLE `placards` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `body` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `css` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `image` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `link` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `title` varchar(255) NOT NULL, + `body` mediumtext DEFAULT NULL, + `css` mediumtext DEFAULT NULL, + `image` varchar(100) DEFAULT NULL, + `link` varchar(500) DEFAULT NULL, `dismissable` tinyint(1) DEFAULT NULL, - `startDate` int(11) DEFAULT '0', - `endDate` int(11) DEFAULT '0', - `altText` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `startDate` int(11) DEFAULT 0, + `endDate` int(11) DEFAULT 0, + `altText` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`), KEY `title` (`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4123,71 +4123,71 @@ DROP TABLE IF EXISTS processes_to_stop; CREATE TABLE `processes_to_stop` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `processId` int(11) NOT NULL, - `processName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `stopAttempted` tinyint(4) DEFAULT '0', - `stopResults` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `processName` varchar(255) NOT NULL, + `stopAttempted` tinyint(4) DEFAULT 0, + `stopResults` text DEFAULT NULL, `dateSet` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS propay_settings; CREATE TABLE `propay_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, `useTestSystem` tinyint(1) DEFAULT NULL, - `authenticationToken` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `authenticationToken` char(36) DEFAULT NULL, `billerAccountId` bigint(20) DEFAULT NULL, `merchantProfileId` bigint(20) DEFAULT NULL, - `certStr` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accountNum` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `termId` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `certStr` varchar(30) DEFAULT NULL, + `accountNum` varchar(20) DEFAULT NULL, + `termId` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ptype; CREATE TABLE `ptype` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `pType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `maxHolds` int(11) NOT NULL DEFAULT '300', - `assignedRoleId` int(11) DEFAULT '-1', - `restrictMasquerade` tinyint(1) DEFAULT '0', - `isStaff` tinyint(1) DEFAULT '0', - `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `twoFactorAuthSettingId` int(11) DEFAULT '-1', - `vdxClientCategory` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `accountLinkingSetting` tinyint(1) DEFAULT '0', - `enableReadingHistory` tinyint(1) DEFAULT '1', - `accountLinkRemoveSetting` tinyint(1) DEFAULT '1', - `canSuggestMaterials` tinyint(1) DEFAULT '1', - `canRenewOnline` tinyint(1) DEFAULT '1', + `pType` varchar(50) NOT NULL, + `maxHolds` int(11) NOT NULL DEFAULT 300, + `assignedRoleId` int(11) DEFAULT -1, + `restrictMasquerade` tinyint(1) DEFAULT 0, + `isStaff` tinyint(1) DEFAULT 0, + `description` varchar(100) DEFAULT '', + `twoFactorAuthSettingId` int(11) DEFAULT -1, + `vdxClientCategory` varchar(10) DEFAULT '', + `accountLinkingSetting` tinyint(1) DEFAULT 0, + `enableReadingHistory` tinyint(1) DEFAULT 1, + `accountLinkRemoveSetting` tinyint(1) DEFAULT 1, + `canSuggestMaterials` tinyint(1) DEFAULT 1, + `canRenewOnline` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `pType` (`pType`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ptype_restricted_locations; CREATE TABLE `ptype_restricted_locations` ( `locationId` int(11) NOT NULL AUTO_INCREMENT COMMENT 'A unique id for the non holdable location', - `millenniumCode` varchar(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The internal 5 letter code within Millennium', - `holdingDisplay` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The text displayed in the holdings list within Millennium can use regular expression syntax to match multiple locations', - `allowablePtypes` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'A list of PTypes that are allowed to place holds on items with this location separated with pipes (|).', + `millenniumCode` varchar(5) NOT NULL COMMENT 'The internal 5 letter code within Millennium', + `holdingDisplay` varchar(30) NOT NULL COMMENT 'The text displayed in the holdings list within Millennium can use regular expression syntax to match multiple locations', + `allowablePtypes` varchar(50) NOT NULL COMMENT 'A list of PTypes that are allowed to place holds on items with this location separated with pipes (|).', PRIMARY KEY (`locationId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS quipu_ecard_setting; CREATE TABLE `quipu_ecard_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `server` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `server` varchar(50) NOT NULL, `clientId` int(11) NOT NULL, - `hasECard` tinyint(1) DEFAULT '1', - `hasERenew` tinyint(1) DEFAULT '0', + `hasECard` tinyint(1) DEFAULT 1, + `hasERenew` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS rbdigital_availability; CREATE TABLE `rbdigital_availability` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `rbdigitalId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `isAvailable` tinyint(4) NOT NULL DEFAULT '1', - `isOwned` tinyint(4) NOT NULL DEFAULT '1', - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `rbdigitalId` varchar(25) NOT NULL, + `isAvailable` tinyint(4) NOT NULL DEFAULT 1, + `isOwned` tinyint(4) NOT NULL DEFAULT 1, + `name` varchar(50) DEFAULT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `lastChange` int(11) NOT NULL, `settingId` int(11) DEFAULT NULL, PRIMARY KEY (`id`), @@ -4197,17 +4197,17 @@ CREATE TABLE `rbdigital_availability` ( DROP TABLE IF EXISTS rbdigital_magazine; CREATE TABLE `rbdigital_magazine` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `magazineId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `issueId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publisher` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `mediaType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `language` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `magazineId` varchar(25) NOT NULL, + `issueId` varchar(25) NOT NULL, + `title` varchar(255) DEFAULT NULL, + `publisher` varchar(255) DEFAULT NULL, + `mediaType` varchar(50) DEFAULT NULL, + `language` varchar(50) DEFAULT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, `lastChange` int(11) NOT NULL, - `deleted` tinyint(4) NOT NULL DEFAULT '0', + `deleted` tinyint(4) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `magazineId` (`magazineId`,`issueId`), KEY `lastChange` (`lastChange`) @@ -4217,9 +4217,9 @@ CREATE TABLE `rbdigital_magazine_issue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `magazineId` int(11) NOT NULL, `issueId` int(11) NOT NULL, - `imageUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publishedOn` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `coverDate` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `imageUrl` varchar(255) DEFAULT NULL, + `publishedOn` varchar(10) DEFAULT NULL, + `coverDate` varchar(10) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `magazineId` (`magazineId`,`issueId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4242,7 +4242,7 @@ CREATE TABLE `rbdigital_magazine_usage` ( `month` int(11) NOT NULL, `timesCheckedOut` int(11) NOT NULL, `issueId` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`magazineId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -4255,7 +4255,7 @@ CREATE TABLE `rbdigital_record_usage` ( `month` int(11) NOT NULL, `timesHeld` int(11) NOT NULL, `timesCheckedOut` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`rbdigitalId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -4263,18 +4263,18 @@ CREATE TABLE `rbdigital_record_usage` ( DROP TABLE IF EXISTS rbdigital_title; CREATE TABLE `rbdigital_title` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `rbdigitalId` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryAuthor` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `mediaType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isFiction` tinyint(4) NOT NULL DEFAULT '0', - `audience` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `language` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `rbdigitalId` varchar(25) NOT NULL, + `title` varchar(255) DEFAULT NULL, + `primaryAuthor` varchar(255) DEFAULT NULL, + `mediaType` varchar(50) DEFAULT NULL, + `isFiction` tinyint(4) NOT NULL DEFAULT 0, + `audience` varchar(50) DEFAULT NULL, + `language` varchar(50) DEFAULT NULL, `rawChecksum` bigint(20) NOT NULL, - `rawResponse` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `rawResponse` longtext DEFAULT NULL, `lastChange` int(11) NOT NULL, `dateFirstDetected` bigint(20) DEFAULT NULL, - `deleted` tinyint(1) NOT NULL DEFAULT '0', + `deleted` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `rbdigitalId` (`rbdigitalId`), KEY `lastChange` (`lastChange`) @@ -4282,15 +4282,15 @@ CREATE TABLE `rbdigital_title` ( DROP TABLE IF EXISTS recaptcha_settings; CREATE TABLE `recaptcha_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `publicKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `privateKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `publicKey` varchar(50) NOT NULL, + `privateKey` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS record_files; CREATE TABLE `record_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `identifier` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `type` varchar(50) DEFAULT NULL, + `identifier` varchar(50) DEFAULT NULL, `fileId` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fileId` (`fileId`), @@ -4299,9 +4299,9 @@ CREATE TABLE `record_files` ( DROP TABLE IF EXISTS record_identifiers_to_reload; CREATE TABLE `record_identifiers_to_reload` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `identifier` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `processed` tinyint(1) DEFAULT '0', + `type` varchar(50) NOT NULL, + `identifier` varchar(50) NOT NULL, + `processed` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `type` (`type`,`identifier`), KEY `processed` (`processed`,`type`) @@ -4311,7 +4311,7 @@ CREATE TABLE `record_parents` ( `id` int(11) NOT NULL AUTO_INCREMENT, `childRecordId` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, `parentRecordId` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL, - `childTitle` varchar(750) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `childTitle` varchar(750) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `childRecordId` (`childRecordId`,`parentRecordId`), KEY `parentRecordId` (`parentRecordId`) @@ -4320,18 +4320,18 @@ DROP TABLE IF EXISTS redwood_user_contribution; CREATE TABLE `redwood_user_contribution` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `creator` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `dateCreated` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `suggestedSubjects` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `howAcquired` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `filePath` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `status` enum('submitted','accepted','rejected') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `license` enum('none','CC0','cc','public') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `allowRemixing` tinyint(1) DEFAULT '0', - `prohibitCommercialUse` tinyint(1) DEFAULT '0', - `requireShareAlike` tinyint(1) DEFAULT '0', + `title` varchar(255) NOT NULL, + `creator` varchar(255) DEFAULT NULL, + `dateCreated` varchar(10) DEFAULT NULL, + `description` longtext DEFAULT NULL, + `suggestedSubjects` longtext DEFAULT NULL, + `howAcquired` varchar(255) DEFAULT NULL, + `filePath` varchar(255) DEFAULT NULL, + `status` enum('submitted','accepted','rejected') DEFAULT NULL, + `license` enum('none','CC0','cc','public') DEFAULT NULL, + `allowRemixing` tinyint(1) DEFAULT 0, + `prohibitCommercialUse` tinyint(1) DEFAULT 0, + `requireShareAlike` tinyint(1) DEFAULT 0, `dateContributed` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `userId` (`userId`) @@ -4341,26 +4341,26 @@ CREATE TABLE `reindex_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of reindex log', `startTime` int(11) NOT NULL COMMENT 'The timestamp when the reindex started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the reindex process ended', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Notes related to the overall process', + `notes` mediumtext DEFAULT NULL COMMENT 'Notes related to the overall process', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The last time the log was updated', - `numWorksProcessed` int(11) NOT NULL DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numInvalidRecords` int(11) DEFAULT '0', + `numWorksProcessed` int(11) NOT NULL DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS request_tracker_connection; CREATE TABLE `request_tracker_connection` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `activeTicketFeed` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `baseUrl` varchar(255) DEFAULT NULL, + `activeTicketFeed` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -4369,7 +4369,7 @@ CREATE TABLE `request_tracker_connection` ( /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `role_permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!50503 SET character_set_client = utf8mb4 */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `role_permissions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `roleId` int(11) NOT NULL, @@ -4399,7 +4399,7 @@ UNLOCK TABLES; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!50503 SET NAMES utf8mb4 */; +/*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -4408,11 +4408,11 @@ UNLOCK TABLES; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; DROP TABLE IF EXISTS `roles`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!50503 SET character_set_client = utf8mb4 */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `roles` ( `roleId` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The internal name of the role', - `description` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'A description of what the role allows', + `name` varchar(50) NOT NULL COMMENT 'The internal name of the role', + `description` varchar(100) NOT NULL COMMENT 'A description of what the role allows', PRIMARY KEY (`roleId`) ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='A role identifying what the user can do.'; /*!40101 SET character_set_client = @saved_cs_client */; @@ -4435,17 +4435,17 @@ UNLOCK TABLES; DROP TABLE IF EXISTS rosen_levelup_settings; CREATE TABLE `rosen_levelup_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `lu_api_host` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_api_pw` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_api_un` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_district_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_eligible_ptypes` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_multi_district_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_school_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lu_ptypes_1` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lu_ptypes_2` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lu_ptypes_k` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lu_location_code_prefix` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `lu_api_host` varchar(50) NOT NULL, + `lu_api_pw` varchar(50) NOT NULL, + `lu_api_un` varchar(50) NOT NULL, + `lu_district_name` varchar(50) NOT NULL, + `lu_eligible_ptypes` varchar(50) NOT NULL, + `lu_multi_district_name` varchar(50) NOT NULL, + `lu_school_name` varchar(50) NOT NULL, + `lu_ptypes_1` varchar(50) DEFAULT NULL, + `lu_ptypes_2` varchar(50) DEFAULT NULL, + `lu_ptypes_k` varchar(50) DEFAULT NULL, + `lu_location_code_prefix` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS scope; @@ -4461,15 +4461,15 @@ CREATE TABLE `scope` ( DROP TABLE IF EXISTS search; CREATE TABLE `search` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL DEFAULT '0', - `session_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `user_id` int(11) NOT NULL DEFAULT 0, + `session_id` varchar(128) DEFAULT NULL, `created` date NOT NULL, - `title` varchar(225) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `saved` int(11) NOT NULL DEFAULT '0', - `search_object` blob, - `searchSource` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'local', - `searchUrl` varchar(2500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `hasNewResults` tinyint(4) DEFAULT '0', + `title` varchar(225) DEFAULT NULL, + `saved` int(11) NOT NULL DEFAULT 0, + `search_object` blob DEFAULT NULL, + `searchSource` varchar(30) NOT NULL DEFAULT 'local', + `searchUrl` varchar(2500) DEFAULT NULL, + `hasNewResults` tinyint(4) DEFAULT 0, `lastUpdated` date DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), @@ -4478,7 +4478,7 @@ CREATE TABLE `search` ( DROP TABLE IF EXISTS search_stats_new; CREATE TABLE `search_stats_new` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The unique id of the search statistic', - `phrase` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The phrase being searched for', + `phrase` varchar(500) NOT NULL COMMENT 'The phrase being searched for', `lastSearch` int(11) NOT NULL COMMENT 'The last time this search was done', `numSearches` int(11) NOT NULL COMMENT 'The number of times this search has been done.', PRIMARY KEY (`id`), @@ -4492,102 +4492,102 @@ CREATE TABLE `search_update_log` ( `startTime` int(11) NOT NULL, `endTime` int(11) DEFAULT NULL, `lastUpdate` int(11) DEFAULT NULL, - `numErrors` int(11) NOT NULL DEFAULT '0', - `numSearches` int(11) NOT NULL DEFAULT '0', - `numUpdated` int(11) NOT NULL DEFAULT '0', - `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `numErrors` int(11) NOT NULL DEFAULT 0, + `numSearches` int(11) NOT NULL DEFAULT 0, + `numUpdated` int(11) NOT NULL DEFAULT 0, + `notes` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS self_reg_form_values; CREATE TABLE `self_reg_form_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, `selfRegistrationFormId` int(11) NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `symphonyName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `fieldType` enum('text','date') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'text', - `patronUpdate` enum('read_only','hidden','editable','editable_required') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'editable', - `required` tinyint(4) NOT NULL DEFAULT '0', - `note` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `section` enum('librarySection','identitySection','mainAddressSection','contactInformationSection') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'identitySection', + `weight` int(11) NOT NULL DEFAULT 0, + `symphonyName` varchar(50) NOT NULL, + `displayName` varchar(50) NOT NULL, + `fieldType` enum('text','date') NOT NULL DEFAULT 'text', + `patronUpdate` enum('read_only','hidden','editable','editable_required') NOT NULL DEFAULT 'editable', + `required` tinyint(4) NOT NULL DEFAULT 0, + `note` varchar(75) DEFAULT NULL, + `section` enum('librarySection','identitySection','mainAddressSection','contactInformationSection') NOT NULL DEFAULT 'identitySection', PRIMARY KEY (`id`), UNIQUE KEY `groupValue` (`selfRegistrationFormId`,`symphonyName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS self_registration_form; CREATE TABLE `self_registration_form` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `selfRegistrationBarcodePrefix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT '', - `selfRegBarcodeSuffixLength` int(11) DEFAULT '0', - `noDuplicateCheck` tinyint(4) DEFAULT '0', - `promptForParentInSelfReg` tinyint(1) NOT NULL DEFAULT '0', - `promptForSMSNoticesInSelfReg` tinyint(1) NOT NULL DEFAULT '0', - `cityStateField` tinyint(1) NOT NULL DEFAULT '0', - `selfRegistrationUserProfile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT 'SELFREG', - `termsOfServiceSetting` int(11) NOT NULL DEFAULT '-1', + `name` varchar(255) NOT NULL, + `selfRegistrationBarcodePrefix` varchar(10) DEFAULT '', + `selfRegBarcodeSuffixLength` int(11) DEFAULT 0, + `noDuplicateCheck` tinyint(4) DEFAULT 0, + `promptForParentInSelfReg` tinyint(1) NOT NULL DEFAULT 0, + `promptForSMSNoticesInSelfReg` tinyint(1) NOT NULL DEFAULT 0, + `cityStateField` tinyint(1) NOT NULL DEFAULT 0, + `selfRegistrationUserProfile` varchar(20) DEFAULT 'SELFREG', + `termsOfServiceSetting` int(11) NOT NULL DEFAULT -1, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS self_registration_tos; CREATE TABLE `self_registration_tos` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `terms` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `redirect` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(75) NOT NULL, + `terms` mediumtext DEFAULT NULL, + `redirect` mediumtext DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS sendgrid_settings; CREATE TABLE `sendgrid_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `fromAddress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `replyToAddress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `apiKey` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `fromAddress` varchar(255) DEFAULT NULL, + `replyToAddress` varchar(255) DEFAULT NULL, + `apiKey` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS session; CREATE TABLE `session` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `session_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `last_used` int(11) NOT NULL DEFAULT '0', - `created` datetime DEFAULT CURRENT_TIMESTAMP, - `remember_me` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether or not the session was started with remember me on.', + `session_id` varchar(128) DEFAULT NULL, + `data` longtext DEFAULT NULL, + `last_used` int(11) NOT NULL DEFAULT 0, + `created` datetime DEFAULT current_timestamp(), + `remember_me` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Whether or not the session was started with remember me on.', PRIMARY KEY (`id`), UNIQUE KEY `session_id` (`session_id`), KEY `last_used` (`last_used`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS shared_content; CREATE TABLE `shared_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `sharedFrom` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `sharedByUserName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `sharedFrom` varchar(50) NOT NULL, + `sharedByUserName` varchar(256) NOT NULL, `shareDate` int(11) DEFAULT NULL, - `approved` tinyint(1) DEFAULT '0', + `approved` tinyint(1) DEFAULT 0, `approvalDate` int(11) DEFAULT NULL, `approvedBy` int(11) DEFAULT NULL, - `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `data` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `type` varchar(50) NOT NULL, + `name` varchar(100) NOT NULL, + `description` text DEFAULT NULL, + `data` text DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS shared_session; CREATE TABLE `shared_session` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `sessionId` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `userId` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `createdOn` int(11) DEFAULT '0', + `sessionId` varchar(40) DEFAULT NULL, + `userId` varchar(11) DEFAULT NULL, + `createdOn` int(11) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS sideload_files; CREATE TABLE `sideload_files` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sideLoadId` int(11) NOT NULL, - `filename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastChanged` int(11) DEFAULT '0', - `deletedTime` int(11) DEFAULT '0', - `lastIndexed` int(11) DEFAULT '0', + `filename` varchar(255) DEFAULT NULL, + `lastChanged` int(11) DEFAULT 0, + `deletedTime` int(11) DEFAULT 0, + `lastIndexed` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `sideloadFile` (`sideLoadId`,`filename`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4597,16 +4597,16 @@ CREATE TABLE `sideload_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numSideLoadsUpdated` int(11) DEFAULT '0', - `sideLoadsUpdated` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numProducts` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numSkipped` int(11) DEFAULT '0', - `numInvalidRecords` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numSideLoadsUpdated` int(11) DEFAULT 0, + `sideLoadsUpdated` longtext DEFAULT NULL, + `numProducts` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numSkipped` int(11) DEFAULT 0, + `numInvalidRecords` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `startTime` (`startTime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4614,11 +4614,11 @@ DROP TABLE IF EXISTS sideload_record_usage; CREATE TABLE `sideload_record_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sideloadId` int(11) NOT NULL, - `recordId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `recordId` varchar(36) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, `timesUsed` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`sideloadId`,`recordId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -4626,53 +4626,53 @@ CREATE TABLE `sideload_record_usage` ( DROP TABLE IF EXISTS sideload_scopes; CREATE TABLE `sideload_scopes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, `sideLoadId` int(11) NOT NULL, - `marcTagToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `marcValueToMatch` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `includeExcludeMatches` tinyint(4) DEFAULT '1', - `urlToMatch` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `urlReplacement` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `includeAdult` tinyint(4) DEFAULT '1', - `includeTeen` tinyint(4) DEFAULT '1', - `includeKids` tinyint(4) DEFAULT '1', + `marcTagToMatch` varchar(100) DEFAULT NULL, + `marcValueToMatch` varchar(100) DEFAULT NULL, + `includeExcludeMatches` tinyint(4) DEFAULT 1, + `urlToMatch` varchar(255) DEFAULT NULL, + `urlReplacement` varchar(255) DEFAULT NULL, + `includeAdult` tinyint(4) DEFAULT 1, + `includeTeen` tinyint(4) DEFAULT 1, + `includeKids` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS sideloads; CREATE TABLE `sideloads` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `marcPath` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `filenamesToInclude` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '.*\\.ma?rc', - `marcEncoding` enum('MARC8','UTF8','UNIMARC','ISO8859_1','BESTGUESS') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'MARC8', - `groupingClass` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'SideLoadedRecordGrouper', - `indexingClass` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'SideLoadedEContentProcessor', - `recordDriver` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'SideLoadedRecord', - `recordUrlComponent` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'DefineThis', - `recordNumberTag` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '001', - `recordNumberSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'a', - `recordNumberPrefix` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `itemTag` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `itemRecordNumber` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `location` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `locationsToSuppress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemUrl` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `formatSource` enum('bib','item','specified') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bib', - `specifiedFormat` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `specifiedFormatCategory` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) NOT NULL, + `marcPath` varchar(100) NOT NULL, + `filenamesToInclude` varchar(250) DEFAULT '.*\\.ma?rc', + `marcEncoding` enum('MARC8','UTF8','UNIMARC','ISO8859_1','BESTGUESS') NOT NULL DEFAULT 'MARC8', + `groupingClass` varchar(100) NOT NULL DEFAULT 'SideLoadedRecordGrouper', + `indexingClass` varchar(50) NOT NULL DEFAULT 'SideLoadedEContentProcessor', + `recordDriver` varchar(100) NOT NULL DEFAULT 'SideLoadedRecord', + `recordUrlComponent` varchar(25) NOT NULL DEFAULT 'DefineThis', + `recordNumberTag` char(3) NOT NULL DEFAULT '001', + `recordNumberSubfield` char(1) DEFAULT 'a', + `recordNumberPrefix` varchar(10) NOT NULL DEFAULT '', + `itemTag` char(3) NOT NULL DEFAULT '', + `itemRecordNumber` char(1) DEFAULT NULL, + `location` char(1) DEFAULT NULL, + `locationsToSuppress` varchar(255) DEFAULT NULL, + `itemUrl` char(1) DEFAULT NULL, + `format` char(1) DEFAULT NULL, + `formatSource` enum('bib','item','specified') NOT NULL DEFAULT 'bib', + `specifiedFormat` varchar(50) DEFAULT NULL, + `specifiedFormatCategory` varchar(50) DEFAULT NULL, `specifiedFormatBoost` int(11) DEFAULT NULL, - `runFullUpdate` tinyint(1) DEFAULT '0', - `lastUpdateOfChangedRecords` int(11) DEFAULT '0', - `lastUpdateOfAllRecords` int(11) DEFAULT '0', - `treatUnknownLanguageAs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'English', - `treatUndeterminedLanguageAs` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'English', - `deletedRecordsIds` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `accessButtonLabel` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'Access Online', - `showStatus` tinyint(1) DEFAULT '1', - `includePersonalAndCorporateNamesInTopics` tinyint(1) NOT NULL DEFAULT '1', - `convertFormatToEContent` tinyint(4) DEFAULT '1', - `useLinkTextForButtonLabel` tinyint(4) DEFAULT '0', + `runFullUpdate` tinyint(1) DEFAULT 0, + `lastUpdateOfChangedRecords` int(11) DEFAULT 0, + `lastUpdateOfAllRecords` int(11) DEFAULT 0, + `treatUnknownLanguageAs` varchar(50) DEFAULT 'English', + `treatUndeterminedLanguageAs` varchar(50) DEFAULT 'English', + `deletedRecordsIds` longtext DEFAULT NULL, + `accessButtonLabel` varchar(50) DEFAULT 'Access Online', + `showStatus` tinyint(1) DEFAULT 1, + `includePersonalAndCorporateNamesInTopics` tinyint(1) NOT NULL DEFAULT 1, + `convertFormatToEContent` tinyint(4) DEFAULT 1, + `useLinkTextForButtonLabel` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4682,7 +4682,7 @@ CREATE TABLE `sierra_api_export_log` ( `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', `numRecordsToProcess` int(11) DEFAULT NULL, `numRecordsProcessed` int(11) DEFAULT NULL, `numErrors` int(11) DEFAULT NULL, @@ -4693,19 +4693,19 @@ DROP TABLE IF EXISTS sierra_export_field_mapping; CREATE TABLE `sierra_export_field_mapping` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of field mapping', `indexingProfileId` int(11) NOT NULL COMMENT 'The indexing profile this field mapping is associated with', - `fixedFieldDestinationField` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The field to place fixed field data into', - `bcode3DestinationSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'The subfield to place bcode3 into', - `callNumberExportFieldTag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumberPrestampExportSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumberExportSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumberCutterExportSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumberPoststampExportSubfield` char(5) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `volumeExportFieldTag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `eContentExportFieldTag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `materialTypeSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bibLevelLocationsSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemPublicNoteExportSubfield` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `callNumberPrestamp2ExportSubfield` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `fixedFieldDestinationField` char(3) NOT NULL COMMENT 'The field to place fixed field data into', + `bcode3DestinationSubfield` char(1) DEFAULT NULL COMMENT 'The subfield to place bcode3 into', + `callNumberExportFieldTag` char(1) DEFAULT NULL, + `callNumberPrestampExportSubfield` char(1) DEFAULT NULL, + `callNumberExportSubfield` char(1) DEFAULT NULL, + `callNumberCutterExportSubfield` char(1) DEFAULT NULL, + `callNumberPoststampExportSubfield` char(5) DEFAULT NULL, + `volumeExportFieldTag` char(1) DEFAULT NULL, + `eContentExportFieldTag` char(1) DEFAULT NULL, + `materialTypeSubfield` char(1) DEFAULT NULL, + `bibLevelLocationsSubfield` char(1) DEFAULT NULL, + `itemPublicNoteExportSubfield` varchar(1) DEFAULT '', + `callNumberPrestamp2ExportSubfield` char(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS slow_ajax_request; @@ -4713,252 +4713,252 @@ CREATE TABLE `slow_ajax_request` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `module` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `action` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `method` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `timesSlow` int(11) DEFAULT '0', + `module` varchar(50) NOT NULL, + `action` varchar(50) NOT NULL, + `method` varchar(75) NOT NULL, + `timesSlow` int(11) DEFAULT 0, `timesFast` int(11) DEFAULT NULL, `timesAcceptable` int(11) DEFAULT NULL, `timesSlower` int(11) DEFAULT NULL, `timesVerySlow` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `year` (`year`,`month`,`module`,`action`,`method`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS slow_page; CREATE TABLE `slow_page` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `module` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `action` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `timesSlow` int(11) DEFAULT '0', + `module` varchar(50) NOT NULL, + `action` varchar(50) NOT NULL, + `timesSlow` int(11) DEFAULT 0, `timesFast` int(11) DEFAULT NULL, `timesAcceptable` int(11) DEFAULT NULL, `timesSlower` int(11) DEFAULT NULL, `timesVerySlow` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `year` (`year`,`month`,`module`,`action`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS smtp_settings; CREATE TABLE `smtp_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `host` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'localhost', + `name` varchar(80) NOT NULL, + `host` varchar(80) NOT NULL DEFAULT 'localhost', `port` int(11) NOT NULL DEFAULT 25, `ssl_mode` enum('disabled','ssl','tls') NOT NULL, - `from_address` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `from_name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `user_name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `password` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `from_address` varchar(80) DEFAULT NULL, + `from_name` varchar(80) DEFAULT NULL, + `user_name` varchar(80) DEFAULT NULL, + `password` varchar(80) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS springshare_libcal_events; CREATE TABLE `springshare_libcal_events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `settingsId` int(11) NOT NULL, - `externalId` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `externalId` varchar(36) NOT NULL, + `title` varchar(255) NOT NULL, `rawChecksum` bigint(20) DEFAULT NULL, - `rawResponse` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `deleted` tinyint(4) DEFAULT '0', + `rawResponse` mediumtext DEFAULT NULL, + `deleted` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `settingsId` (`settingsId`,`externalId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS springshare_libcal_settings; CREATE TABLE `springshare_libcal_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `calId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `name` varchar(100) NOT NULL, + `baseUrl` varchar(255) NOT NULL, + `calId` varchar(50) DEFAULT '', `clientId` smallint(6) NOT NULL, - `clientSecret` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `eventsInLists` tinyint(1) DEFAULT '1', - `bypassAspenEventPages` tinyint(1) DEFAULT '0', - `registrationModalBody` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `numberOfDaysToIndex` int(11) DEFAULT '365', - `registrationModalBodyApp` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `clientSecret` varchar(36) NOT NULL, + `eventsInLists` tinyint(1) DEFAULT 1, + `bypassAspenEventPages` tinyint(1) DEFAULT 0, + `registrationModalBody` mediumtext DEFAULT NULL, + `numberOfDaysToIndex` int(11) DEFAULT 365, + `registrationModalBodyApp` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS square_settings; CREATE TABLE `square_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `sandboxMode` tinyint(1) DEFAULT '0', - `applicationId` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `accessToken` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `locationId` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `name` varchar(50) NOT NULL, + `sandboxMode` tinyint(1) DEFAULT 0, + `applicationId` varchar(80) NOT NULL, + `accessToken` varchar(80) NOT NULL, + `locationId` varchar(80) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS sso_mapping; CREATE TABLE `sso_mapping` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `aspenField` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `responseField` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ssoSettingId` tinyint(4) DEFAULT '-1', - `fallbackValue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `aspenField` varchar(75) NOT NULL, + `responseField` varchar(255) NOT NULL, + `ssoSettingId` tinyint(4) DEFAULT -1, + `fallbackValue` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `mapping` (`aspenField`,`ssoSettingId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS sso_setting; CREATE TABLE `sso_setting` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `service` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `clientId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientSecret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthGateway` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoXmlUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoUniqueAttribute` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoMetadataFilename` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoIdAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoUsernameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoFirstnameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoLastnameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoEmailAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoDisplayNameAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoPhoneAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoPatronTypeAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoPatronTypeFallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoAddressAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoCityAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoLibraryIdAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoLibraryIdFallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoCategoryIdAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoCategoryIdFallback` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `loginOptions` tinyint(1) DEFAULT '0', - `loginHelpText` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#232323', - `oAuthButtonTextColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `oAuthGatewayLabel` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthAuthorizeUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthAccessTokenUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthResourceOwnerUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthGatewayIcon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthScope` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoEntityId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthLogoutUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthGrantType` tinyint(1) DEFAULT '0', - `oAuthPrivateKeys` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlMetadataOption` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlBtnIcon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlBtnBgColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#de1f0b', - `samlBtnTextColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `samlStaffPTypeAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlStaffPTypeAttrValue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlStaffPType` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthStaffPTypeAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthStaffPTypeAttrValue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthStaffPType` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `staffOnly` tinyint(1) DEFAULT '0', - `bypassAspenLogin` tinyint(1) DEFAULT '0', - `ssoUseGivenUserId` tinyint(1) DEFAULT '1', - `ssoUseGivenUsername` tinyint(1) DEFAULT '1', - `ssoUsernameFormat` tinyint(1) DEFAULT '0', - `ssoSPLogoutUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapHosts` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapUsername` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapPassword` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapBaseDN` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapIdAttr` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapOrgUnit` varchar(225) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ldapLabel` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ssoAuthOnly` tinyint(1) DEFAULT '0', - `ssoILSUniqueAttribute` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bypassAspenPatronLogin` tinyint(1) DEFAULT '0', - `samlStudentPTypeAttr` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlStudentPTypeAttrValue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `samlStudentPType` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `forceReAuth` tinyint(1) DEFAULT '0', - `restrictByIP` tinyint(1) DEFAULT '0', - `updateAccount` tinyint(1) NOT NULL DEFAULT '0', + `name` varchar(50) NOT NULL, + `service` varchar(75) NOT NULL, + `clientId` varchar(255) DEFAULT NULL, + `clientSecret` varchar(255) DEFAULT NULL, + `oAuthGateway` varchar(75) DEFAULT NULL, + `ssoName` varchar(255) DEFAULT NULL, + `ssoXmlUrl` varchar(255) DEFAULT NULL, + `ssoUniqueAttribute` varchar(255) DEFAULT NULL, + `ssoMetadataFilename` varchar(255) DEFAULT NULL, + `ssoIdAttr` varchar(255) DEFAULT NULL, + `ssoUsernameAttr` varchar(255) DEFAULT NULL, + `ssoFirstnameAttr` varchar(255) DEFAULT NULL, + `ssoLastnameAttr` varchar(255) DEFAULT NULL, + `ssoEmailAttr` varchar(255) DEFAULT NULL, + `ssoDisplayNameAttr` varchar(255) DEFAULT NULL, + `ssoPhoneAttr` varchar(255) DEFAULT NULL, + `ssoPatronTypeAttr` varchar(255) DEFAULT NULL, + `ssoPatronTypeFallback` varchar(255) DEFAULT NULL, + `ssoAddressAttr` varchar(255) DEFAULT NULL, + `ssoCityAttr` varchar(255) DEFAULT NULL, + `ssoLibraryIdAttr` varchar(255) DEFAULT NULL, + `ssoLibraryIdFallback` varchar(255) DEFAULT NULL, + `ssoCategoryIdAttr` varchar(255) DEFAULT NULL, + `ssoCategoryIdFallback` varchar(255) DEFAULT NULL, + `loginOptions` tinyint(1) DEFAULT 0, + `loginHelpText` varchar(255) DEFAULT NULL, + `oAuthButtonBackgroundColor` char(7) DEFAULT '#232323', + `oAuthButtonTextColor` char(7) DEFAULT '#ffffff', + `oAuthGatewayLabel` varchar(75) DEFAULT NULL, + `oAuthAuthorizeUrl` varchar(255) DEFAULT NULL, + `oAuthAccessTokenUrl` varchar(255) DEFAULT NULL, + `oAuthResourceOwnerUrl` varchar(255) DEFAULT NULL, + `oAuthGatewayIcon` varchar(255) DEFAULT NULL, + `oAuthScope` varchar(255) DEFAULT NULL, + `ssoEntityId` varchar(255) DEFAULT NULL, + `oAuthLogoutUrl` varchar(255) DEFAULT NULL, + `oAuthGrantType` tinyint(1) DEFAULT 0, + `oAuthPrivateKeys` varchar(255) DEFAULT NULL, + `samlMetadataOption` varchar(30) DEFAULT NULL, + `samlBtnIcon` varchar(255) DEFAULT NULL, + `samlBtnBgColor` char(7) DEFAULT '#de1f0b', + `samlBtnTextColor` char(7) DEFAULT '#ffffff', + `samlStaffPTypeAttr` varchar(255) DEFAULT NULL, + `samlStaffPTypeAttrValue` varchar(255) DEFAULT NULL, + `samlStaffPType` varchar(30) DEFAULT NULL, + `oAuthStaffPTypeAttr` varchar(255) DEFAULT NULL, + `oAuthStaffPTypeAttrValue` varchar(255) DEFAULT NULL, + `oAuthStaffPType` varchar(30) DEFAULT NULL, + `staffOnly` tinyint(1) DEFAULT 0, + `bypassAspenLogin` tinyint(1) DEFAULT 0, + `ssoUseGivenUserId` tinyint(1) DEFAULT 1, + `ssoUseGivenUsername` tinyint(1) DEFAULT 1, + `ssoUsernameFormat` tinyint(1) DEFAULT 0, + `ssoSPLogoutUrl` varchar(255) DEFAULT NULL, + `ldapHosts` varchar(500) DEFAULT NULL, + `ldapUsername` varchar(75) DEFAULT NULL, + `ldapPassword` varchar(75) DEFAULT NULL, + `ldapBaseDN` varchar(500) DEFAULT NULL, + `ldapIdAttr` varchar(75) DEFAULT NULL, + `ldapOrgUnit` varchar(225) DEFAULT NULL, + `ldapLabel` varchar(75) DEFAULT NULL, + `ssoAuthOnly` tinyint(1) DEFAULT 0, + `ssoILSUniqueAttribute` varchar(255) DEFAULT NULL, + `bypassAspenPatronLogin` tinyint(1) DEFAULT 0, + `samlStudentPTypeAttr` varchar(255) DEFAULT NULL, + `samlStudentPTypeAttrValue` varchar(255) DEFAULT NULL, + `samlStudentPType` varchar(30) DEFAULT NULL, + `forceReAuth` tinyint(1) DEFAULT 0, + `restrictByIP` tinyint(1) DEFAULT 0, + `updateAccount` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS staff_members; CREATE TABLE `staff_members` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `role` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `phone` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) DEFAULT NULL, + `role` varchar(100) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `phone` varchar(13) DEFAULT NULL, `libraryId` int(11) DEFAULT NULL, - `photo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `photo` varchar(255) DEFAULT NULL, + `description` longtext DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS status_map_values; CREATE TABLE `status_map_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, `indexingProfileId` int(11) NOT NULL, - `value` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `groupedStatus` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `suppress` tinyint(1) DEFAULT '0', - `inLibraryUseOnly` tinyint(1) DEFAULT '0', + `value` varchar(50) NOT NULL, + `status` varchar(50) NOT NULL, + `groupedStatus` varchar(50) NOT NULL, + `suppress` tinyint(1) DEFAULT 0, + `inLibraryUseOnly` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `indexingProfileId` (`indexingProfileId`,`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS stripe_settings; CREATE TABLE `stripe_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `stripePublicKey` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `stripeSecretKey` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `name` varchar(50) NOT NULL, + `stripePublicKey` varchar(500) NOT NULL, + `stripeSecretKey` varchar(500) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS summon_settings; CREATE TABLE `summon_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `summonBaseApi` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `summonApiId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `summonApiPassword` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) NOT NULL, + `summonBaseApi` varchar(50) DEFAULT '', + `summonApiId` varchar(50) DEFAULT '', + `summonApiPassword` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS summon_usage; CREATE TABLE `summon_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `summonId` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `summonId` varchar(15) NOT NULL, `month` int(2) NOT NULL, `year` int(4) NOT NULL, `timesViewedInSearch` int(11) NOT NULL, `timesUsed` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`summonId`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS syndetics_data; CREATE TABLE `syndetics_data` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `groupedRecordPermanentId` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lastDescriptionUpdate` int(11) DEFAULT '0', - `primaryIsbn` varchar(13) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `primaryUpc` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `tableOfContents` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `excerpt` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `lastTableOfContentsUpdate` int(11) DEFAULT '0', - `lastExcerptUpdate` int(11) DEFAULT '0', + `groupedRecordPermanentId` char(40) NOT NULL, + `lastDescriptionUpdate` int(11) DEFAULT 0, + `primaryIsbn` varchar(13) DEFAULT NULL, + `primaryUpc` varchar(25) DEFAULT NULL, + `description` longtext DEFAULT NULL, + `tableOfContents` longtext DEFAULT NULL, + `excerpt` longtext DEFAULT NULL, + `lastTableOfContentsUpdate` int(11) DEFAULT 0, + `lastExcerptUpdate` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `groupedRecordPermanentId` (`groupedRecordPermanentId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS syndetics_settings; CREATE TABLE `syndetics_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `syndeticsKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `hasSummary` tinyint(1) DEFAULT '1', - `hasAvSummary` tinyint(1) DEFAULT '0', - `hasAvProfile` tinyint(1) DEFAULT '0', - `hasToc` tinyint(1) DEFAULT '1', - `hasExcerpt` tinyint(1) DEFAULT '1', - `hasVideoClip` tinyint(1) DEFAULT '0', - `hasFictionProfile` tinyint(1) DEFAULT '0', - `hasAuthorNotes` tinyint(1) DEFAULT '0', - `syndeticsUnbound` tinyint(1) DEFAULT '0', + `syndeticsKey` varchar(50) NOT NULL, + `hasSummary` tinyint(1) DEFAULT 1, + `hasAvSummary` tinyint(1) DEFAULT 0, + `hasAvProfile` tinyint(1) DEFAULT 0, + `hasToc` tinyint(1) DEFAULT 1, + `hasExcerpt` tinyint(1) DEFAULT 1, + `hasVideoClip` tinyint(1) DEFAULT 0, + `hasFictionProfile` tinyint(1) DEFAULT 0, + `hasAuthorNotes` tinyint(1) DEFAULT 0, + `syndeticsUnbound` tinyint(1) DEFAULT 0, `unboundAccountNumber` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -4989,348 +4989,348 @@ CREATE TABLE `system_message_location` ( DROP TABLE IF EXISTS system_messages; CREATE TABLE `system_messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `message` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `css` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `dismissable` tinyint(1) DEFAULT '0', - `showOn` int(11) DEFAULT '0', - `startDate` int(11) DEFAULT '0', - `endDate` int(11) DEFAULT '0', - `messageStyle` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `appMessage` varchar(280) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `pushToApp` tinyint(1) DEFAULT '0', + `title` varchar(255) NOT NULL, + `message` mediumtext DEFAULT NULL, + `css` mediumtext DEFAULT NULL, + `dismissable` tinyint(1) DEFAULT 0, + `showOn` int(11) DEFAULT 0, + `startDate` int(11) DEFAULT 0, + `endDate` int(11) DEFAULT 0, + `messageStyle` varchar(10) DEFAULT '', + `appMessage` varchar(280) DEFAULT NULL, + `pushToApp` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `title` (`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS system_variables; CREATE TABLE `system_variables` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `errorEmail` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ticketEmail` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `searchErrorEmail` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `loadCoversFrom020z` tinyint(1) DEFAULT '0', - `runNightlyFullIndex` tinyint(1) DEFAULT '0', - `currencyCode` char(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'USD', - `allowableHtmlTags` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'p|div|span|a|b|em|strong|i|ul|ol|li|br|h1|h2|h3|h4|h5|h6', - `allowHtmlInMarkdownFields` tinyint(1) DEFAULT '1', - `useHtmlEditorRatherThanMarkdown` tinyint(1) DEFAULT '1', - `storeRecordDetailsInSolr` tinyint(1) DEFAULT '0', - `storeRecordDetailsInDatabase` tinyint(1) DEFAULT '1', - `greenhouseUrl` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `libraryToUseForPayments` tinyint(1) DEFAULT '0', - `solrConnectTimeout` int(11) DEFAULT '2', - `solrQueryTimeout` int(11) DEFAULT '10', - `catalogStatus` tinyint(1) DEFAULT '0', - `offlineMessage` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `indexVersion` int(11) DEFAULT '2', - `searchVersion` int(11) DEFAULT '1', - `regroupAllRecordsDuringNightlyIndex` tinyint(4) DEFAULT '0', - `processEmptyGroupedWorks` tinyint(4) DEFAULT '1', - `appScheme` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'aspen-lida', - `googleBucket` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `trackIpAddresses` tinyint(1) DEFAULT '0', - `communityContentUrl` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `allowScheduledUpdates` tinyint(1) DEFAULT '1', - `doQuickUpdates` tinyint(1) DEFAULT '0', - `supportingCompany` varchar(72) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'ByWater Solutions', - `monitorAntivirus` tinyint(1) DEFAULT '1', - `enableBrandedApp` tinyint(1) DEFAULT '0', - `enableNovelistSeriesIntegration` tinyint(4) DEFAULT '1', + `errorEmail` varchar(128) DEFAULT NULL, + `ticketEmail` varchar(128) DEFAULT NULL, + `searchErrorEmail` varchar(128) DEFAULT NULL, + `loadCoversFrom020z` tinyint(1) DEFAULT 0, + `runNightlyFullIndex` tinyint(1) DEFAULT 0, + `currencyCode` char(3) DEFAULT 'USD', + `allowableHtmlTags` varchar(512) DEFAULT 'p|div|span|a|b|em|strong|i|ul|ol|li|br|h1|h2|h3|h4|h5|h6', + `allowHtmlInMarkdownFields` tinyint(1) DEFAULT 1, + `useHtmlEditorRatherThanMarkdown` tinyint(1) DEFAULT 1, + `storeRecordDetailsInSolr` tinyint(1) DEFAULT 0, + `storeRecordDetailsInDatabase` tinyint(1) DEFAULT 1, + `greenhouseUrl` varchar(128) DEFAULT NULL, + `libraryToUseForPayments` tinyint(1) DEFAULT 0, + `solrConnectTimeout` int(11) DEFAULT 2, + `solrQueryTimeout` int(11) DEFAULT 10, + `catalogStatus` tinyint(1) DEFAULT 0, + `offlineMessage` text DEFAULT NULL, + `indexVersion` int(11) DEFAULT 2, + `searchVersion` int(11) DEFAULT 1, + `regroupAllRecordsDuringNightlyIndex` tinyint(4) DEFAULT 0, + `processEmptyGroupedWorks` tinyint(4) DEFAULT 1, + `appScheme` varchar(72) DEFAULT 'aspen-lida', + `googleBucket` varchar(128) DEFAULT NULL, + `trackIpAddresses` tinyint(1) DEFAULT 0, + `communityContentUrl` varchar(128) DEFAULT '', + `allowScheduledUpdates` tinyint(1) DEFAULT 1, + `doQuickUpdates` tinyint(1) DEFAULT 0, + `supportingCompany` varchar(72) DEFAULT 'ByWater Solutions', + `monitorAntivirus` tinyint(1) DEFAULT 1, + `enableBrandedApp` tinyint(1) DEFAULT 0, + `enableNovelistSeriesIntegration` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS text_block_translation; CREATE TABLE `text_block_translation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `objectType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `objectType` varchar(50) NOT NULL, `objectId` int(11) NOT NULL, `languageId` int(11) NOT NULL, - `translation` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `translation` mediumtext DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `objectType` (`objectType`,`objectId`,`languageId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS themes; CREATE TABLE `themes` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `themeName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `extendsTheme` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `logoName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `headerBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f1f1f1', - `headerBackgroundColorDefault` tinyint(1) DEFAULT '1', - `headerForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#8b8b8b', - `headerForegroundColorDefault` tinyint(1) DEFAULT '1', - `generatedCss` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `headerBottomBorderWidth` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `favicon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `pageBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `pageBackgroundColorDefault` tinyint(1) DEFAULT '1', - `primaryBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#147ce2', - `primaryBackgroundColorDefault` tinyint(1) DEFAULT '1', - `primaryForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `primaryForegroundColorDefault` tinyint(1) DEFAULT '1', - `bodyBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `bodyBackgroundColorDefault` tinyint(1) DEFAULT '1', - `bodyTextColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `bodyTextColorDefault` tinyint(1) DEFAULT '1', - `secondaryBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#de9d03', - `secondaryBackgroundColorDefault` tinyint(1) DEFAULT '1', - `secondaryForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `secondaryForegroundColorDefault` tinyint(1) DEFAULT '1', - `tertiaryBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#de1f0b', - `tertiaryBackgroundColorDefault` tinyint(1) DEFAULT '1', - `tertiaryForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `tertiaryForegroundColorDefault` tinyint(1) DEFAULT '1', - `headingFont` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `headingFontDefault` tinyint(1) DEFAULT '1', - `bodyFont` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `bodyFontDefault` tinyint(1) DEFAULT '1', - `additionalCss` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `additionalCssType` tinyint(1) DEFAULT '0', - `buttonRadius` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `smallButtonRadius` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `browseCategoryPanelColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `browseCategoryPanelColorDefault` tinyint(1) DEFAULT '1', - `selectedBrowseCategoryBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#0087AB', - `selectedBrowseCategoryBackgroundColorDefault` tinyint(1) DEFAULT '1', - `selectedBrowseCategoryForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `selectedBrowseCategoryForegroundColorDefault` tinyint(1) DEFAULT '1', - `selectedBrowseCategoryBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#0087AB', - `selectedBrowseCategoryBorderColorDefault` tinyint(1) DEFAULT '1', - `deselectedBrowseCategoryBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `deselectedBrowseCategoryBackgroundColorDefault` tinyint(1) DEFAULT '1', - `deselectedBrowseCategoryForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `deselectedBrowseCategoryForegroundColorDefault` tinyint(1) DEFAULT '1', - `deselectedBrowseCategoryBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `deselectedBrowseCategoryBorderColorDefault` tinyint(1) DEFAULT '1', - `menubarHighlightBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f1f1f1', - `menubarHighlightBackgroundColorDefault` tinyint(1) DEFAULT '1', - `menubarHighlightForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#265a87', - `menubarHighlightForegroundColorDefault` tinyint(1) DEFAULT '1', - `customHeadingFont` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `customBodyFont` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `capitalizeBrowseCategories` tinyint(1) DEFAULT '-1', - `defaultButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `defaultButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `defaultButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#333333', - `defaultButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `defaultButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#cccccc', - `defaultButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `defaultButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ebebeb', - `defaultButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `defaultButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#333333', - `defaultButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `defaultButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#adadad', - `defaultButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `primaryButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#428bca', - `primaryButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `primaryButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `primaryButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `primaryButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#357ebd', - `primaryButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `primaryButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#3276b1', - `primaryButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `primaryButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `primaryButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `primaryButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#285e8e', - `primaryButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `actionButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#428bca', - `actionButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `actionButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `actionButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `actionButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#357ebd', - `actionButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `actionButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#3276b1', - `actionButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `actionButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `actionButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `actionButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#285e8e', - `actionButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `infoButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#5bc0de', - `infoButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `infoButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `infoButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `infoButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#46b8da', - `infoButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `infoButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#39b3d7', - `infoButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `infoButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `infoButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `infoButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#269abc', - `infoButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `warningButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f0ad4e', - `warningButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `warningButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `warningButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `warningButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#eea236', - `warningButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `warningButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ed9c28', - `warningButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `warningButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `warningButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `warningButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#d58512', - `warningButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `dangerButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#d9534f', - `dangerButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `dangerButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `dangerButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `dangerButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#d43f3a', - `dangerButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `dangerButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#d2322d', - `dangerButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `dangerButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `dangerButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `dangerButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ac2925', - `dangerButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `footerBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `footerBackgroundColorDefault` tinyint(1) DEFAULT '1', - `footerForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6b6b6b', - `footerForegroundColorDefault` tinyint(1) DEFAULT '1', - `footerLogo` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `footerLogoLink` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `closedPanelBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#e7e7e7', - `closedPanelBackgroundColorDefault` tinyint(1) DEFAULT '1', - `closedPanelForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#333333', - `closedPanelForegroundColorDefault` tinyint(1) DEFAULT '1', - `openPanelBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#4DACDE', - `openPanelBackgroundColorDefault` tinyint(1) DEFAULT '1', - `openPanelForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `openPanelForegroundColorDefault` tinyint(1) DEFAULT '1', - `editionsButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f8f9fa', - `editionsButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `editionsButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#212529', - `editionsButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `editionsButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#999999', - `editionsButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `editionsButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#e2e6ea', - `editionsButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `editionsButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#212529', - `editionsButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `editionsButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#dae0e5', - `editionsButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `linkColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#3174AF', - `linkColorDefault` tinyint(1) DEFAULT '1', - `badgeBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#666666', - `badgeBackgroundColorDefault` tinyint(1) DEFAULT '1', - `badgeForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `badgeForegroundColorDefault` tinyint(1) DEFAULT '1', - `badgeBorderRadius` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `toolsButtonBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#4F4F4F', - `toolsButtonBackgroundColorDefault` tinyint(1) DEFAULT '1', - `toolsButtonForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `toolsButtonForegroundColorDefault` tinyint(1) DEFAULT '1', - `toolsButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#636363', - `toolsButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `toolsButtonHoverBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#636363', - `toolsButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT '1', - `toolsButtonHoverForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `toolsButtonHoverForegroundColorDefault` tinyint(1) DEFAULT '1', - `toolsButtonHoverBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#636363', - `toolsButtonHoverBorderColorDefault` tinyint(1) DEFAULT '1', - `panelBodyBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `panelBodyBackgroundColorDefault` tinyint(1) DEFAULT '1', - `panelBodyForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#404040', - `panelBodyForegroundColorDefault` tinyint(1) DEFAULT '1', - `linkHoverColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#265a87', - `linkHoverColorDefault` tinyint(1) DEFAULT '1', - `resultLabelColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#44484a', - `resultLabelColorDefault` tinyint(1) DEFAULT '1', - `resultValueColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `resultValueColorDefault` tinyint(1) DEFAULT '1', - `breadcrumbsBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f5f5f5', - `breadcrumbsBackgroundColorDefault` tinyint(1) DEFAULT '1', - `breadcrumbsForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `breadcrumbsForegroundColorDefault` tinyint(1) DEFAULT '1', - `searchToolsBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f5f5f5', - `searchToolsBackgroundColorDefault` tinyint(1) DEFAULT '1', - `searchToolsBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#e3e3e3', - `searchToolsBorderColorDefault` tinyint(1) DEFAULT '1', - `searchToolsForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `searchToolsForegroundColorDefault` tinyint(1) DEFAULT '1', - `menubarBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#f1f1f1', - `menubarBackgroundColorDefault` tinyint(1) DEFAULT '1', - `menubarForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#303030', - `menubarForegroundColorDefault` tinyint(1) DEFAULT '1', - `menuDropdownBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ededed', - `menuDropdownBackgroundColorDefault` tinyint(1) DEFAULT '1', - `menuDropdownForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#404040', - `menuDropdownForegroundColorDefault` tinyint(1) DEFAULT '1', - `modalDialogBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `modalDialogBackgroundColorDefault` tinyint(1) DEFAULT '1', - `modalDialogForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#333333', - `modalDialogForegroundColorDefault` tinyint(1) DEFAULT '1', - `modalDialogHeaderFooterBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `modalDialogHeaderFooterBackgroundColorDefault` tinyint(1) DEFAULT '1', - `modalDialogHeaderFooterForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#333333', - `modalDialogHeaderFooterForegroundColorDefault` tinyint(1) DEFAULT '1', - `modalDialogHeaderFooterBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#e5e5e5', - `modalDialogHeaderFooterBorderColorDefault` tinyint(1) DEFAULT '1', - `footerLogoAlt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `logoApp` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `browseCategoryImageSize` tinyint(1) DEFAULT '-1', - `browseImageLayout` tinyint(1) DEFAULT '-1', - `fullWidth` tinyint(1) DEFAULT '0', - `coverStyle` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'border', - `headerBackgroundImage` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `headerBackgroundImageSize` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `headerBackgroundImageRepeat` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `displayName` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `isHighContrast` tinyint(1) DEFAULT '0', - `inactiveTabBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#ffffff', - `inactiveTabBackgroundColorDefault` tinyint(1) DEFAULT '1', - `inactiveTabForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#6B6B6B', - `inactiveTabForegroundColorDefault` tinyint(1) DEFAULT '1', - `activeTabBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#e7e7e7', - `activeTabBackgroundColorDefault` tinyint(1) DEFAULT '1', - `activeTabForegroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#333333', - `activeTabForegroundColorDefault` tinyint(1) DEFAULT '1', - `defaultCover` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `booksImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `eBooksImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `audioBooksImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `musicImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `moviesImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `booksImageSelected` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `eBooksImageSelected` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `audioBooksImageSelected` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `musicImageSelected` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `moviesImageSelected` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `cookieConsentBackgroundColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#1D7FF0', - `cookieConsentBackgroundColorDefault` tinyint(1) DEFAULT '1', - `cookieConsentButtonColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#1D7FF0', - `cookieConsentButtonColorDefault` tinyint(1) DEFAULT '1', - `cookieConsentButtonHoverColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#FF0000', - `cookieConsentButtonHoverColorDefault` tinyint(1) DEFAULT '1', - `cookieConsentTextColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#FFFFFF', - `cookieConsentTextColorDefault` tinyint(1) DEFAULT '1', - `cookieConsentButtonTextColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#FFFFFF', - `cookieConsentButtonTextColorDefault` tinyint(1) DEFAULT '1', - `cookieConsentButtonHoverTextColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#FFFFFF', - `cookieConsentButtonHoverTextColorDefault` tinyint(1) DEFAULT '1', - `cookieConsentButtonBorderColor` char(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '#FFFFFF', - `cookieConsentButtonBorderColorDefault` tinyint(1) DEFAULT '1', - `catalogImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `genealogyImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `articlesDBImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `eventsImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `listsImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `libraryWebsiteImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `historyArchivesImage` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `accessibleBrowseCategories` tinyint(4) NOT NULL DEFAULT '0', + `themeName` varchar(100) NOT NULL, + `extendsTheme` varchar(100) DEFAULT NULL, + `logoName` varchar(100) DEFAULT '', + `headerBackgroundColor` char(7) DEFAULT '#f1f1f1', + `headerBackgroundColorDefault` tinyint(1) DEFAULT 1, + `headerForegroundColor` char(7) DEFAULT '#8b8b8b', + `headerForegroundColorDefault` tinyint(1) DEFAULT 1, + `generatedCss` longtext DEFAULT NULL, + `headerBottomBorderWidth` varchar(6) DEFAULT NULL, + `favicon` varchar(100) DEFAULT '', + `pageBackgroundColor` char(7) DEFAULT '#ffffff', + `pageBackgroundColorDefault` tinyint(1) DEFAULT 1, + `primaryBackgroundColor` char(7) DEFAULT '#147ce2', + `primaryBackgroundColorDefault` tinyint(1) DEFAULT 1, + `primaryForegroundColor` char(7) DEFAULT '#ffffff', + `primaryForegroundColorDefault` tinyint(1) DEFAULT 1, + `bodyBackgroundColor` char(7) DEFAULT '#ffffff', + `bodyBackgroundColorDefault` tinyint(1) DEFAULT 1, + `bodyTextColor` char(7) DEFAULT '#6B6B6B', + `bodyTextColorDefault` tinyint(1) DEFAULT 1, + `secondaryBackgroundColor` char(7) DEFAULT '#de9d03', + `secondaryBackgroundColorDefault` tinyint(1) DEFAULT 1, + `secondaryForegroundColor` char(7) DEFAULT '#ffffff', + `secondaryForegroundColorDefault` tinyint(1) DEFAULT 1, + `tertiaryBackgroundColor` char(7) DEFAULT '#de1f0b', + `tertiaryBackgroundColorDefault` tinyint(1) DEFAULT 1, + `tertiaryForegroundColor` char(7) DEFAULT '#ffffff', + `tertiaryForegroundColorDefault` tinyint(1) DEFAULT 1, + `headingFont` varchar(191) DEFAULT NULL, + `headingFontDefault` tinyint(1) DEFAULT 1, + `bodyFont` varchar(191) DEFAULT NULL, + `bodyFontDefault` tinyint(1) DEFAULT 1, + `additionalCss` mediumtext DEFAULT NULL, + `additionalCssType` tinyint(1) DEFAULT 0, + `buttonRadius` varchar(6) DEFAULT NULL, + `smallButtonRadius` varchar(6) DEFAULT NULL, + `browseCategoryPanelColor` char(7) DEFAULT '#ffffff', + `browseCategoryPanelColorDefault` tinyint(1) DEFAULT 1, + `selectedBrowseCategoryBackgroundColor` char(7) DEFAULT '#0087AB', + `selectedBrowseCategoryBackgroundColorDefault` tinyint(1) DEFAULT 1, + `selectedBrowseCategoryForegroundColor` char(7) DEFAULT '#ffffff', + `selectedBrowseCategoryForegroundColorDefault` tinyint(1) DEFAULT 1, + `selectedBrowseCategoryBorderColor` char(7) DEFAULT '#0087AB', + `selectedBrowseCategoryBorderColorDefault` tinyint(1) DEFAULT 1, + `deselectedBrowseCategoryBackgroundColor` char(7) DEFAULT '#ffffff', + `deselectedBrowseCategoryBackgroundColorDefault` tinyint(1) DEFAULT 1, + `deselectedBrowseCategoryForegroundColor` char(7) DEFAULT '#6B6B6B', + `deselectedBrowseCategoryForegroundColorDefault` tinyint(1) DEFAULT 1, + `deselectedBrowseCategoryBorderColor` char(7) DEFAULT '#6B6B6B', + `deselectedBrowseCategoryBorderColorDefault` tinyint(1) DEFAULT 1, + `menubarHighlightBackgroundColor` char(7) DEFAULT '#f1f1f1', + `menubarHighlightBackgroundColorDefault` tinyint(1) DEFAULT 1, + `menubarHighlightForegroundColor` char(7) DEFAULT '#265a87', + `menubarHighlightForegroundColorDefault` tinyint(1) DEFAULT 1, + `customHeadingFont` varchar(100) DEFAULT NULL, + `customBodyFont` varchar(100) DEFAULT NULL, + `capitalizeBrowseCategories` tinyint(1) DEFAULT -1, + `defaultButtonBackgroundColor` char(7) DEFAULT '#ffffff', + `defaultButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `defaultButtonForegroundColor` char(7) DEFAULT '#333333', + `defaultButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `defaultButtonBorderColor` char(7) DEFAULT '#cccccc', + `defaultButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `defaultButtonHoverBackgroundColor` char(7) DEFAULT '#ebebeb', + `defaultButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `defaultButtonHoverForegroundColor` char(7) DEFAULT '#333333', + `defaultButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `defaultButtonHoverBorderColor` char(7) DEFAULT '#adadad', + `defaultButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `primaryButtonBackgroundColor` char(7) DEFAULT '#428bca', + `primaryButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `primaryButtonForegroundColor` char(7) DEFAULT '#ffffff', + `primaryButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `primaryButtonBorderColor` char(7) DEFAULT '#357ebd', + `primaryButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `primaryButtonHoverBackgroundColor` char(7) DEFAULT '#3276b1', + `primaryButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `primaryButtonHoverForegroundColor` char(7) DEFAULT '#ffffff', + `primaryButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `primaryButtonHoverBorderColor` char(7) DEFAULT '#285e8e', + `primaryButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `actionButtonBackgroundColor` char(7) DEFAULT '#428bca', + `actionButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `actionButtonForegroundColor` char(7) DEFAULT '#ffffff', + `actionButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `actionButtonBorderColor` char(7) DEFAULT '#357ebd', + `actionButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `actionButtonHoverBackgroundColor` char(7) DEFAULT '#3276b1', + `actionButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `actionButtonHoverForegroundColor` char(7) DEFAULT '#ffffff', + `actionButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `actionButtonHoverBorderColor` char(7) DEFAULT '#285e8e', + `actionButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `infoButtonBackgroundColor` char(7) DEFAULT '#5bc0de', + `infoButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `infoButtonForegroundColor` char(7) DEFAULT '#ffffff', + `infoButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `infoButtonBorderColor` char(7) DEFAULT '#46b8da', + `infoButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `infoButtonHoverBackgroundColor` char(7) DEFAULT '#39b3d7', + `infoButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `infoButtonHoverForegroundColor` char(7) DEFAULT '#ffffff', + `infoButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `infoButtonHoverBorderColor` char(7) DEFAULT '#269abc', + `infoButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `warningButtonBackgroundColor` char(7) DEFAULT '#f0ad4e', + `warningButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `warningButtonForegroundColor` char(7) DEFAULT '#ffffff', + `warningButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `warningButtonBorderColor` char(7) DEFAULT '#eea236', + `warningButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `warningButtonHoverBackgroundColor` char(7) DEFAULT '#ed9c28', + `warningButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `warningButtonHoverForegroundColor` char(7) DEFAULT '#ffffff', + `warningButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `warningButtonHoverBorderColor` char(7) DEFAULT '#d58512', + `warningButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `dangerButtonBackgroundColor` char(7) DEFAULT '#d9534f', + `dangerButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `dangerButtonForegroundColor` char(7) DEFAULT '#ffffff', + `dangerButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `dangerButtonBorderColor` char(7) DEFAULT '#d43f3a', + `dangerButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `dangerButtonHoverBackgroundColor` char(7) DEFAULT '#d2322d', + `dangerButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `dangerButtonHoverForegroundColor` char(7) DEFAULT '#ffffff', + `dangerButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `dangerButtonHoverBorderColor` char(7) DEFAULT '#ac2925', + `dangerButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `footerBackgroundColor` char(7) DEFAULT '#ffffff', + `footerBackgroundColorDefault` tinyint(1) DEFAULT 1, + `footerForegroundColor` char(7) DEFAULT '#6b6b6b', + `footerForegroundColorDefault` tinyint(1) DEFAULT 1, + `footerLogo` varchar(100) DEFAULT NULL, + `footerLogoLink` varchar(255) DEFAULT NULL, + `closedPanelBackgroundColor` char(7) DEFAULT '#e7e7e7', + `closedPanelBackgroundColorDefault` tinyint(1) DEFAULT 1, + `closedPanelForegroundColor` char(7) DEFAULT '#333333', + `closedPanelForegroundColorDefault` tinyint(1) DEFAULT 1, + `openPanelBackgroundColor` char(7) DEFAULT '#4DACDE', + `openPanelBackgroundColorDefault` tinyint(1) DEFAULT 1, + `openPanelForegroundColor` char(7) DEFAULT '#ffffff', + `openPanelForegroundColorDefault` tinyint(1) DEFAULT 1, + `editionsButtonBackgroundColor` char(7) DEFAULT '#f8f9fa', + `editionsButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `editionsButtonForegroundColor` char(7) DEFAULT '#212529', + `editionsButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `editionsButtonBorderColor` char(7) DEFAULT '#999999', + `editionsButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `editionsButtonHoverBackgroundColor` char(7) DEFAULT '#e2e6ea', + `editionsButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `editionsButtonHoverForegroundColor` char(7) DEFAULT '#212529', + `editionsButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `editionsButtonHoverBorderColor` char(7) DEFAULT '#dae0e5', + `editionsButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `linkColor` char(7) DEFAULT '#3174AF', + `linkColorDefault` tinyint(1) DEFAULT 1, + `badgeBackgroundColor` char(7) DEFAULT '#666666', + `badgeBackgroundColorDefault` tinyint(1) DEFAULT 1, + `badgeForegroundColor` char(7) DEFAULT '#ffffff', + `badgeForegroundColorDefault` tinyint(1) DEFAULT 1, + `badgeBorderRadius` varchar(6) DEFAULT NULL, + `toolsButtonBackgroundColor` char(7) DEFAULT '#4F4F4F', + `toolsButtonBackgroundColorDefault` tinyint(1) DEFAULT 1, + `toolsButtonForegroundColor` char(7) DEFAULT '#ffffff', + `toolsButtonForegroundColorDefault` tinyint(1) DEFAULT 1, + `toolsButtonBorderColor` char(7) DEFAULT '#636363', + `toolsButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `toolsButtonHoverBackgroundColor` char(7) DEFAULT '#636363', + `toolsButtonHoverBackgroundColorDefault` tinyint(1) DEFAULT 1, + `toolsButtonHoverForegroundColor` char(7) DEFAULT '#ffffff', + `toolsButtonHoverForegroundColorDefault` tinyint(1) DEFAULT 1, + `toolsButtonHoverBorderColor` char(7) DEFAULT '#636363', + `toolsButtonHoverBorderColorDefault` tinyint(1) DEFAULT 1, + `panelBodyBackgroundColor` char(7) DEFAULT '#ffffff', + `panelBodyBackgroundColorDefault` tinyint(1) DEFAULT 1, + `panelBodyForegroundColor` char(7) DEFAULT '#404040', + `panelBodyForegroundColorDefault` tinyint(1) DEFAULT 1, + `linkHoverColor` char(7) DEFAULT '#265a87', + `linkHoverColorDefault` tinyint(1) DEFAULT 1, + `resultLabelColor` char(7) DEFAULT '#44484a', + `resultLabelColorDefault` tinyint(1) DEFAULT 1, + `resultValueColor` char(7) DEFAULT '#6B6B6B', + `resultValueColorDefault` tinyint(1) DEFAULT 1, + `breadcrumbsBackgroundColor` char(7) DEFAULT '#f5f5f5', + `breadcrumbsBackgroundColorDefault` tinyint(1) DEFAULT 1, + `breadcrumbsForegroundColor` char(7) DEFAULT '#6B6B6B', + `breadcrumbsForegroundColorDefault` tinyint(1) DEFAULT 1, + `searchToolsBackgroundColor` char(7) DEFAULT '#f5f5f5', + `searchToolsBackgroundColorDefault` tinyint(1) DEFAULT 1, + `searchToolsBorderColor` char(7) DEFAULT '#e3e3e3', + `searchToolsBorderColorDefault` tinyint(1) DEFAULT 1, + `searchToolsForegroundColor` char(7) DEFAULT '#6B6B6B', + `searchToolsForegroundColorDefault` tinyint(1) DEFAULT 1, + `menubarBackgroundColor` char(7) DEFAULT '#f1f1f1', + `menubarBackgroundColorDefault` tinyint(1) DEFAULT 1, + `menubarForegroundColor` char(7) DEFAULT '#303030', + `menubarForegroundColorDefault` tinyint(1) DEFAULT 1, + `menuDropdownBackgroundColor` char(7) DEFAULT '#ededed', + `menuDropdownBackgroundColorDefault` tinyint(1) DEFAULT 1, + `menuDropdownForegroundColor` char(7) DEFAULT '#404040', + `menuDropdownForegroundColorDefault` tinyint(1) DEFAULT 1, + `modalDialogBackgroundColor` char(7) DEFAULT '#ffffff', + `modalDialogBackgroundColorDefault` tinyint(1) DEFAULT 1, + `modalDialogForegroundColor` char(7) DEFAULT '#333333', + `modalDialogForegroundColorDefault` tinyint(1) DEFAULT 1, + `modalDialogHeaderFooterBackgroundColor` char(7) DEFAULT '#ffffff', + `modalDialogHeaderFooterBackgroundColorDefault` tinyint(1) DEFAULT 1, + `modalDialogHeaderFooterForegroundColor` char(7) DEFAULT '#333333', + `modalDialogHeaderFooterForegroundColorDefault` tinyint(1) DEFAULT 1, + `modalDialogHeaderFooterBorderColor` char(7) DEFAULT '#e5e5e5', + `modalDialogHeaderFooterBorderColorDefault` tinyint(1) DEFAULT 1, + `footerLogoAlt` varchar(255) DEFAULT NULL, + `logoApp` varchar(100) DEFAULT NULL, + `browseCategoryImageSize` tinyint(1) DEFAULT -1, + `browseImageLayout` tinyint(1) DEFAULT -1, + `fullWidth` tinyint(1) DEFAULT 0, + `coverStyle` varchar(50) NOT NULL DEFAULT 'border', + `headerBackgroundImage` varchar(255) DEFAULT NULL, + `headerBackgroundImageSize` varchar(75) DEFAULT NULL, + `headerBackgroundImageRepeat` varchar(75) DEFAULT NULL, + `displayName` varchar(60) NOT NULL, + `isHighContrast` tinyint(1) DEFAULT 0, + `inactiveTabBackgroundColor` char(7) DEFAULT '#ffffff', + `inactiveTabBackgroundColorDefault` tinyint(1) DEFAULT 1, + `inactiveTabForegroundColor` char(7) DEFAULT '#6B6B6B', + `inactiveTabForegroundColorDefault` tinyint(1) DEFAULT 1, + `activeTabBackgroundColor` char(7) DEFAULT '#e7e7e7', + `activeTabBackgroundColorDefault` tinyint(1) DEFAULT 1, + `activeTabForegroundColor` char(7) DEFAULT '#333333', + `activeTabForegroundColorDefault` tinyint(1) DEFAULT 1, + `defaultCover` varchar(100) DEFAULT '', + `booksImage` varchar(100) DEFAULT '', + `eBooksImage` varchar(100) DEFAULT '', + `audioBooksImage` varchar(100) DEFAULT '', + `musicImage` varchar(100) DEFAULT '', + `moviesImage` varchar(100) DEFAULT '', + `booksImageSelected` varchar(100) DEFAULT '', + `eBooksImageSelected` varchar(100) DEFAULT '', + `audioBooksImageSelected` varchar(100) DEFAULT '', + `musicImageSelected` varchar(100) DEFAULT '', + `moviesImageSelected` varchar(100) DEFAULT '', + `cookieConsentBackgroundColor` char(7) DEFAULT '#1D7FF0', + `cookieConsentBackgroundColorDefault` tinyint(1) DEFAULT 1, + `cookieConsentButtonColor` char(7) DEFAULT '#1D7FF0', + `cookieConsentButtonColorDefault` tinyint(1) DEFAULT 1, + `cookieConsentButtonHoverColor` char(7) DEFAULT '#FF0000', + `cookieConsentButtonHoverColorDefault` tinyint(1) DEFAULT 1, + `cookieConsentTextColor` char(7) DEFAULT '#FFFFFF', + `cookieConsentTextColorDefault` tinyint(1) DEFAULT 1, + `cookieConsentButtonTextColor` char(7) DEFAULT '#FFFFFF', + `cookieConsentButtonTextColorDefault` tinyint(1) DEFAULT 1, + `cookieConsentButtonHoverTextColor` char(7) DEFAULT '#FFFFFF', + `cookieConsentButtonHoverTextColorDefault` tinyint(1) DEFAULT 1, + `cookieConsentButtonBorderColor` char(7) DEFAULT '#FFFFFF', + `cookieConsentButtonBorderColorDefault` tinyint(1) DEFAULT 1, + `catalogImage` varchar(100) DEFAULT '', + `genealogyImage` varchar(100) DEFAULT '', + `articlesDBImage` varchar(100) DEFAULT '', + `eventsImage` varchar(100) DEFAULT '', + `listsImage` varchar(100) DEFAULT '', + `libraryWebsiteImage` varchar(100) DEFAULT '', + `historyArchivesImage` varchar(100) DEFAULT '', + `accessibleBrowseCategories` tinyint(4) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `themeName` (`themeName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ticket; CREATE TABLE `ticket` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `ticketId` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `displayUrl` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `ticketId` varchar(20) NOT NULL, + `displayUrl` varchar(500) DEFAULT NULL, + `title` text DEFAULT NULL, + `description` text DEFAULT NULL, `dateCreated` int(11) NOT NULL, `requestingPartner` int(11) DEFAULT NULL, - `status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `queue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `severity` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `partnerPriority` int(11) DEFAULT '0', + `status` varchar(50) DEFAULT NULL, + `queue` varchar(50) DEFAULT NULL, + `severity` varchar(50) DEFAULT NULL, + `partnerPriority` int(11) DEFAULT 0, `partnerPriorityChangeDate` int(11) DEFAULT NULL, `dateClosed` int(11) DEFAULT NULL, `developmentTaskId` int(11) DEFAULT NULL, @@ -5340,32 +5340,32 @@ CREATE TABLE `ticket` ( DROP TABLE IF EXISTS ticket_component_feed; CREATE TABLE `ticket_component_feed` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `rssFeed` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) NOT NULL, + `rssFeed` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ticket_queue_feed; CREATE TABLE `ticket_queue_feed` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `rssFeed` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) NOT NULL, + `rssFeed` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ticket_severity_feed; CREATE TABLE `ticket_severity_feed` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `rssFeed` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) NOT NULL, + `rssFeed` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS ticket_status_feed; CREATE TABLE `ticket_status_feed` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `rssFeed` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) NOT NULL, + `rssFeed` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5376,7 +5376,7 @@ CREATE TABLE `ticket_trend_bugs_by_severity` ( `month` int(11) NOT NULL, `day` int(11) NOT NULL, `severity` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `count` int(11) DEFAULT '0', + `count` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uniqueness` (`year`,`month`,`day`,`severity`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -5388,7 +5388,7 @@ CREATE TABLE `ticket_trend_by_component` ( `day` int(11) NOT NULL, `component` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `queue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `count` int(11) DEFAULT '0', + `count` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uniqueness` (`year`,`month`,`day`,`component`,`queue`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -5400,7 +5400,7 @@ CREATE TABLE `ticket_trend_by_partner` ( `day` int(11) NOT NULL, `requestingPartner` int(11) DEFAULT NULL, `queue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `count` int(11) DEFAULT '0', + `count` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uniqueness` (`year`,`month`,`day`,`requestingPartner`,`queue`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -5411,7 +5411,7 @@ CREATE TABLE `ticket_trend_by_queue` ( `month` int(11) NOT NULL, `day` int(11) NOT NULL, `queue` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `count` int(11) DEFAULT '0', + `count` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `uniqueness` (`year`,`month`,`day`,`queue`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -5419,10 +5419,10 @@ DROP TABLE IF EXISTS time_to_reshelve; CREATE TABLE `time_to_reshelve` ( `id` int(11) NOT NULL AUTO_INCREMENT, `indexingProfileId` int(11) NOT NULL, - `locations` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `locations` varchar(100) NOT NULL, `numHoursToOverride` int(11) NOT NULL, - `status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `groupedStatus` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `status` varchar(50) NOT NULL, + `groupedStatus` varchar(50) NOT NULL, `weight` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `indexingProfileId` (`indexingProfileId`) @@ -5430,8 +5430,8 @@ CREATE TABLE `time_to_reshelve` ( DROP TABLE IF EXISTS title_authorities; CREATE TABLE `title_authorities` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `originalName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `authoritativeName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `originalName` varchar(255) NOT NULL, + `authoritativeName` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `originalName` (`originalName`), KEY `authoritativeName` (`authoritativeName`) @@ -5440,8 +5440,8 @@ DROP TABLE IF EXISTS translation_map_values; CREATE TABLE `translation_map_values` ( `id` int(11) NOT NULL AUTO_INCREMENT, `translationMapId` int(11) NOT NULL, - `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `translation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `value` varchar(255) NOT NULL, + `translation` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `translationMapId` (`translationMapId`,`value`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5449,8 +5449,8 @@ DROP TABLE IF EXISTS translation_maps; CREATE TABLE `translation_maps` ( `id` int(11) NOT NULL AUTO_INCREMENT, `indexingProfileId` int(11) NOT NULL, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `usesRegularExpressions` tinyint(1) DEFAULT '0', + `name` varchar(50) NOT NULL, + `usesRegularExpressions` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `profileName` (`indexingProfileId`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5460,36 +5460,36 @@ CREATE TABLE `translation_terms` ( `term` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, `parameterNotes` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `samplePageUrl` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `defaultText` text CHARACTER SET utf8 COLLATE utf8_general_ci, - `isPublicFacing` tinyint(1) DEFAULT '0', - `isAdminFacing` tinyint(1) DEFAULT '0', - `isMetadata` tinyint(1) DEFAULT '0', - `isAdminEnteredData` tinyint(1) DEFAULT '0', - `lastUpdate` int(11) DEFAULT '0', + `defaultText` text CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `isPublicFacing` tinyint(1) DEFAULT 0, + `isAdminFacing` tinyint(1) DEFAULT 0, + `isMetadata` tinyint(1) DEFAULT 0, + `isAdminEnteredData` tinyint(1) DEFAULT 0, + `lastUpdate` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `url` (`samplePageUrl`), KEY `term` (`term`(500)) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS translations; CREATE TABLE `translations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `termId` int(11) NOT NULL, `languageId` int(11) NOT NULL, - `translation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin, - `translated` tinyint(4) NOT NULL DEFAULT '0', - `needsReview` tinyint(1) DEFAULT '0', - `lastCheckInCommunity` int(11) DEFAULT '0', + `translation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL, + `translated` tinyint(4) NOT NULL DEFAULT 0, + `needsReview` tinyint(1) DEFAULT 0, + `lastCheckInCommunity` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `term_language` (`termId`,`languageId`), KEY `translation_status` (`languageId`,`translated`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS twilio_settings; CREATE TABLE `twilio_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `phone` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `accountSid` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `authToken` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, + `phone` varchar(15) DEFAULT NULL, + `accountSid` varchar(50) DEFAULT NULL, + `authToken` varchar(256) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -5497,36 +5497,36 @@ DROP TABLE IF EXISTS two_factor_auth_codes; CREATE TABLE `two_factor_auth_codes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, - `sessionId` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `code` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `sessionId` varchar(128) DEFAULT NULL, + `code` varchar(7) DEFAULT NULL, `dateSent` int(11) DEFAULT NULL, - `status` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `status` varchar(75) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS two_factor_auth_settings; CREATE TABLE `two_factor_auth_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isEnabled` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `authMethods` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `deniedMessage` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `name` varchar(50) DEFAULT NULL, + `isEnabled` varchar(25) DEFAULT NULL, + `authMethods` varchar(75) DEFAULT NULL, + `deniedMessage` longtext DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS usage_by_ip_address; CREATE TABLE `usage_by_ip_address` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ipAddress` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, + `ipAddress` varchar(25) DEFAULT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `numRequests` int(11) DEFAULT '0', - `numBlockedRequests` int(11) DEFAULT '0', - `numBlockedApiRequests` int(11) DEFAULT '0', - `lastRequest` int(11) DEFAULT '0', - `numLoginAttempts` int(11) DEFAULT '0', - `numFailedLoginAttempts` int(11) DEFAULT '0', - `numSpammyRequests` int(11) DEFAULT '0', + `numRequests` int(11) DEFAULT 0, + `numBlockedRequests` int(11) DEFAULT 0, + `numBlockedApiRequests` int(11) DEFAULT 0, + `lastRequest` int(11) DEFAULT 0, + `numLoginAttempts` int(11) DEFAULT 0, + `numFailedLoginAttempts` int(11) DEFAULT 0, + `numSpammyRequests` int(11) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `ip` (`year`,`month`,`instance`,`ipAddress`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5534,11 +5534,11 @@ DROP TABLE IF EXISTS usage_by_user_agent; CREATE TABLE `usage_by_user_agent` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userAgentId` int(11) NOT NULL, - `instance` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(255) DEFAULT NULL, `year` int(4) NOT NULL, `month` int(2) NOT NULL, - `numRequests` int(11) NOT NULL DEFAULT '0', - `numBlockedRequests` int(11) NOT NULL DEFAULT '0', + `numRequests` int(11) NOT NULL DEFAULT 0, + `numBlockedRequests` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `userAgentId` (`userAgentId`,`year`,`instance`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5547,9 +5547,9 @@ CREATE TABLE `usage_tracking` ( `usageId` int(11) NOT NULL AUTO_INCREMENT, `ipId` int(11) NOT NULL, `locationId` int(11) NOT NULL, - `numPageViews` int(11) NOT NULL DEFAULT '0', - `numHolds` int(11) NOT NULL DEFAULT '0', - `numRenewals` int(11) NOT NULL DEFAULT '0', + `numPageViews` int(11) NOT NULL DEFAULT 0, + `numHolds` int(11) NOT NULL DEFAULT 0, + `numRenewals` int(11) NOT NULL DEFAULT 0, `trackingDate` bigint(20) NOT NULL, PRIMARY KEY (`usageId`), KEY `usageId` (`usageId`), @@ -5558,69 +5558,69 @@ CREATE TABLE `usage_tracking` ( DROP TABLE IF EXISTS user; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `password` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `firstname` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `lastname` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `email` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `cat_username` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `cat_password` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `username` varchar(36) NOT NULL, + `password` varchar(256) DEFAULT NULL, + `firstname` varchar(256) NOT NULL, + `lastname` varchar(256) NOT NULL, + `email` varchar(256) NOT NULL DEFAULT '', + `cat_username` varchar(256) DEFAULT NULL, + `cat_password` varchar(256) DEFAULT '', `created` datetime NOT NULL, `homeLocationId` int(11) NOT NULL COMMENT 'A link to the locations table for the users home location (branch) defined in millennium', `myLocation1Id` int(11) NOT NULL COMMENT 'A link to the locations table representing an alternate branch the users frequents or that is close by', `myLocation2Id` int(11) NOT NULL COMMENT 'A link to the locations table representing an alternate branch the users frequents or that is close by', - `trackReadingHistory` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether or not Reading History should be tracked.', - `bypassAutoLogout` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Whether or not the user wants to bypass the automatic logout code on public workstations.', - `displayName` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `disableCoverArt` tinyint(4) NOT NULL DEFAULT '0', - `disableRecommendations` tinyint(4) NOT NULL DEFAULT '0', - `phone` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `patronType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `overdriveEmail` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `promptForOverdriveEmail` tinyint(4) DEFAULT '1', + `trackReadingHistory` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Whether or not Reading History should be tracked.', + `bypassAutoLogout` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Whether or not the user wants to bypass the automatic logout code on public workstations.', + `displayName` varchar(256) NOT NULL, + `disableCoverArt` tinyint(4) NOT NULL DEFAULT 0, + `disableRecommendations` tinyint(4) NOT NULL DEFAULT 0, + `phone` varchar(256) NOT NULL DEFAULT '', + `patronType` varchar(50) NOT NULL DEFAULT '', + `overdriveEmail` varchar(256) NOT NULL DEFAULT '', + `promptForOverdriveEmail` tinyint(4) DEFAULT 1, `preferredLibraryInterface` int(11) DEFAULT NULL, - `initialReadingHistoryLoaded` tinyint(4) DEFAULT '0', - `noPromptForUserReviews` tinyint(1) DEFAULT '0', - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'ils', - `interfaceLanguage` varchar(3) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'en', - `searchPreferenceLanguage` tinyint(1) DEFAULT '-1', - `rememberHoldPickupLocation` tinyint(1) DEFAULT '0', - `lockedFacets` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `lastListUsed` int(11) DEFAULT '-1', - `lastLoginValidation` int(11) DEFAULT '-1', - `alternateLibraryCard` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `alternateLibraryCardPassword` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `hideResearchStarters` tinyint(1) DEFAULT '0', - `updateMessage` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `initialReadingHistoryLoaded` tinyint(4) DEFAULT 0, + `noPromptForUserReviews` tinyint(1) DEFAULT 0, + `source` varchar(50) DEFAULT 'ils', + `interfaceLanguage` varchar(3) DEFAULT 'en', + `searchPreferenceLanguage` tinyint(1) DEFAULT -1, + `rememberHoldPickupLocation` tinyint(1) DEFAULT 0, + `lockedFacets` mediumtext DEFAULT NULL, + `lastListUsed` int(11) DEFAULT -1, + `lastLoginValidation` int(11) DEFAULT -1, + `alternateLibraryCard` varchar(50) DEFAULT '', + `alternateLibraryCardPassword` varchar(256) NOT NULL DEFAULT '', + `hideResearchStarters` tinyint(1) DEFAULT 0, + `updateMessage` mediumtext DEFAULT NULL, `updateMessageIsError` tinyint(4) DEFAULT NULL, - `pickupLocationId` int(11) DEFAULT '0', - `lastReadingHistoryUpdate` int(11) DEFAULT '0', - `holdInfoLastLoaded` int(11) DEFAULT '0', - `checkoutInfoLastLoaded` int(11) DEFAULT '0', + `pickupLocationId` int(11) DEFAULT 0, + `lastReadingHistoryUpdate` int(11) DEFAULT 0, + `holdInfoLastLoaded` int(11) DEFAULT 0, + `checkoutInfoLastLoaded` int(11) DEFAULT 0, `proPayPayerAccountId` bigint(20) DEFAULT NULL, - `twoFactorStatus` int(11) DEFAULT '0', - `hooplaCheckOutConfirmation` tinyint(3) unsigned NOT NULL DEFAULT '1', - `axis360Email` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', - `promptForAxis360Email` tinyint(4) DEFAULT '1', - `oAuthAccessToken` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `oAuthRefreshToken` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `disableAccountLinking` tinyint(1) DEFAULT '0', - `browseAddToHome` tinyint(1) DEFAULT '1', - `isLoggedInViaSSO` tinyint(1) DEFAULT '0', - `materialsRequestSendEmailOnAssign` tinyint(1) DEFAULT '0', - `materialsRequestReplyToAddress` varchar(70) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `materialsRequestEmailSignature` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `preferredTheme` int(11) DEFAULT '-1', - `unique_ils_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ils_barcode` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ils_username` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `ils_password` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `displayListAuthor` tinyint(1) DEFAULT '1', - `userCookiePreferenceEssential` int(11) DEFAULT '0', - `userCookiePreferenceAnalytics` int(11) DEFAULT '0', - `disableCirculationActions` tinyint(1) DEFAULT '0', - `onboardAppNotifications` tinyint(1) NOT NULL DEFAULT '1', - `shouldAskBrightness` tinyint(1) NOT NULL DEFAULT '1', + `twoFactorStatus` int(11) DEFAULT 0, + `hooplaCheckOutConfirmation` tinyint(3) unsigned NOT NULL DEFAULT 1, + `axis360Email` varchar(250) NOT NULL DEFAULT '', + `promptForAxis360Email` tinyint(4) DEFAULT 1, + `oAuthAccessToken` varchar(255) DEFAULT NULL, + `oAuthRefreshToken` varchar(255) DEFAULT NULL, + `disableAccountLinking` tinyint(1) DEFAULT 0, + `browseAddToHome` tinyint(1) DEFAULT 1, + `isLoggedInViaSSO` tinyint(1) DEFAULT 0, + `materialsRequestSendEmailOnAssign` tinyint(1) DEFAULT 0, + `materialsRequestReplyToAddress` varchar(70) DEFAULT NULL, + `materialsRequestEmailSignature` text DEFAULT NULL, + `preferredTheme` int(11) DEFAULT -1, + `unique_ils_id` varchar(36) NOT NULL, + `ils_barcode` varchar(256) DEFAULT NULL, + `ils_username` varchar(256) DEFAULT NULL, + `ils_password` varchar(256) DEFAULT NULL, + `displayListAuthor` tinyint(1) DEFAULT 1, + `userCookiePreferenceEssential` int(11) DEFAULT 0, + `userCookiePreferenceAnalytics` int(11) DEFAULT 0, + `disableCirculationActions` tinyint(1) DEFAULT 0, + `onboardAppNotifications` tinyint(1) NOT NULL DEFAULT 1, + `shouldAskBrightness` tinyint(1) NOT NULL DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `username` (`source`,`username`), KEY `user_barcode` (`source`,`ils_barcode`), @@ -5629,37 +5629,37 @@ CREATE TABLE `user` ( DROP TABLE IF EXISTS user_account_summary; CREATE TABLE `user_account_summary` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `source` varchar(50) NOT NULL, `userId` int(11) NOT NULL, - `numCheckedOut` int(11) DEFAULT '0', - `numOverdue` int(11) DEFAULT '0', - `numAvailableHolds` int(11) DEFAULT '0', - `numUnavailableHolds` int(11) DEFAULT '0', - `totalFines` float DEFAULT '0', - `expirationDate` bigint(20) DEFAULT '0', + `numCheckedOut` int(11) DEFAULT 0, + `numOverdue` int(11) DEFAULT 0, + `numAvailableHolds` int(11) DEFAULT 0, + `numUnavailableHolds` int(11) DEFAULT 0, + `totalFines` float DEFAULT 0, + `expirationDate` bigint(20) DEFAULT 0, `lastLoaded` int(11) DEFAULT NULL, - `numCheckoutsRemaining` int(11) NOT NULL DEFAULT '0', - `hasUpdatedSavedSearches` tinyint(4) DEFAULT '0', + `numCheckoutsRemaining` int(11) NOT NULL DEFAULT 0, + `hasUpdatedSavedSearches` tinyint(4) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `source` (`source`,`userId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS user_agent; CREATE TABLE `user_agent` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `userAgent` text COLLATE utf8mb4_general_ci, - `isBot` tinyint(4) NOT NULL DEFAULT '0', - `blockAccess` tinyint(4) NOT NULL DEFAULT '0', + `userAgent` text DEFAULT NULL, + `isBot` tinyint(4) NOT NULL DEFAULT 0, + `blockAccess` tinyint(4) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `userAgent` (`userAgent`(512)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS user_axis360_usage; CREATE TABLE `user_axis360_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `userId` int(11) NOT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `usageCount` int(11) DEFAULT '0', + `usageCount` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`userId`,`year`,`month`), KEY `instance_2` (`instance`,`year`,`month`) @@ -5667,58 +5667,58 @@ CREATE TABLE `user_axis360_usage` ( DROP TABLE IF EXISTS user_checkout; CREATE TABLE `user_checkout` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `type` varchar(20) NOT NULL, + `source` varchar(50) NOT NULL, `userId` int(11) NOT NULL, - `sourceId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `recordId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `shortId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemIndex` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `renewalId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `barcode` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title2` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `author` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumber` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `volume` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `sourceId` varchar(50) NOT NULL, + `recordId` varchar(50) NOT NULL, + `shortId` varchar(50) DEFAULT NULL, + `itemId` varchar(50) DEFAULT NULL, + `itemIndex` varchar(50) DEFAULT NULL, + `renewalId` varchar(50) DEFAULT NULL, + `barcode` varchar(50) DEFAULT NULL, + `title` varchar(500) DEFAULT NULL, + `title2` varchar(500) DEFAULT NULL, + `author` varchar(500) DEFAULT NULL, + `callNumber` varchar(100) DEFAULT NULL, + `volume` varchar(255) DEFAULT NULL, `checkoutDate` int(11) DEFAULT NULL, `dueDate` bigint(20) DEFAULT NULL, `renewCount` int(11) DEFAULT NULL, `canRenew` tinyint(1) DEFAULT NULL, `autoRenew` tinyint(1) DEFAULT NULL, - `autoRenewError` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `autoRenewError` varchar(500) DEFAULT NULL, `maxRenewals` int(11) DEFAULT NULL, `fine` float DEFAULT NULL, - `returnClaim` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `returnClaim` varchar(500) DEFAULT NULL, `holdQueueLength` int(11) DEFAULT NULL, `renewalDate` bigint(20) DEFAULT NULL, `allowDownload` tinyint(1) DEFAULT NULL, `overdriveRead` tinyint(1) DEFAULT NULL, - `overdriveReadUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `overdriveReadUrl` varchar(255) DEFAULT NULL, `overdriveListen` tinyint(1) DEFAULT NULL, - `overdriveListenUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `overdriveListenUrl` varchar(255) DEFAULT NULL, `overdriveVideo` tinyint(1) DEFAULT NULL, - `overdriveVideoUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `overdriveVideoUrl` varchar(255) DEFAULT NULL, `formatSelected` tinyint(1) DEFAULT NULL, - `selectedFormatName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `selectedFormatValue` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `selectedFormatName` varchar(50) DEFAULT NULL, + `selectedFormatValue` varchar(25) DEFAULT NULL, `canReturnEarly` tinyint(1) DEFAULT NULL, - `supplementalMaterials` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `formats` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `downloadUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `accessOnlineUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `transactionId` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `coverUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `renewIndicator` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `groupedWorkId` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `supplementalMaterials` mediumtext DEFAULT NULL, + `formats` mediumtext DEFAULT NULL, + `downloadUrl` varchar(255) DEFAULT NULL, + `accessOnlineUrl` varchar(255) DEFAULT NULL, + `transactionId` varchar(40) DEFAULT NULL, + `coverUrl` varchar(255) DEFAULT NULL, + `format` varchar(75) DEFAULT NULL, + `renewIndicator` varchar(20) DEFAULT NULL, + `groupedWorkId` char(40) DEFAULT NULL, `overdriveMagazine` tinyint(1) DEFAULT NULL, - `isSupplemental` tinyint(1) DEFAULT '0', - `linkUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `renewError` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isIll` tinyint(1) DEFAULT '0', - `earlyReturnUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `isSupplemental` tinyint(1) DEFAULT 0, + `linkUrl` varchar(255) DEFAULT NULL, + `renewError` varchar(500) DEFAULT NULL, + `isIll` tinyint(1) DEFAULT 0, + `earlyReturnUrl` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `userId` (`userId`,`source`,`recordId`), KEY `userId_2` (`userId`,`groupedWorkId`) @@ -5730,7 +5730,7 @@ CREATE TABLE `user_cloud_library_usage` ( `year` int(11) NOT NULL, `month` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -5742,7 +5742,7 @@ CREATE TABLE `user_ebsco_eds_usage` ( `month` int(11) NOT NULL, `year` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`year`,`month`), UNIQUE KEY `instance_2` (`instance`,`userId`,`year`,`month`) @@ -5751,7 +5751,7 @@ DROP TABLE IF EXISTS user_ebscohost_usage; CREATE TABLE `user_ebscohost_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `month` int(11) NOT NULL, `year` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, @@ -5762,11 +5762,11 @@ DROP TABLE IF EXISTS user_events_entry; CREATE TABLE `user_events_entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `sourceId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `sourceId` varchar(50) NOT NULL, + `title` varchar(255) NOT NULL, `eventDate` int(11) DEFAULT NULL, - `regRequired` tinyint(4) DEFAULT '0', - `location` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `regRequired` tinyint(4) DEFAULT 0, + `location` varchar(255) NOT NULL, `dateAdded` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userId` (`userId`,`sourceId`) @@ -5775,9 +5775,9 @@ DROP TABLE IF EXISTS user_events_registrations; CREATE TABLE `user_events_registrations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `userBarcode` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `sourceId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `waitlist` tinyint(1) DEFAULT '0', + `userBarcode` varchar(256) NOT NULL, + `sourceId` varchar(50) NOT NULL, + `waitlist` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `userId` (`userId`,`sourceId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5785,7 +5785,7 @@ DROP TABLE IF EXISTS user_events_usage; CREATE TABLE `user_events_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, - `type` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `type` varchar(25) NOT NULL, `source` int(11) NOT NULL, `month` int(11) NOT NULL, `year` int(11) NOT NULL, @@ -5796,25 +5796,25 @@ CREATE TABLE `user_events_usage` ( DROP TABLE IF EXISTS user_hold; CREATE TABLE `user_hold` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `type` varchar(20) NOT NULL, + `source` varchar(50) NOT NULL, `userId` int(11) NOT NULL, - `sourceId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `recordId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `shortId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `itemId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title2` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `author` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `volume` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `callNumber` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `sourceId` varchar(50) NOT NULL, + `recordId` varchar(50) NOT NULL, + `shortId` varchar(50) DEFAULT NULL, + `itemId` varchar(50) DEFAULT NULL, + `title` varchar(500) DEFAULT NULL, + `title2` varchar(500) DEFAULT NULL, + `author` varchar(500) DEFAULT NULL, + `volume` varchar(255) DEFAULT NULL, + `callNumber` varchar(100) DEFAULT NULL, `available` tinyint(1) DEFAULT NULL, `cancelable` tinyint(1) DEFAULT NULL, - `cancelId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `cancelId` varchar(50) DEFAULT NULL, `locationUpdateable` tinyint(1) DEFAULT NULL, - `pickupLocationId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `pickupLocationName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `pickupLocationId` varchar(50) DEFAULT NULL, + `pickupLocationName` varchar(100) DEFAULT NULL, + `status` varchar(50) DEFAULT NULL, `position` int(11) DEFAULT NULL, `holdQueueLength` int(11) DEFAULT NULL, `createDate` int(11) DEFAULT NULL, @@ -5824,13 +5824,13 @@ CREATE TABLE `user_hold` ( `frozen` tinyint(1) DEFAULT NULL, `canFreeze` tinyint(1) DEFAULT NULL, `reactivateDate` int(11) DEFAULT NULL, - `groupedWorkId` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `format` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `coverUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `linkUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isIll` tinyint(1) DEFAULT '0', - `pendingCancellation` tinyint(1) DEFAULT '0', - `cancellationUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `groupedWorkId` char(40) DEFAULT NULL, + `format` varchar(50) DEFAULT NULL, + `coverUrl` varchar(255) DEFAULT NULL, + `linkUrl` varchar(255) DEFAULT NULL, + `isIll` tinyint(1) DEFAULT 0, + `pendingCancellation` tinyint(1) DEFAULT 0, + `cancellationUrl` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `userId` (`userId`,`source`,`recordId`), KEY `userId_2` (`userId`,`groupedWorkId`) @@ -5842,7 +5842,7 @@ CREATE TABLE `user_hoopla_usage` ( `year` int(11) NOT NULL, `month` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -5854,12 +5854,12 @@ CREATE TABLE `user_ils_usage` ( `indexingProfileId` int(11) NOT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `usageCount` int(11) DEFAULT '0', - `selfRegistrationCount` int(11) DEFAULT '0', - `pdfDownloadCount` int(11) DEFAULT '0', - `supplementalFileDownloadCount` int(11) DEFAULT '0', - `pdfViewCount` int(11) DEFAULT '0', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `usageCount` int(11) DEFAULT 0, + `selfRegistrationCount` int(11) DEFAULT 0, + `pdfDownloadCount` int(11) DEFAULT 0, + `supplementalFileDownloadCount` int(11) DEFAULT 0, + `pdfViewCount` int(11) DEFAULT 0, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`indexingProfileId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -5884,17 +5884,17 @@ DROP TABLE IF EXISTS user_list; CREATE TABLE `user_list` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, - `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `public` int(11) NOT NULL DEFAULT '0', + `title` varchar(200) NOT NULL, + `description` longtext DEFAULT NULL, + `public` int(11) NOT NULL DEFAULT 0, `dateUpdated` int(11) DEFAULT NULL, - `deleted` tinyint(1) DEFAULT '0', + `deleted` tinyint(1) DEFAULT 0, `created` int(11) DEFAULT NULL, - `defaultSort` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `searchable` tinyint(1) DEFAULT '0', - `importedFrom` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `nytListModified` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `displayListAuthor` tinyint(1) DEFAULT '1', + `defaultSort` varchar(20) DEFAULT NULL, + `searchable` tinyint(1) DEFAULT 0, + `importedFrom` varchar(20) DEFAULT NULL, + `nytListModified` varchar(20) DEFAULT NULL, + `displayListAuthor` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `dateUpdated` (`dateUpdated`) @@ -5902,14 +5902,14 @@ CREATE TABLE `user_list` ( DROP TABLE IF EXISTS user_list_entry; CREATE TABLE `user_list_entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `sourceId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `sourceId` varchar(50) NOT NULL, `listId` int(11) DEFAULT NULL, - `notes` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `notes` longtext DEFAULT NULL, `dateAdded` int(11) DEFAULT NULL, `weight` int(11) DEFAULT NULL, - `source` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'grouped_work', - `importedFrom` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `source` varchar(20) NOT NULL DEFAULT 'grouped_work', + `importedFrom` varchar(20) DEFAULT NULL, + `title` varchar(50) DEFAULT '', PRIMARY KEY (`id`), KEY `groupedWorkPermanentId` (`sourceId`), KEY `listId` (`listId`), @@ -5919,15 +5919,15 @@ DROP TABLE IF EXISTS user_messages; CREATE TABLE `user_messages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, - `messageType` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `messageLevel` enum('success','info','warning','danger') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'info', - `message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `isDismissed` tinyint(1) DEFAULT '0', - `action1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `action1Title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `action2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `action2Title` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `addendum` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `messageType` varchar(50) DEFAULT NULL, + `messageLevel` enum('success','info','warning','danger') DEFAULT 'info', + `message` longtext DEFAULT NULL, + `isDismissed` tinyint(1) DEFAULT 0, + `action1` varchar(255) DEFAULT NULL, + `action1Title` varchar(50) DEFAULT NULL, + `action2` varchar(255) DEFAULT NULL, + `action2Title` varchar(50) DEFAULT NULL, + `addendum` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `userId` (`userId`,`isDismissed`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5936,7 +5936,7 @@ CREATE TABLE `user_not_interested` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, `dateMarked` int(11) DEFAULT NULL, - `groupedRecordPermanentId` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `groupedRecordPermanentId` varchar(40) DEFAULT NULL, PRIMARY KEY (`id`), KEY `userId` (`userId`), KEY `groupedRecordPermanentId` (`groupedRecordPermanentId`,`userId`) @@ -5945,25 +5945,25 @@ DROP TABLE IF EXISTS user_notification_tokens; CREATE TABLE `user_notification_tokens` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, - `pushToken` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `deviceModel` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `notifySavedSearch` tinyint(1) DEFAULT '0', - `notifyCustom` tinyint(1) DEFAULT '0', - `notifyAccount` tinyint(1) DEFAULT '0', - `onboardAppNotifications` tinyint(1) DEFAULT '1', + `pushToken` varchar(500) DEFAULT NULL, + `deviceModel` varchar(75) DEFAULT NULL, + `notifySavedSearch` tinyint(1) DEFAULT 0, + `notifyCustom` tinyint(1) DEFAULT 0, + `notifyAccount` tinyint(1) DEFAULT 0, + `onboardAppNotifications` tinyint(1) DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS user_notifications; CREATE TABLE `user_notifications` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, - `notificationType` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `notificationType` varchar(75) DEFAULT NULL, `notificationDate` int(11) DEFAULT NULL, - `receiptId` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `receiptId` varchar(500) DEFAULT NULL, `completed` tinyint(1) DEFAULT NULL, `error` tinyint(1) DEFAULT NULL, - `message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `pushToken` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `message` varchar(500) DEFAULT NULL, + `pushToken` varchar(500) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS user_open_archives_usage; @@ -5973,8 +5973,8 @@ CREATE TABLE `user_open_archives_usage` ( `openArchivesCollectionId` int(11) NOT NULL, `year` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `month` int(11) NOT NULL DEFAULT '4', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `month` int(11) NOT NULL DEFAULT 4, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`openArchivesCollectionId`,`userId`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -5985,7 +5985,7 @@ CREATE TABLE `user_overdrive_usage` ( `year` int(11) NOT NULL, `month` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -5993,11 +5993,11 @@ CREATE TABLE `user_overdrive_usage` ( DROP TABLE IF EXISTS user_palace_project_usage; CREATE TABLE `user_palace_project_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, `userId` int(11) NOT NULL, `year` int(4) NOT NULL, `month` int(2) NOT NULL, - `usageCount` int(11) DEFAULT '0', + `usageCount` int(11) DEFAULT 0, PRIMARY KEY (`id`), KEY `instance` (`instance`,`userId`,`year`,`month`), KEY `instance_2` (`instance`,`year`,`month`) @@ -6006,7 +6006,7 @@ DROP TABLE IF EXISTS user_payment_lines; CREATE TABLE `user_payment_lines` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `paymentId` int(11) NOT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `description` text DEFAULT NULL, `amountPaid` float DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6014,24 +6014,24 @@ DROP TABLE IF EXISTS user_payments; CREATE TABLE `user_payments` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, - `paymentType` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `orderId` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `paymentType` varchar(20) DEFAULT NULL, + `orderId` varchar(75) DEFAULT NULL, `completed` tinyint(1) DEFAULT NULL, - `finesPaid` varchar(8192) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', + `finesPaid` varchar(8192) NOT NULL DEFAULT '', `totalPaid` float DEFAULT NULL, `transactionDate` int(11) DEFAULT NULL, `cancelled` tinyint(1) DEFAULT NULL, `error` tinyint(1) DEFAULT NULL, - `message` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `paidFromInstance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `transactionType` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `transactionId` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `aciToken` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `requestingUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `deluxeRemittanceId` varchar(24) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `deluxeSecurityId` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `squareToken` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `stripeToken` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `message` varchar(500) DEFAULT NULL, + `paidFromInstance` varchar(100) DEFAULT NULL, + `transactionType` varchar(75) DEFAULT NULL, + `transactionId` varchar(75) DEFAULT NULL, + `aciToken` varchar(255) DEFAULT NULL, + `requestingUrl` varchar(255) DEFAULT NULL, + `deluxeRemittanceId` varchar(24) DEFAULT NULL, + `deluxeSecurityId` varchar(32) DEFAULT NULL, + `squareToken` varchar(255) DEFAULT NULL, + `stripeToken` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `userId` (`userId`,`paymentType`,`completed`), KEY `paymentType` (`paymentType`,`orderId`) @@ -6043,7 +6043,7 @@ CREATE TABLE `user_rbdigital_usage` ( `year` int(11) NOT NULL, `month` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -6052,16 +6052,16 @@ DROP TABLE IF EXISTS user_reading_history_work; CREATE TABLE `user_reading_history_work` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL COMMENT 'The id of the user who checked out the item', - `groupedWorkPermanentId` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `source` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The source of the record being checked out', - `sourceId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'The id of the item that item that was checked out within the source', - `title` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'The title of the item in case this is ever deleted', - `author` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'The author of the item in case this is ever deleted', - `format` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'The format of the item in case this is ever deleted', + `groupedWorkPermanentId` varchar(40) DEFAULT NULL, + `source` varchar(25) NOT NULL COMMENT 'The source of the record being checked out', + `sourceId` varchar(50) NOT NULL COMMENT 'The id of the item that item that was checked out within the source', + `title` varchar(150) DEFAULT NULL COMMENT 'The title of the item in case this is ever deleted', + `author` varchar(75) DEFAULT NULL COMMENT 'The author of the item in case this is ever deleted', + `format` varchar(50) DEFAULT NULL COMMENT 'The format of the item in case this is ever deleted', `checkOutDate` int(11) NOT NULL COMMENT 'The first day we detected that the item was checked out to the patron', `checkInDate` bigint(20) DEFAULT NULL, - `deleted` tinyint(4) NOT NULL DEFAULT '0', - `isIll` tinyint(1) DEFAULT '0', + `deleted` tinyint(4) NOT NULL DEFAULT 0, + `isIll` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `userId` (`userId`,`checkOutDate`), KEY `userId_2` (`userId`,`checkInDate`), @@ -6085,8 +6085,8 @@ CREATE TABLE `user_sideload_usage` ( `sideloadId` int(11) NOT NULL, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `usageCount` int(11) DEFAULT '0', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `usageCount` int(11) DEFAULT 0, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`sideloadId`,`year`,`month`), KEY `year` (`year`,`month`) @@ -6098,7 +6098,7 @@ CREATE TABLE `user_summon_usage` ( `month` int(2) NOT NULL, `year` int(4) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `instance` (`instance`,`userId`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6107,16 +6107,16 @@ CREATE TABLE `user_vdx_request` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) DEFAULT NULL, `datePlaced` int(11) DEFAULT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `author` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `publisher` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `isbn` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `title` varchar(255) DEFAULT NULL, + `author` varchar(255) DEFAULT NULL, + `publisher` varchar(255) DEFAULT NULL, + `isbn` varchar(20) DEFAULT NULL, `feeAccepted` tinyint(1) DEFAULT NULL, - `maximumFeeAmount` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `catalogKey` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `pickupLocation` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `maximumFeeAmount` varchar(10) DEFAULT NULL, + `catalogKey` varchar(20) DEFAULT NULL, + `status` varchar(20) DEFAULT NULL, + `note` text DEFAULT NULL, + `pickupLocation` varchar(75) DEFAULT NULL, `vdxId` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6128,19 +6128,19 @@ CREATE TABLE `user_website_usage` ( `month` int(11) NOT NULL, `year` int(11) NOT NULL, `usageCount` int(11) DEFAULT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `instance` (`instance`,`websiteId`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS user_work_review; CREATE TABLE `user_work_review` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `groupedRecordPermanentId` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `groupedRecordPermanentId` varchar(40) NOT NULL, `userId` int(11) DEFAULT NULL, `rating` tinyint(1) DEFAULT NULL, - `review` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `review` longtext DEFAULT NULL, `dateRated` int(11) DEFAULT NULL, - `importedFrom` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `importedFrom` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userId_2` (`userId`,`groupedRecordPermanentId`), KEY `groupedRecordPermanentId` (`groupedRecordPermanentId`), @@ -6149,15 +6149,15 @@ CREATE TABLE `user_work_review` ( DROP TABLE IF EXISTS usps_settings; CREATE TABLE `usps_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `clientId` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `clientSecret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `clientId` varchar(255) DEFAULT NULL, + `clientSecret` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS variables; CREATE TABLE `variables` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(128) NOT NULL, + `value` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name_2` (`name`), UNIQUE KEY `name_3` (`name`), @@ -6166,15 +6166,15 @@ CREATE TABLE `variables` ( DROP TABLE IF EXISTS vdx_form; CREATE TABLE `vdx_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `introText` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `showAuthor` tinyint(1) DEFAULT '0', - `showPublisher` tinyint(1) DEFAULT '0', - `showIsbn` tinyint(1) DEFAULT '0', - `showAcceptFee` tinyint(1) DEFAULT '0', - `showMaximumFee` tinyint(1) DEFAULT '0', - `feeInformationText` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `showCatalogKey` tinyint(1) DEFAULT '0', + `name` varchar(50) NOT NULL, + `introText` text DEFAULT NULL, + `showAuthor` tinyint(1) DEFAULT 0, + `showPublisher` tinyint(1) DEFAULT 0, + `showIsbn` tinyint(1) DEFAULT 0, + `showAcceptFee` tinyint(1) DEFAULT 0, + `showMaximumFee` tinyint(1) DEFAULT 0, + `feeInformationText` text DEFAULT NULL, + `showCatalogKey` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6189,38 +6189,38 @@ CREATE TABLE `vdx_hold_group_location` ( DROP TABLE IF EXISTS vdx_hold_groups; CREATE TABLE `vdx_hold_groups` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `name` varchar(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS vdx_settings; CREATE TABLE `vdx_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `baseUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `submissionEmailAddress` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `patronKey` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `reqVerifySource` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) NOT NULL, + `baseUrl` varchar(255) NOT NULL, + `submissionEmailAddress` varchar(255) NOT NULL, + `patronKey` varchar(50) DEFAULT NULL, + `reqVerifySource` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_audience; CREATE TABLE `web_builder_audience` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_basic_page; CREATE TABLE `web_builder_basic_page` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `urlAlias` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `contents` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `teaser` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastUpdate` int(11) DEFAULT '0', - `requireLogin` tinyint(1) DEFAULT '0', - `requireLoginUnlessInLibrary` tinyint(1) DEFAULT '0', + `title` varchar(100) NOT NULL, + `urlAlias` varchar(100) DEFAULT NULL, + `contents` longtext DEFAULT NULL, + `teaser` varchar(512) DEFAULT NULL, + `lastUpdate` int(11) DEFAULT 0, + `requireLogin` tinyint(1) DEFAULT 0, + `requireLoginUnlessInLibrary` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_basic_page_access; @@ -6258,33 +6258,33 @@ CREATE TABLE `web_builder_basic_page_home_location_access` ( DROP TABLE IF EXISTS web_builder_category; CREATE TABLE `web_builder_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_custom_form; CREATE TABLE `web_builder_custom_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `urlAlias` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `emailResultsTo` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `title` varchar(100) NOT NULL, + `urlAlias` varchar(100) DEFAULT NULL, + `emailResultsTo` varchar(100) DEFAULT NULL, `requireLogin` tinyint(1) DEFAULT NULL, - `introText` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `submissionResultText` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `includeIntroductoryTextInEmail` tinyint(1) DEFAULT '0', + `introText` longtext DEFAULT NULL, + `submissionResultText` longtext DEFAULT NULL, + `includeIntroductoryTextInEmail` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_custom_form_field; CREATE TABLE `web_builder_custom_form_field` ( `id` int(11) NOT NULL AUTO_INCREMENT, `formId` int(11) NOT NULL, - `weight` int(11) DEFAULT '0', - `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `fieldType` int(11) NOT NULL DEFAULT '0', - `enumValues` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `defaultValue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `required` tinyint(1) NOT NULL DEFAULT '0', + `weight` int(11) DEFAULT 0, + `label` varchar(255) DEFAULT NULL, + `description` varchar(255) DEFAULT '', + `fieldType` int(11) NOT NULL DEFAULT 0, + `enumValues` varchar(255) DEFAULT NULL, + `defaultValue` varchar(255) DEFAULT NULL, + `required` tinyint(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`), KEY `formId` (`formId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6293,7 +6293,7 @@ CREATE TABLE `web_builder_custom_form_field_submission` ( `id` int(11) NOT NULL AUTO_INCREMENT, `formSubmissionId` int(11) NOT NULL, `submissionFieldId` int(11) NOT NULL, - `formFieldContent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci, + `formFieldContent` text DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `formSubmissionId` (`formSubmissionId`,`submissionFieldId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -6304,8 +6304,8 @@ CREATE TABLE `web_builder_custom_from_submission` ( `libraryId` int(11) NOT NULL, `userId` int(11) NOT NULL, `dateSubmitted` int(11) NOT NULL, - `submission` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `isRead` tinyint(1) DEFAULT '0', + `submission` longtext DEFAULT NULL, + `isRead` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `formId` (`formId`,`libraryId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6318,33 +6318,33 @@ CREATE TABLE `web_builder_portal_cell` ( `widthSm` int(11) DEFAULT NULL, `widthMd` int(11) DEFAULT NULL, `widthLg` int(11) DEFAULT NULL, - `horizontalJustification` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `verticalAlignment` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sourceType` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `sourceId` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `weight` int(11) DEFAULT '0', - `markdown` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `sourceInfo` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `frameHeight` int(11) DEFAULT '0', - `makeCellAccordion` tinyint(4) NOT NULL DEFAULT '0', - `imageURL` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `pdfView` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `colorScheme` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'default', - `invertColor` tinyint(1) DEFAULT '0', - `imgAction` tinyint(1) DEFAULT '0', - `imgAlt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `horizontalJustification` varchar(20) DEFAULT NULL, + `verticalAlignment` varchar(20) DEFAULT NULL, + `sourceType` varchar(30) DEFAULT NULL, + `sourceId` varchar(30) DEFAULT NULL, + `weight` int(11) DEFAULT 0, + `markdown` longtext DEFAULT NULL, + `sourceInfo` varchar(512) DEFAULT NULL, + `title` varchar(255) DEFAULT '', + `frameHeight` int(11) DEFAULT 0, + `makeCellAccordion` tinyint(4) NOT NULL DEFAULT 0, + `imageURL` varchar(255) DEFAULT NULL, + `pdfView` varchar(12) DEFAULT NULL, + `colorScheme` varchar(25) DEFAULT 'default', + `invertColor` tinyint(1) DEFAULT 0, + `imgAction` tinyint(1) DEFAULT 0, + `imgAlt` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `portalRowId` (`portalRowId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_portal_page; CREATE TABLE `web_builder_portal_page` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `urlAlias` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastUpdate` int(11) DEFAULT '0', - `requireLogin` tinyint(1) DEFAULT '0', - `requireLoginUnlessInLibrary` tinyint(1) DEFAULT '0', + `title` varchar(255) DEFAULT NULL, + `urlAlias` varchar(100) DEFAULT NULL, + `lastUpdate` int(11) DEFAULT 0, + `requireLogin` tinyint(1) DEFAULT 0, + `requireLoginUnlessInLibrary` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_portal_page_access; @@ -6375,36 +6375,36 @@ DROP TABLE IF EXISTS web_builder_portal_row; CREATE TABLE `web_builder_portal_row` ( `id` int(11) NOT NULL AUTO_INCREMENT, `portalPageId` int(11) DEFAULT NULL, - `rowTitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `weight` int(11) DEFAULT '0', - `makeAccordion` tinyint(1) DEFAULT '0', - `colorScheme` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT 'default', - `invertColor` tinyint(1) DEFAULT '0', + `rowTitle` varchar(255) DEFAULT NULL, + `weight` int(11) DEFAULT 0, + `makeAccordion` tinyint(1) DEFAULT 0, + `colorScheme` varchar(25) DEFAULT 'default', + `invertColor` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `portalPageId` (`portalPageId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS web_builder_quick_poll; CREATE TABLE `web_builder_quick_poll` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `urlAlias` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `introText` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `submissionResultText` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, + `title` varchar(100) NOT NULL, + `urlAlias` varchar(100) DEFAULT NULL, + `introText` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `submissionResultText` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, `requireLogin` tinyint(1) DEFAULT NULL, `requireName` tinyint(1) DEFAULT NULL, `requireEmail` tinyint(1) DEFAULT NULL, `allowSuggestingNewOptions` tinyint(1) DEFAULT NULL, `allowMultipleSelections` tinyint(1) DEFAULT NULL, - `status` tinyint(1) DEFAULT '1', - `showResultsToPatrons` tinyint(1) DEFAULT '0', + `status` tinyint(1) DEFAULT 1, + `showResultsToPatrons` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS web_builder_quick_poll_option; CREATE TABLE `web_builder_quick_poll_option` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `weight` int(11) DEFAULT '0', + `weight` int(11) DEFAULT 0, `pollId` int(11) NOT NULL, - `label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `label` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS web_builder_quick_poll_submission; @@ -6413,8 +6413,8 @@ CREATE TABLE `web_builder_quick_poll_submission` ( `pollId` int(11) NOT NULL, `libraryId` int(11) NOT NULL, `userId` int(11) DEFAULT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, `dateSubmitted` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -6429,17 +6429,17 @@ CREATE TABLE `web_builder_quick_poll_submission_selection` ( DROP TABLE IF EXISTS web_builder_resource; CREATE TABLE `web_builder_resource` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `logo` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `featured` tinyint(1) NOT NULL DEFAULT '0', - `requiresLibraryCard` tinyint(1) NOT NULL DEFAULT '0', - `description` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `teaser` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `lastUpdate` int(11) DEFAULT '0', - `inLibraryUseOnly` tinyint(1) DEFAULT '0', - `openInNewTab` tinyint(1) DEFAULT '0', - `requireLoginUnlessInLibrary` tinyint(1) DEFAULT '0', + `name` varchar(100) NOT NULL, + `url` varchar(255) NOT NULL, + `logo` varchar(200) DEFAULT NULL, + `featured` tinyint(1) NOT NULL DEFAULT 0, + `requiresLibraryCard` tinyint(1) NOT NULL DEFAULT 0, + `description` longtext DEFAULT NULL, + `teaser` varchar(512) DEFAULT NULL, + `lastUpdate` int(11) DEFAULT 0, + `inLibraryUseOnly` tinyint(1) DEFAULT 0, + `openInNewTab` tinyint(1) DEFAULT 0, + `requireLoginUnlessInLibrary` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), KEY `featured` (`featured`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; @@ -6464,18 +6464,18 @@ CREATE TABLE `web_builder_resource_usage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `year` int(11) NOT NULL, `month` int(11) NOT NULL, - `resourceName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `pageViews` int(11) DEFAULT '0', - `pageViewsByAuthenticatedUsers` int(11) DEFAULT '0', - `pageViewsInLibrary` int(11) DEFAULT '0', - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `resourceName` varchar(100) NOT NULL, + `pageViews` int(11) DEFAULT 0, + `pageViewsByAuthenticatedUsers` int(11) DEFAULT 0, + `pageViewsInLibrary` int(11) DEFAULT 0, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `instance` (`instance`,`year`,`month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS website_facet_groups; CREATE TABLE `website_facet_groups` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, + `name` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; @@ -6483,33 +6483,33 @@ DROP TABLE IF EXISTS website_facets; CREATE TABLE `website_facets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `facetGroupId` int(11) NOT NULL, - `displayName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `displayNamePlural` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci DEFAULT NULL, - `facetName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL, - `weight` int(11) NOT NULL DEFAULT '0', - `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT '5', - `sortMode` enum('alphabetically','num_results') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci NOT NULL DEFAULT 'num_results', - `collapseByDefault` tinyint(4) DEFAULT '1', - `useMoreFacetPopup` tinyint(4) DEFAULT '1', - `translate` tinyint(4) DEFAULT '1', - `multiSelect` tinyint(4) DEFAULT '1', - `canLock` tinyint(4) DEFAULT '1', + `displayName` varchar(50) NOT NULL, + `displayNamePlural` varchar(50) DEFAULT NULL, + `facetName` varchar(50) NOT NULL, + `weight` int(11) NOT NULL DEFAULT 0, + `numEntriesToShowByDefault` int(11) NOT NULL DEFAULT 5, + `sortMode` enum('alphabetically','num_results') NOT NULL DEFAULT 'num_results', + `collapseByDefault` tinyint(4) DEFAULT 1, + `useMoreFacetPopup` tinyint(4) DEFAULT 1, + `translate` tinyint(4) DEFAULT 1, + `multiSelect` tinyint(4) DEFAULT 1, + `canLock` tinyint(4) DEFAULT 1, PRIMARY KEY (`id`), UNIQUE KEY `groupFacet` (`facetGroupId`,`facetName`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci; DROP TABLE IF EXISTS website_index_log; CREATE TABLE `website_index_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'The id of log', - `websiteName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `websiteName` varchar(255) NOT NULL, `startTime` int(11) NOT NULL COMMENT 'The timestamp when the run started', `endTime` int(11) DEFAULT NULL COMMENT 'The timestamp when the run ended', `lastUpdate` int(11) DEFAULT NULL COMMENT 'The timestamp when the run last updated (to check for stuck processes)', - `notes` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'Additional information about the run', - `numPages` int(11) DEFAULT '0', - `numAdded` int(11) DEFAULT '0', - `numDeleted` int(11) DEFAULT '0', - `numUpdated` int(11) DEFAULT '0', - `numErrors` int(11) DEFAULT '0', + `notes` mediumtext DEFAULT NULL COMMENT 'Additional information about the run', + `numPages` int(11) DEFAULT 0, + `numAdded` int(11) DEFAULT 0, + `numDeleted` int(11) DEFAULT 0, + `numUpdated` int(11) DEFAULT 0, + `numErrors` int(11) DEFAULT 0, `numInvalidPages` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `websiteName` (`websiteName`), @@ -6518,18 +6518,18 @@ CREATE TABLE `website_index_log` ( DROP TABLE IF EXISTS website_indexing_settings; CREATE TABLE `website_indexing_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `searchCategory` varchar(75) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `siteUrl` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `indexFrequency` enum('hourly','daily','weekly','monthly','yearly','once') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(75) NOT NULL, + `searchCategory` varchar(75) NOT NULL, + `siteUrl` varchar(255) DEFAULT NULL, + `indexFrequency` enum('hourly','daily','weekly','monthly','yearly','once') DEFAULT NULL, `lastIndexed` int(11) DEFAULT NULL, - `pathsToExclude` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci, - `pageTitleExpression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `descriptionExpression` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', - `deleted` tinyint(1) DEFAULT '0', - `maxPagesToIndex` int(11) DEFAULT '2500', - `crawlDelay` int(11) DEFAULT '10', - `defaultCover` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `pathsToExclude` longtext DEFAULT NULL, + `pageTitleExpression` varchar(255) DEFAULT '', + `descriptionExpression` varchar(255) DEFAULT '', + `deleted` tinyint(1) DEFAULT 0, + `maxPagesToIndex` int(11) DEFAULT 2500, + `crawlDelay` int(11) DEFAULT 10, + `defaultCover` varchar(100) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`), KEY `lastIndexed` (`lastIndexed`) @@ -6542,7 +6542,7 @@ CREATE TABLE `website_page_usage` ( `year` int(11) NOT NULL, `timesViewedInSearch` int(11) NOT NULL, `timesUsed` int(11) NOT NULL, - `instance` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `instance` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `instance` (`instance`,`webPageId`,`year`,`month`), KEY `instance_2` (`instance`,`webPageId`,`year`,`month`) @@ -6551,11 +6551,11 @@ DROP TABLE IF EXISTS website_pages; CREATE TABLE `website_pages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `websiteId` int(11) NOT NULL, - `url` varchar(600) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `url` varchar(600) DEFAULT NULL, `checksum` bigint(20) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `firstDetected` int(11) DEFAULT NULL, - `deleteReason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '', + `deleteReason` varchar(255) DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `url` (`url`), KEY `websiteId` (`websiteId`) @@ -6563,19 +6563,19 @@ CREATE TABLE `website_pages` ( DROP TABLE IF EXISTS worldpay_settings; CREATE TABLE `worldpay_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `merchantCode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `settleCode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `paymentSite` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0', - `useLineItems` tinyint(1) DEFAULT '0', + `name` varchar(50) DEFAULT NULL, + `merchantCode` varchar(20) DEFAULT NULL, + `settleCode` varchar(20) DEFAULT NULL, + `paymentSite` varchar(255) NOT NULL DEFAULT '0', + `useLineItems` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; DROP TABLE IF EXISTS xpresspay_settings; CREATE TABLE `xpresspay_settings` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, - `paymentTypeCode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL, + `name` varchar(50) DEFAULT NULL, + `paymentTypeCode` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;