In the file "OMOP CDM ddl - PostgreSQL.sql", the declaration of discharge_to_concept_id in the visit_occurrence table is defined as "INTEGER(50)", causing a syntax error.
I assume this id is an integer, and the appropriate fix is to remove the "(50)".