migrations/Version20231130075405.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 Version20231130075405 extends AbstractMigration
    {
        public function getDescription(): string
        {
            return '';
        }
    
        public function up(Schema $schema): void
        {
            $this->addSql('ALTER TABLE `user` CHANGE `firstname` `firstname` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL, CHANGE `lastname` `lastname` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;');
            $this->addSql('ALTER TABLE `user` ADD `contact_name` VARCHAR(255) NOT NULL AFTER `email`, ADD `username` VARCHAR(255) NOT NULL AFTER `contact_name`;');
        }
    
        public function down(Schema $schema): void
        {
        
        }
        
    }