Skip to content

Commit

Permalink
Revert utf8 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstrodl committed Mar 19, 2024
1 parent 4d61e8b commit a3baba3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions inc/databaseConn.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
die("Could not connect to database: " . $dbConn->connect_error);
}

$dbConn->set_charset("utf8mb4");
$dbConn->query("SET collation_connection = utf8mb4_unicode_ci");
$dbConn->query("SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci");

////////////////////////////////////////////////////////////////////////////
// FUNCTIONS

Expand Down
6 changes: 3 additions & 3 deletions tools/processDump.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
`instruction_mode` varchar(2) NOT NULL,
`course_descrlong` text NOT NULL,
PRIMARY KEY (`crse_id`,`crse_offer_nbr`,`strm`,`session_code`,`class_section`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ENE;

if (mysqli_query($dbConn, $tempQuery)) {
Expand Down Expand Up @@ -139,7 +139,7 @@
`sun` varchar(1) NOT NULL,
PRIMARY KEY (`crse_id`,`crse_offer_nbr`,`strm`,`session_code`,`class_section`, `class_mtg_nbr`),
INDEX(`crse_id`, `crse_offer_nbr`, `strm`, `session_code`, `class_section`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ENE;

if (mysqli_query($dbConn, $tempQuery)) {
Expand All @@ -163,7 +163,7 @@
`last_name` varchar(30) NOT NULL,
`first_name` varchar(30) NOT NULL,
INDEX (`crse_id`,`crse_offer_nbr`,`strm`,`session_code`,`class_section`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
ENE;

if (mysqli_query($dbConn, $tempQuery)) {
Expand Down

0 comments on commit a3baba3

Please sign in to comment.