migrations/Version20220829121304.php line 1

Open in your IDE?
  1. <?php
    
    declare(strict_types=1);
    
    namespace DoctrineMigrations;
    
    use Doctrine\DBAL\Schema\Schema;
    use Doctrine\Migrations\AbstractMigration;
    
    /**
     * Auto-generated Migration: Please modify to your needs!
     */
    final class Version20220829121304 extends AbstractMigration
    {
        public function getDescription(): string
        {
            return '';
        }
    
        public function up(Schema $schema): void
        {
            // this up() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE admin ADD company VARCHAR(255) DEFAULT NULL, ADD address LONGTEXT DEFAULT NULL, ADD address_2 LONGTEXT DEFAULT NULL, ADD city VARCHAR(255) DEFAULT NULL, ADD zip VARCHAR(255) DEFAULT NULL, ADD country VARCHAR(255) DEFAULT NULL, ADD phone VARCHAR(255) DEFAULT NULL, ADD mobile VARCHAR(255) DEFAULT NULL, ADD web VARCHAR(255) DEFAULT NULL, ADD vat_id VARCHAR(255) DEFAULT NULL, ADD tax_code VARCHAR(255) DEFAULT NULL, ADD iban VARCHAR(255) DEFAULT NULL');
        }
    
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE admin DROP company, DROP address, DROP address_2, DROP city, DROP zip, DROP country, DROP phone, DROP mobile, DROP web, DROP vat_id, DROP tax_code, DROP iban');
        }
    }