addSql('DROP INDEX IDX_RELATIONSHIPS000'); } public function getDescription(): string { return 'Add constraint with a index on chill_person_relationships.'; } public function up(Schema $schema): void { $this->addSql('CREATE UNIQUE INDEX IDX_RELATIONSHIPS000 ON chill_person_relationships (least(fromperson_id, toperson_id), greatest(fromperson_id, toperson_id))'); } }