GORM Playground Link
https://github.com/go-gorm/playground/pull/581
Description
I create uniq index with condition on value: gorm:index:idx_uniq,unique,where:field=0.
When I run AutoMigrate 2 time (restarting app) i get error "UNIQUE constraint failed" on temp table.
Rows (ID, Field):
1, 0 // Uniq
2, 1 // No Uniq
3, 1 // No Uniq
Perhaps the reason is auto uniq index like "sqlite_autoindex_..."