Skip to content

Migrating from 4.0 to 4.11: default for column "bugtrackertype" cannot be cast automatically #3665

@seanm

Description

@seanm

Running install.sh to upgrade from 4.0 to 4.11 we got this message:

In Connection.php line 838:
                                                                                                                  
  SQLSTATE[42804]: Datatype mismatch: 7 ERROR:  default for column "bugtrackertype" cannot be cast automatically  
   to type bugtrackertype (Connection: pgsql, Host: localhost, Port: 5432, Database: cdash, SQL:                  
              ALTER TABLE project                                                                                 
              ALTER COLUMN bugtrackertype                                                                         
              TYPE bugtrackertype USING                                                                           
                  CASE                                                                                            
                      WHEN bugtrackertype = 'GitHub' THEN 'GitHub'::bugtrackertype                                
                      WHEN bugtrackertype = 'Buganizer' THEN 'Buganizer'::bugtrackertype                          
                      WHEN bugtrackertype = 'JIRA' THEN 'JIRA'::bugtrackertype                                    
                      ELSE NULL                                                                                   
                  END                                                                                             
          )                                                                                                       
                                                                                                                  

In Connection.php line 584:
                                                                                                                  
  SQLSTATE[42804]: Datatype mismatch: 7 ERROR:  default for column "bugtrackertype" cannot be cast automatically  
   to type bugtrackertype                                                                                         

The migration seemed to finish anyway, and the resulting site seems usable so far, but the error message above seems like cause for concern nonetheless...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions