kalevias / MyCollege

CSI 4999 - Senior Capstone Project
1 stars 1 forks source link

Erroneous DB table collations and storage engines #35

Closed kalevias closed 6 years ago

kalevias commented 6 years ago

Bug Report

Security related: No Attempted reproductions: N/A (@jnick1) Successful reproductions: N/A Reproducabilty: N/A Steps to reproduce
Expected results
Database tables should use the utf8mb4_unicode_ci collation where applicable instead of the latin1_swedish_ci collation. Also, some tables, such as, tblcountry are using the MyISAM storage engine instead of the InnoDB storage engine, causing them to be unusable in the construction of foreign key constraints.

Actual results
Unable to correctly establish foreign key constraints to tblcountry. Fields stored using latin1_swedish_ci may not be able to handle non-English or non-Swedish characters. Changing to utf8mb4_unicode_ci would prevent that potential issue from occurring.

Workaround
N/A

Environment N/A

kalevias commented 6 years ago

Fixed and closed: https://github.com/jnick1/MyCollege/commit/93e77f64609f86b0aa02b3d8620c994145e8aac6