migrations/Version20231013094502.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 Version20231013094502 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 `user` ADD `user_role_type` ENUM('home_owner','architect','showroom') NULL DEFAULT NULL AFTER `user_type`;");
            $this->addSql("ALTER TABLE `user` ADD `styles` TEXT NULL DEFAULT NULL AFTER `parent_id`");
            $this->addSql("ALTER TABLE `user` CHANGE `user_type` `user_type` VARCHAR(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '0 => backend, 1 => frontend';");
        }
    
        public function down(Schema $schema): void
        {
            
        }
    }