public static function drop($typeName, $cascade = false)
    {
        $db = static::getDb();

        return $db->createCommand(
            'DROP TYPE IF EXISTS ' . $db->quoteColumnName($typeName)
            . ($cascade ? ' CASCADE' : '')
        )->execute();
    }
public static function drop($typeName, $cascade = false)
    {
        $db = static::getDb();

        return $db->createCommand(
            'DROP TYPE IF EXISTS ' . $db->quoteColumnName($typeName)
            . ($cascade ? ' CASCADE' : '')
        )->execute();
    }
public static function drop ( $ typeName , $ cascade = false ) { $ db = static :: getDb ( ) ; return $ db -> createCommand ( 'DROP TYPE IF EXISTS ' . $ db -> quoteColumnName ( $ typeName ) . ( $ cascade ? ' CASCADE' : '' ) ) -> execute ( ) ; }
Drop an enum type

@param string $typeName name of the enum type
@param bool $cascade if true, automatically drop objects that depend on the type (such as table columns, functions, operators).
@return int number of rows affected by the execution.
Drop an enum type