use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
@ -12,23 +16,19 @@ class Version20230904173401 extends AbstractMigrationChamilo
return 'Calendar: Cleanup about invitations/subscriptions';
}
/**
* @inheritDoc
*/
public function up(Schema $schema): void
{
if ($schema->hasTable('agenda_event_invitation')) {
$this->addSql('ALTER TABLE personal_agenda DROP FOREIGN KEY FK_D8612460AF68C6B');
$this->addSql("DROP INDEX UNIQ_D8612460AF68C6B ON personal_agenda");
$this->addSql('DROP INDEX UNIQ_D8612460AF68C6B ON personal_agenda');
$this->addSql("ALTER TABLE personal_agenda DROP agenda_event_invitation_id, DROP collective, DROP subscription_visibility, DROP subscription_item_id");
$this->addSql('ALTER TABLE personal_agenda DROP agenda_event_invitation_id, DROP collective, DROP subscription_visibility, DROP subscription_item_id');
$this->addSql("ALTER TABLE agenda_event_invitation DROP FOREIGN KEY FK_52A2D5E161220EA6");