Skip to content

Commit

Permalink
Updated CHARSET & COLLATE to support special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotoPaul committed May 12, 2022
1 parent a7c908f commit b6bb6f8
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/apiBase
2 changes: 1 addition & 1 deletion tools/dbScripts/answers.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ CREATE TABLE `answers` (
KEY `churchId` (`churchId`),
KEY `formSubmissionId` (`formSubmissionId`),
KEY `questionId` (`questionId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/formSubmissions.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ CREATE TABLE `formSubmissions` (
PRIMARY KEY (`id`),
KEY `churchId` (`churchId`),
KEY `formId` (`formId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/forms.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ CREATE TABLE `forms` (
`removed` bit(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `churchId` (`churchId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/groupMembers.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ CREATE TABLE `groupMembers` (
KEY `churchId` (`churchId`),
KEY `groupId` (`groupId`),
KEY `personId` (`personId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/groups.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ CREATE TABLE `groups` (
`removed` bit(1) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `churchId` (`churchId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/households.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ CREATE TABLE `households` (
`name` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `churchId` (`churchId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/memberPermissions.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ CREATE TABLE `memberPermissions` (
`contentId` char(11) DEFAULT NULL,
`action` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/people.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ CREATE TABLE `people` (
PRIMARY KEY (`id`),
KEY `churchId` (`churchId`),
KEY `householdId` (`householdId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
2 changes: 1 addition & 1 deletion tools/dbScripts/questions.mysql
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ CREATE TABLE `questions` (
PRIMARY KEY (`id`),
KEY `churchId` (`churchId`),
KEY `formId` (`formId`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

0 comments on commit b6bb6f8

Please sign in to comment.