Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
Flyway migration fails only on linux server

I have this error in my migration script

Caused by: org.flywaydb.core.internal.sqlscript.FlywaySqlScriptException: Migration V1_0_1__initial_schema.sql failed
-------------------------------------------
SQL State  : 42601
Error Code : 0
Message    : ERROR: syntax error at or near "("
  Position: 458
Location   : db/migration/V1_0_1__initial_schema.sql (/root/server/build/resources/main/db/migration/V1_0_1__initial_schema.sql)
Line       : 50
Statement  : create table xxxxx /* (this is line 50) */
( 
    id               bigserial                 not null primary key,
    name             text                      not null,
    created          timestamptz default now() not null,
    xxxxx_id         uuid                      not null references xxxxx,
    xxxxxx_xx_xxxx   uuid                      not null,
    owner_id         bigint                    not null references "xxxx",
    document         text generated always as ( id::text || ' ' || name ) stored,
    xxxxxx_id bigint references xxxxxx
)

but the syntax for the script is fine - works fine locally. Both my local and server machines have postgresql 13 installed

server

# psql --version
psql (PostgreSQL) 13.4 (Debian 13.4-4.pgdg100+1)

local

$ "C:\Program Files\PostgreSQL\13\bin\psql.exe" --version
psql (PostgreSQL) 13.2
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda