-- !!!!WARNING!!!!
-- THIS MIGRATION WAS ALREADY RUN ON 2020/06/04 FOR BRINK

-- Alembic Revision: None

-- In order to rollback, we need to delete any rows with `key`s greater than 2^31, so that we can reset
-- the `key` column to a 32 bit integer.

LOCK TABLES `daily_cache_locks` WRITE;

DELETE FROM `daily_cache_locks` WHERE `id` > 2147483647;
ALTER TABLE `daily_cache_locks` modify `id` int(11) NOT NULL;
ALTER TABLE `daily_cache_locks` modify `id` int(11) NOT NULL auto_increment;

UNLOCK TABLES;
