 
                    $table->enum('example_enum_column', array('enum1','enum2','enum3+'))->nullable()->change();Doctrine\DBAL\DBALException : Unknown database type enum requested, Doctrine\DBAL\Platforms\MariaDb1027Platform may not support it.
at /var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:436
432|
433| $dbType = strtolower($dbType);
434|
435| if (! isset($this->doctrineTypeMapping[$dbType])) {
436| throw new DBALException(‘Unknown database type ‘ . $dbType . ‘ requested, ‘ . static::class . ‘ may not support it.’);
437| }
438|
439| return $this->doctrineTypeMapping[$dbType];
440| }
Exception trace:
1 Doctrine\DBAL\Platforms\AbstractPlatform::getDoctrineTypeMapping(“enum”)
/var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php:128
2 Doctrine\DBAL\Schema\MySqlSchemaManager::_getPortableTableColumnDefinition()
/var/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:810
    public function up()
    {
        DB::statement("ALTER TABLE `table` CHANGE `example_enum_column` `example_enum_column` ENUM('enum1', 'enum2', 'enum3+');");
    }     public function down() 
     {
         DB::statement("ALTER TABLE `table` CHANGE `example_enum_column` `example_enum_column` ENUM('enum1', 'enum2');"); 
     }
            Sign up for our newsletter to stay up to date.
We care about the protection of your data. Read our Privacy Policy.
 
         
         
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
                
                    Schopenhauerstr. 71 
                    80807 München 
                    max@42coders.com 
                    +49 (0)176 / 724 306 82
                
© 2025 42coders All rights reserved.