-- Deploy mimas-talos:2018_10_26_add_videocover_table to mysql

BEGIN;

CREATE TABLE `api_video_cover` (
	`id` integer NOT NULL PRIMARY KEY AUTO_INCREMENT,
	`source_id` integer NOT NULL,
	`source_type` smallint NOT NULL,
	`video_url` varchar(128) NOT NULL,
	`video_pic` varchar(128) NOT NULL
);

CREATE INDEX `api_video_cover_video_url_69cc2317_idx` ON `api_video_cover` (`video_url`);

COMMIT;
