forked from dalers/mywind
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dale Scott
committed
Jan 8, 2014
1 parent
bb5bfdf
commit 948b976
Showing
6 changed files
with
1,791 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
northwind | ||
========= | ||
|
||
MySQL equivalent of MS Northwind database (MS Access 2010) | ||
The Northwind database provided with Microsoft Access is an excellent schema example 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). | ||
|
||
Files | ||
----- | ||
* Model: northwind_mysql.mwb (MySQL Workbench v6.02) | ||
* ERD: northwind_mysql.pdf | ||
* Structure 1: northwind_mysql-structure.sql | ||
* Structure 2: northwind_mysql-structure-timestamp.sql (record create and modified columns use DEFAULT CURRENT_TIMESTAMP, requires MySQL 5.6.5+) | ||
* Data: northwind_mysql-data.sql | ||
|
||
Procedure | ||
--------- | ||
* Northwind database template created using MS Access 2010 (MS Access 2010 > File > New > Sample Templates > Northwind > SaveAs) | ||
* Convert Northwind.accdb to MySQL syntax using BullZip [Access to MySQL](http://www.bullzip.com) (version 5.1.242). [BullZip states Access to MySQL](http://www.bullzip.com/download.php) is "FREEWARE may be used free of charge for non-commercial purposes." (unfortunately it does not convert foreign key relationships though). | ||
* Converted CamelCase identifiers to lower_case_with_underscore | ||
* Replaced space and slash characters in identifiers with _underscores_ | ||
* Renamed primary key columns "id" | ||
* Renamed foreign key columns "xxx_id" (e.g. "inventory_id") | ||
* Changed record create and modified date columns to type DATETIME to avoid TIMESTAMP range (1997 - 2038 UTC) and other limitations | ||
* Added foreign key relationships and created ERD using MySQL Workbench |
Oops, something went wrong.