The uniqueness constraint was added in 599c881714, but it was not part of the migration.
599c881714
Generic single-database configuration.