- <?php
- declare(strict_types=1);
- namespace DoctrineMigrations;
- use Doctrine\DBAL\Schema\Schema;
- use Doctrine\Migrations\AbstractMigration;
- final class Version20230418143649 extends AbstractMigration
- {
-     public function getDescription(): string
-     {
-         return 'Delete email and phone fields';
-     }
-     public function up(Schema $schema): void
-     {
-         $this->addSql('ALTER TABLE event_managment.location DROP email');
-         $this->addSql('ALTER TABLE event_managment.location DROP phone');
-     }
-     public function down(Schema $schema): void
-     {
-         $this->addSql('ALTER TABLE event_managment.location ADD email VARCHAR(255) DEFAULT NULL');
-         $this->addSql('ALTER TABLE event_managment.location ADD phone VARCHAR(255) DEFAULT NULL');
-     }
- }
-