Skip to content

Commit

Permalink
Updated SQL collation from utf8mb4_0900_ai_ci to utf8mb4_unicode_520_…
Browse files Browse the repository at this point in the history
…ci for backward compatibility with MySQL 5.7
  • Loading branch information
bigprof committed Nov 3, 2024
1 parent 49cca20 commit 9b4bef3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions northwind.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CREATE TABLE `categories` (
`Description` text,
PRIMARY KEY (`CategoryID`),
UNIQUE KEY `CategoryName` (`CategoryName`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -65,7 +65,7 @@ CREATE TABLE `customers` (
`Fax` varchar(24) DEFAULT NULL,
`TotalSales` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`CustomerID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -109,7 +109,7 @@ CREATE TABLE `employees` (
`TotalSales` decimal(10,2) DEFAULT NULL,
PRIMARY KEY (`EmployeeID`),
KEY `ReportsTo` (`ReportsTo`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -143,7 +143,7 @@ CREATE TABLE `order_details` (
PRIMARY KEY (`odID`),
KEY `OrderID` (`OrderID`),
KEY `ProductID` (`ProductID`)
) ENGINE=InnoDB AUTO_INCREMENT=2156 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=2156 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -189,7 +189,7 @@ CREATE TABLE `orders` (
KEY `CustomerID` (`CustomerID`),
KEY `EmployeeID` (`EmployeeID`),
KEY `ShipVia` (`ShipVia`)
) ENGINE=InnoDB AUTO_INCREMENT=11078 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=11078 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -227,7 +227,7 @@ CREATE TABLE `products` (
PRIMARY KEY (`ProductID`),
KEY `SupplierID` (`SupplierID`),
KEY `CategoryID` (`CategoryID`)
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=78 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -255,7 +255,7 @@ CREATE TABLE `shippers` (
`Phone` varchar(24) DEFAULT NULL,
PRIMARY KEY (`ShipperID`),
UNIQUE KEY `CompanyName` (`CompanyName`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down Expand Up @@ -291,7 +291,7 @@ CREATE TABLE `suppliers` (
`Fax` varchar(24) DEFAULT NULL,
`HomePage` text,
PRIMARY KEY (`SupplierID`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand Down

0 comments on commit 9b4bef3

Please sign in to comment.