Skip to content

Commit

Permalink
1.48
Browse files Browse the repository at this point in the history
- Fixed table.version and table.steps not set to 0 if not existing in meta data table which caused issues for new databases (please delete your new and empty database in this case and retry)
  • Loading branch information
Osiris-Team committed Apr 4, 2024
1 parent 7febceb commit d0501d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.osiris.jsqlgen</groupId>
<artifactId>jSQL-Gen</artifactId>
<version>1.47</version>
<version>1.48</version>
<name>jSQL-Gen</name>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ public static void s(Database db, File databaseFile, String rawUrl, String url,
" String insertQuery = \"INSERT INTO `jsqlgen_metadata` (`tableId`, `tableVersion`, `steps`) VALUES (?, ?, ?)\";\n" +
" try (PreparedStatement ps = c.prepareStatement(insertQuery)) {\n" +
" ps.setInt(1, t.id);\n" +
" t.version = 0;\n" +
" ps.setInt(2, t.version);\n" +
" t.steps = 0;\n" +
" ps.setInt(3, t.steps);\n" +
" ps.executeUpdate();\n" +
" }\n" +
Expand Down

0 comments on commit d0501d1

Please sign in to comment.