domdinnes / node-flyway

Apply version control to databases from within a Node.js application.
23 stars 6 forks source link

unexpected end of file on migrate #18

Closed LucasMonteiro1 closed 1 year ago

LucasMonteiro1 commented 1 year ago

const flyway = new Flyway({
    url: 'jdbc:postgresql://localhost:5432/test?ssl=false',
    user: 'user',
    password: 'pass',
    migrationLocations: ['migrations/postgres],
  });

  flyway.migrate().then(response => {
    if (!response.success) {
      throw new Error(`Unable to execute migrate command. Error: ${response.error.errorCode}`);
    }
  });
Error: unexpected end of file
    at Zlib.zlibOnError [as onerror] (node:zlib:189:17)