-- Deploy gaia:2019_08_29_create_table_pushreadlog to mysql

BEGIN;

alter table api_pushuser add column is_read bool NOT NULL;

CREATE TABLE `api_pushreadlog` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`push_task_id` integer NOT NULL,
`create_time` datetime(6) NOT NULL,
`update_time` datetime(6) NOT NULL,
`user_id` integer NOT NULL);
CREATE INDEX `api_pushreadlog_push_task_id_2930b841` ON `api_pushreadlog` (`push_task_id`);
CREATE INDEX `api_pushreadlog_user_id_803e364d` ON `api_pushreadlog` (`user_id`);

COMMIT;
