fixing settings migration for unique contraint