Adding sql patch forgotten from last commit.