-
-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Labels
Description
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.
Reactions are currently unavailable