Skip to content

Error in schema check for MsSql Server #361

@enietom

Description

@enietom

I have a JaverSqlRepository configuration with "MSSQL" as dialect. Everything was working fine, but the second time I started the app I got an SQL exception error after the following warning message:

WARN JaversSchemaManager- column jv_snapshot.version not exists, running ALTER TABLE ...

I debuged in order to see what was going on, and it appears to be an issue in JaversSchemaManager.addSnapshotVersionColumnIfNeeded. Javers is trying to execute:

ALTER TABLE jv_snapshot ADD COLUMN version BIGINT

but "COLUMN" is not recognized by MsSQL. I tried running:

ALTER TABLE jv_snapshot ADD version BIGINT

and it executed correctly.

This is happening in the last version of Javers and Microsoft SQL Server 2012.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions