github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/db/migrations/20180515050000_create_stat_daily_user_notification_event.sql (about) 1 -- +goose Up 2 -- SQL in section 'Up' is executed when this migration is applied 3 CREATE TABLE IF NOT EXISTS stat_daily_user_notification_event ( 4 `date` date NOT NULL, 5 `user_id` int unsigned NOT NULL, 6 `event` enum('open') NOT NULL, 7 `count` int unsigned NOT NULL, 8 PRIMARY KEY (`date`, `user_id`, `event`) 9 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC; 10 11 -- +goose Down 12 -- SQL section 'Down' is executed when this migration is rolled back 13 DROP TABLE stat_daily_user_notification_event;