Skip to content

Instantly share code, notes, and snippets.

@jyhsu2000
Created October 22, 2015 11:40
Show Gist options
  • Save jyhsu2000/66284045faf749ebd61c to your computer and use it in GitHub Desktop.
Save jyhsu2000/66284045faf749ebd61c to your computer and use it in GitHub Desktop.
Recalculated migrations id
SET @a = 0;
UPDATE migrations SET batch = @a:=@a+1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment