Symfony sqlite migrations register adding a unique constraint

  php, symfony

I’ve added the following unique constraint to my entity in symfony.

use SymfonyBridgeDoctrineValidatorConstraintsUniqueEntity;

 * @ORMEntity(repositoryClass=FormTypeRepository::class)
 * @UniqueEntity("type")
 * @UniqueEntity("name")

However, running php bin/console doctrine:migrations:diff produces no differences.

Can this be done on the database level? SQLite supports the unique constraint.

If not, would this be enforced at a validation level.

Source: Ask PHP