addSql('ALTER TABLE chill_person_accompanying_period_user_history ADD CONSTRAINT acc_period_user_history_not_overlaps EXCLUDE USING GIST (accompanyingperiod_id with =, tsrange(startdate, enddate) with &&) DEFERRABLE INITIALLY DEFERRED'); } public function down(Schema $schema): void { $this->addSql('ALTER TABLE chill_person_accompanying_period_user_history DROP CONSTRAINT acc_period_user_history_not_overlaps'); } }