diff --git a/README.md b/README.md index 5d57ce0..39732e0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ ## MyWind -MyWind - MySQL version of MS Northwind 2010 database (MS Access) +MyWind is a MySQL version of the Microsoft Access 2010 *Northwind* sample database. -The Northwind demo database provided with Microsoft Access is an excellent tutorial schema for managing small business customers, orders, inventory, purchasing, suppliers, shipping, and employees. My problem was that I wanted to experiment with it using [MySQL](http://www.mysql.com) and the [Yii Framework](http://www.yiiframework.com). +The Northwind sample database provided with Microsoft Access is a tutorial schema for managing small business customers, orders, inventory, purchasing, suppliers, shipping, and employees. My problem was I wanted to experiment with the Northwind schema using [MySQL](http://www.mysql.com). + +## WARNING + +* northwind.mdb -> northwind-02.mdb (and other new/modifed files in this commit) may be the result of correcting or improving the ERD model where it relates to sales orders and shipping (as presumed by addition of northwind-02-sales-orders-and-shipping.png). Whoever walks this way, please figure this out and deal with it appropriately. ## Files @@ -14,14 +18,14 @@ The Northwind demo database provided with Microsoft Access is an excellent tutor ## Creating MyWind -* Create Northwind.aacdb using MS Access 2010 (File > New > Sample Templates > Northwind > SaveAs) -* Convert Northwind.accdb to MySQL SQL using BullZip ["Access to MySQL"](http://www.bullzip.com).[1] -* Converted CamelCase identifiers to lower_case_with_underscore -* Replace space and slash characters in identifiers with _underscores_ -* Rename primary key columns "id" -* Rename foreign key columns "xxx_id" (e.g. "inventory_id") -* Change record create and modified date columns to type DATETIME to avoid TIMESTAMP range (1997 - 2038 UTC) and other limitations -* Add foreign key relationships and create ERD using MySQL Workbench +* Created Northwind.aacdb using MS Access 2010 (File > New > Sample Templates > Northwind > SaveAs). +* Created basic SQL equivalent of Northwind schema for MySQL using using BullZip ["Access to MySQL"](http://www.bullzip.com).[1] +* Replaced CamelCase identifier names with lower_case_with_underscore identifier names. +* Replaced " " (space) and "/" (forward slash) characters in identifiers with _underscores_. +* Renamed table primary keys "id". +* Renamed table foreign keys "xxx_id" (e.g. "inventory_id"). +* Changed record-create and modify-date columns to type DATETIME (to avoid the 1997 - 2038 UTC date range restriction of TIMESTAMP, and also other limitations). +* Added foreign key relationships and created ERD using MySQL Workbench. ---- [1]: BullZip *Access to MySQL* version 5.1.242. *Access to MySQL* "...may be used free of charge for non-commercial purposes.", http://www.bullzip.com, accessed 2014-01-08. diff --git a/northwind-02-sales-orders-and-shipping.png b/northwind-02-sales-orders-and-shipping.png new file mode 100644 index 0000000..96ffed7 Binary files /dev/null and b/northwind-02-sales-orders-and-shipping.png differ diff --git a/northwind-02.mwb b/northwind-02.mwb new file mode 100644 index 0000000..7b1f63e Binary files /dev/null and b/northwind-02.mwb differ diff --git a/northwind-erd.pdf b/northwind-erd.pdf index a076770..2d41d5b 100644 Binary files a/northwind-erd.pdf and b/northwind-erd.pdf differ