Skip to content

Upgrade Test Boxes to PostgreSQL 9.6 #5872

@pdurbin

Description

@pdurbin

Now that pull request #5866 has been fixed we have a new problem with getting the API test suite running again on the phoenix server.... the IF NOT EXISTS syntax is new as of PostgreSQL 9.6 (according to https://stackoverflow.com/questions/12597465/how-to-add-column-if-not-exists-on-postgresql/38721951#38721951 anyway) and the phoenix server is running PostgreSQL 9.3.25 according to psql --version.

https://build.hmdc.harvard.edu:8443/job/phoenix.dataverse.org-deploy-develop/408/console shows remote failure: Error occurred during deployment: Exception while loading the app : javax.ejb.CreateException: Initialization failed for Singleton StartupFlywayMigrator. Please see server.log for more details. and server.log shows the following:

Caused by: org.flywaydb.core.internal.sqlscript.FlywaySqlScriptException: 
Migration V4.14.0.1__5822-export-var-meta.sql failed
----------------------------------------------------
SQL State  : 42601
Error Code : 0
Message    : ERROR: syntax error at or near "NOT"
  Position: 44
Location   : db/migration/V4.14.0.1__5822-export-var-meta.sql (/usr/local/glassfish4/glassfish/domains/domain1/applications/dataverse/WEB-INF/classes/db/migration/V4.14.0.1__5822-export-var-meta.sql)
Line       : 1
Statement  : ALTER TABLE variablemetadata
ADD COLUMN IF NOT EXISTS postquestion text

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions