Fix migration SQL