Updated to utf8mb4 encoding

This commit is contained in:
2026-02-19 14:28:10 -05:00
parent 01fd47814b
commit 41c5b4560b

View File

@@ -1,8 +1,9 @@
-- MariaDB dump 10.19 Distrib 10.6.18-MariaDB, for debian-linux-gnu (x86_64)
/*M!999999\- enable the sandbox mode */
-- MariaDB dump 10.19-11.8.3-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: ol521
-- Host: localhost Database: openlog
-- ------------------------------------------------------
-- Server version 10.6.18-MariaDB-0ubuntu0.22.04.1
-- Server version 11.8.3-MariaDB-0+deb13u1 from Debian
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */
;
@@ -22,7 +23,7 @@
;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */
;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */
/*M!100616 SET @OLD_NOTE_VERBOSITY=@@NOTE_VERBOSITY, NOTE_VERBOSITY=0 */
;
--
@@ -32,7 +33,7 @@
DROP TABLE IF EXISTS `banners`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `banners` (
`bannerid` int(11) NOT NULL AUTO_INCREMENT,
@@ -51,6 +52,8 @@ CREATE TABLE `banners` (
LOCK TABLES `banners` WRITE;
/*!40000 ALTER TABLE `banners` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO
`banners`
VALUES (
@@ -87,6 +90,8 @@ VALUES (
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `configs`
--
@@ -94,14 +99,14 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `configs`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `configs` (
`confid` int(11) NOT NULL AUTO_INCREMENT,
`confname` text DEFAULT NULL,
`confvalue` text DEFAULT NULL,
PRIMARY KEY (`confid`),
UNIQUE (`confname`)
UNIQUE KEY `confname` (`confname`) USING HASH
) ENGINE = InnoDB AUTO_INCREMENT = 33 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */
;
@@ -113,6 +118,8 @@ CREATE TABLE `configs` (
LOCK TABLES `configs` WRITE;
/*!40000 ALTER TABLE `configs` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO
`configs`
VALUES (1, 'ol_version', '5.2.4'),
@@ -197,6 +204,8 @@ VALUES (1, 'ol_version', '5.2.4'),
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `customs`
--
@@ -204,7 +213,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `customs`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `customs` (
`customid` int(11) NOT NULL AUTO_INCREMENT,
@@ -223,10 +232,13 @@ CREATE TABLE `customs` (
LOCK TABLES `customs` WRITE;
/*!40000 ALTER TABLE `customs` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `customs` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `devicegroups`
--
@@ -234,7 +246,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `devicegroups`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `devicegroups` (
`groupid` int(11) NOT NULL AUTO_INCREMENT,
@@ -252,10 +264,13 @@ CREATE TABLE `devicegroups` (
LOCK TABLES `devicegroups` WRITE;
/*!40000 ALTER TABLE `devicegroups` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `devicegroups` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `devices`
--
@@ -263,7 +278,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `devices`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `devices` (
`deviceid` int(11) NOT NULL AUTO_INCREMENT,
@@ -283,10 +298,13 @@ CREATE TABLE `devices` (
LOCK TABLES `devices` WRITE;
/*!40000 ALTER TABLE `devices` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `devices` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `events`
--
@@ -294,7 +312,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `events`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `events` (
`eventid` int(11) NOT NULL AUTO_INCREMENT,
@@ -317,40 +335,12 @@ CREATE TABLE `events` (
LOCK TABLES `events` WRITE;
/*!40000 ALTER TABLE `events` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `events` ENABLE KEYS */
;
UNLOCK TABLES;
--
-- Table structure for table `flags`
--
DROP TABLE IF EXISTS `flags`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `flags` (
`flagid` int(11) NOT NULL AUTO_INCREMENT,
`flagname` tinytext DEFAULT NULL,
`flagsym` tinytext DEFAULT NULL,
`flagcolor` tinytext DEFAULT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`flagid`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
-- Dumping data for table `flags`
--
LOCK TABLES `flags` WRITE;
/*!40000 ALTER TABLE `flags` DISABLE KEYS */
;
/*!40000 ALTER TABLE `flags` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `flagmap`
@@ -359,7 +349,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `flagmap`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `flagmap` (
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -379,10 +369,47 @@ CREATE TABLE `flagmap` (
LOCK TABLES `flagmap` WRITE;
/*!40000 ALTER TABLE `flagmap` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `flagmap` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `flags`
--
DROP TABLE IF EXISTS `flags`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `flags` (
`flagid` int(11) NOT NULL AUTO_INCREMENT,
`flagname` tinytext DEFAULT NULL,
`flagsym` tinytext DEFAULT NULL,
`flagcolor` tinytext DEFAULT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`flagid`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
-- Dumping data for table `flags`
--
LOCK TABLES `flags` WRITE;
/*!40000 ALTER TABLE `flags` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `flags` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `links`
--
@@ -390,7 +417,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `links`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `links` (
`linkid` int(11) NOT NULL AUTO_INCREMENT,
@@ -410,10 +437,13 @@ CREATE TABLE `links` (
LOCK TABLES `links` WRITE;
/*!40000 ALTER TABLE `links` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `links` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `lognotes`
--
@@ -421,7 +451,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `lognotes`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `lognotes` (
`lognoteid` int(11) NOT NULL AUTO_INCREMENT,
@@ -443,39 +473,12 @@ CREATE TABLE `lognotes` (
LOCK TABLES `lognotes` WRITE;
/*!40000 ALTER TABLE `lognotes` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `lognotes` ENABLE KEYS */
;
UNLOCK TABLES;
--
-- Table structure for table `reflinks`
--
DROP TABLE IF EXISTS `reflinks`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `reflinks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`noteid` int(11) DEFAULT NULL,
`templateid` int(11) DEFAULT NULL,
`target` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
-- Dumping data for table `reflinks`
--
LOCK TABLES `reflinks` WRITE;
/*!40000 ALTER TABLE `reflinks` DISABLE KEYS */
;
/*!40000 ALTER TABLE `reflinks` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `logpartactions`
@@ -484,7 +487,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `logpartactions`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `logpartactions` (
`lpactionid` int(11) NOT NULL AUTO_INCREMENT,
@@ -502,6 +505,8 @@ CREATE TABLE `logpartactions` (
LOCK TABLES `logpartactions` WRITE;
/*!40000 ALTER TABLE `logpartactions` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO
`logpartactions`
VALUES (1, 'removed', 1),
@@ -514,6 +519,8 @@ VALUES (1, 'removed', 1),
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `logparts`
--
@@ -521,7 +528,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `logparts`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `logparts` (
`logpartid` int(11) NOT NULL AUTO_INCREMENT,
@@ -540,10 +547,13 @@ CREATE TABLE `logparts` (
LOCK TABLES `logparts` WRITE;
/*!40000 ALTER TABLE `logparts` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `logparts` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `maintactions`
--
@@ -551,7 +561,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `maintactions`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `maintactions` (
`maintactionid` int(11) NOT NULL AUTO_INCREMENT,
@@ -572,10 +582,13 @@ CREATE TABLE `maintactions` (
LOCK TABLES `maintactions` WRITE;
/*!40000 ALTER TABLE `maintactions` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `maintactions` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `maintforms`
--
@@ -583,7 +596,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `maintforms`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `maintforms` (
`maintformid` int(11) NOT NULL AUTO_INCREMENT,
@@ -609,10 +622,13 @@ CREATE TABLE `maintforms` (
LOCK TABLES `maintforms` WRITE;
/*!40000 ALTER TABLE `maintforms` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `maintforms` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `notetemplates`
--
@@ -620,7 +636,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `notetemplates`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `notetemplates` (
`templateid` int(11) NOT NULL AUTO_INCREMENT,
@@ -642,10 +658,13 @@ CREATE TABLE `notetemplates` (
LOCK TABLES `notetemplates` WRITE;
/*!40000 ALTER TABLE `notetemplates` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `notetemplates` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `parts`
--
@@ -653,7 +672,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `parts`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `parts` (
`partid` int(11) NOT NULL AUTO_INCREMENT,
@@ -673,10 +692,46 @@ CREATE TABLE `parts` (
LOCK TABLES `parts` WRITE;
/*!40000 ALTER TABLE `parts` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `parts` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `reflinks`
--
DROP TABLE IF EXISTS `reflinks`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `reflinks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`noteid` int(11) DEFAULT NULL,
`templateid` int(11) DEFAULT NULL,
`target` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
-- Dumping data for table `reflinks`
--
LOCK TABLES `reflinks` WRITE;
/*!40000 ALTER TABLE `reflinks` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `reflinks` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `shifts`
--
@@ -684,7 +739,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `shifts`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `shifts` (
`shiftid` int(11) NOT NULL AUTO_INCREMENT,
@@ -702,11 +757,15 @@ CREATE TABLE `shifts` (
LOCK TABLES `shifts` WRITE;
/*!40000 ALTER TABLE `shifts` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO `shifts` VALUES (1, 'First Shift', 1);
/*!40000 ALTER TABLE `shifts` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `styles`
--
@@ -714,7 +773,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `styles`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `styles` (
`styleid` int(11) NOT NULL AUTO_INCREMENT,
@@ -732,6 +791,8 @@ CREATE TABLE `styles` (
LOCK TABLES `styles` WRITE;
/*!40000 ALTER TABLE `styles` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO
`styles`
VALUES (1, 'logdisplay', 'classic'),
@@ -740,6 +801,8 @@ VALUES (1, 'logdisplay', 'classic'),
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `subjects`
--
@@ -747,7 +810,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `subjects`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `subjects` (
`subjectid` int(11) NOT NULL AUTO_INCREMENT,
@@ -765,11 +828,15 @@ CREATE TABLE `subjects` (
LOCK TABLES `subjects` WRITE;
/*!40000 ALTER TABLE `subjects` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO `subjects` VALUES (1, 'Miscellaneous', 1);
/*!40000 ALTER TABLE `subjects` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `tasks`
--
@@ -777,7 +844,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `tasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `tasks` (
`taskid` int(11) NOT NULL AUTO_INCREMENT,
@@ -802,10 +869,13 @@ CREATE TABLE `tasks` (
LOCK TABLES `tasks` WRITE;
/*!40000 ALTER TABLE `tasks` DISABLE KEYS */
;
set autocommit = 0;
/*!40000 ALTER TABLE `tasks` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
--
-- Table structure for table `techs`
--
@@ -813,7 +883,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `techs`;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
/*!40101 SET character_set_client = utf8 */
/*!40101 SET character_set_client = utf8mb4 */
;
CREATE TABLE `techs` (
`techid` int(11) NOT NULL AUTO_INCREMENT,
@@ -834,6 +904,8 @@ CREATE TABLE `techs` (
LOCK TABLES `techs` WRITE;
/*!40000 ALTER TABLE `techs` DISABLE KEYS */
;
set autocommit = 0;
INSERT INTO
`techs`
VALUES (
@@ -847,6 +919,8 @@ VALUES (
/*!40000 ALTER TABLE `techs` ENABLE KEYS */
;
UNLOCK TABLES;
commit;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */
;
@@ -862,7 +936,7 @@ UNLOCK TABLES;
;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */
;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */
/*M!100616 SET NOTE_VERBOSITY=@OLD_NOTE_VERBOSITY */
;
-- Dump completed on 2024-07-09 14:36:00
-- Dump completed on 2026-02-19 14:18:01