Error in schema check for MsSql Server #361
Closed
Comments
That's because I don't have Windows to test these schema migration scripts ... |
Do you think this fix is correct? ab32812 |
That throws a...
... error (at least on my MSSQL 2012 server). Guess you would have to add a new "else if" for the "MsSqlDialect" and then the SQL should be:
|
bartoszwalacik
added a commit
that referenced
this issue
Apr 16, 2016
ok, the last version should work |
fix released in javers 1.6.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
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.
The text was updated successfully, but these errors were encountered: