Skip to content

Syntax Error in CRATE TABLE Statement when deploying with PostgreSQL #290

@JuergenSu

Description

@JuergenSu

Hello,

We want do deploy the autosleep service broker in our own CloudFoundry deployment. Unfortunatelly we do not have a mysql but only a postgesql 9.1. When we do so and startup the autowakeup-app it tries to create tables using liquibase. But this fails due to a SQL Syntax Error

Position: 135 [Failed SQL: CREATE TABLE public."SpaceEnrollerConfig" (id VARCHAR(255) NOT NULL, "excludeFromAutoEnrollment" BYTEA, "forcedAutoEnrollment" BOOLEAN(1) NOT NULL, "idleDuration" BYTEA, "organizationId" VARCHAR(255), "planId" VARCHAR(255), secret VARCHAR(255), "serviceDefinitionId" VARCHAR(255), "spaceId" VARCHAR(255), "ignoreRouteServiceError" BOOLEAN(1) DEFAULT FALSE NOT NULL, CONSTRAINT PK_SPACEENROLLERCONFIG PRIMARY KEY (id, "forcedAutoEnrollment"))] 

it seams to be somehow related to the BOOLEAN(1) notation. When Changing to BOOLEAN without the (1) it seems to work.

Could you please have a look at it.

kind regards
Juergen Sussner

Metadata

Metadata

Assignees

No one assigned

    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