Skip to content

Commit

Permalink
permit storage of UTF-8 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jun 1, 2024
1 parent 93967b6 commit 6a830d0
Showing 1 changed file with 9 additions and 40 deletions.
49 changes: 9 additions & 40 deletions share/mail_dmarc_schema.mysql
Original file line number Diff line number Diff line change
@@ -1,37 +1,15 @@
# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: 127.0.0.2 (MySQL 5.5.30)
# Database: mail_dmarc
# Generation Time: 2013-05-17 07:47:45 +0000
# ************************************************************


/*!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 */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


# Dump of table author
# ------------------------------------------------------------

DROP TABLE IF EXISTS `author`;

CREATE TABLE `author` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`org_name` varchar(253) CHARACTER SET ascii NOT NULL DEFAULT '',
`email` varchar(255) CHARACTER SET ascii DEFAULT NULL,
`extra_contact` varchar(255) CHARACTER SET ascii DEFAULT NULL,
`org_name` varchar(253) NOT NULL DEFAULT '',
`email` varchar(255) DEFAULT NULL,
`extra_contact` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;



Expand All @@ -42,23 +20,23 @@ DROP TABLE IF EXISTS `domain`;

CREATE TABLE `domain` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`domain` varchar(253) CHARACTER SET ascii NOT NULL DEFAULT '',
`domain` varchar(253) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;


DROP TABLE IF EXISTS `report_error`;

CREATE TABLE `report_error` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`report_id` int(11) unsigned NOT NULL,
`error` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`error` varchar(255) NOT NULL DEFAULT '',
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `report_id` (`report_id`),
CONSTRAINT `report_error_ibfk_1` FOREIGN KEY (`report_id`) REFERENCES `report` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;


# Dump of table fk_disposition
Expand Down Expand Up @@ -262,7 +240,7 @@ CREATE TABLE `report_record_reason` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`report_record_id` int(11) unsigned NOT NULL,
`type` varchar(24) NOT NULL DEFAULT '',
`comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `report_record_id` (`report_record_id`),
KEY `type` (`type`),
Expand Down Expand Up @@ -313,12 +291,3 @@ CREATE TABLE `report_record_spf` (
CONSTRAINT `report_record_spf_ibfk_3` FOREIGN KEY (`result`) REFERENCES `fk_spf_result` (`result`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=ascii;




/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 comments on commit 6a830d0

Please sign in to comment.