Adding second migration for department table

This commit is contained in:
sanketmeghani 2016-09-12 22:53:09 +05:30
parent 73fde40da0
commit 3d66a5f28a
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `department` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` varchar(20)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
ALTER TABLE `employee` ADD `dept_id` int AFTER `email`;