mapguesser/database/migrations/structure/20200705_0219_redefine_tokens.sql

5 lines
127 B
SQL

UPDATE `sessions` SET id=SUBSTRING(id, 1, 32);
ALTER TABLE `sessions`
MODIFY `id` varchar(32) CHARACTER SET ascii NOT NULL;