Adding second migration for department table
This commit is contained in:
parent
73fde40da0
commit
3d66a5f28a
|
@ -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`;
|
Loading…
Reference in New Issue