forked from ebhomengo/niki
11 lines
427 B
MySQL
11 lines
427 B
MySQL
|
-- +migrate Up
|
||
|
CREATE TABLE `cities` (
|
||
|
`id` INT PRIMARY KEY AUTO_INCREMENT,
|
||
|
`name` VARCHAR(191) NOT NULL,
|
||
|
`province_id` INT NOT NULL,
|
||
|
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||
|
FOREIGN KEY (`province_id`) REFERENCES `provinces`(`id`)
|
||
|
);
|
||
|
|
||
|
-- +migrate Down
|
||
|
DROP TABLE `cities`;
|