Bug 8007: (QA followup) fix charset collate
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Apr 2015 15:05:22 +0000 (12:05 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 30 Apr 2015 15:34:28 +0000 (12:34 -0300)
This bug was started before the changes on default collation. This
patch fixes that.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl

index 651e361..39b3e08 100644 (file)
@@ -3516,7 +3516,7 @@ CREATE TABLE discharges (
   validated timestamp NULL DEFAULT NULL,
   KEY borrower_discharges_ibfk1 (borrower),
   CONSTRAINT borrower_discharges_ibfk1 FOREIGN KEY (borrower) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE
-) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
index bdd9b03..128d8ad 100755 (executable)
@@ -10321,7 +10321,7 @@ if ( CheckVersion($DBversion) ) {
           validated timestamp NULL DEFAULT NULL,
           KEY borrower_discharges_ibfk1 (borrower),
           CONSTRAINT borrower_discharges_ibfk1 FOREIGN KEY (borrower) REFERENCES borrowers (borrowernumber) ON DELETE CASCADE ON UPDATE CASCADE
-        )
+        ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
     |);
 
     print "Upgrade to $DBversion done (Bug 8007: Add System Preferences useDischarge, the discharge notice and the new table discharges)\n";