Skip to content

Commit

Permalink
Fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriichan committed Feb 4, 2022
1 parent f74b022 commit febd9ed
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.lauriichan.minecraft.wildcard</groupId>
<artifactId>wildcard-parent</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
<packaging>pom</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion wildcard-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>me.lauriichan.minecraft.wildcard</groupId>
<artifactId>wildcard-parent</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</parent>
<artifactId>wildcard-core</artifactId>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public PreparedStatement startBatch(Connection connection, String table) throws
public void migrateBatch(PreparedStatement statement, ResultSet legacyData) throws SQLException {
statement.setString(1, UUIDHelper.toUniqueId(legacyData.getBytes("Owner")).toString());
statement.setString(2, Hex.encodeHexString(legacyData.getBytes("Token")));
statement.setObject(3, legacyData.getObject("Expires", OffsetDateTime.class));
statement.setInt(3, legacyData.getInt("Uses"));
statement.setObject(4, legacyData.getObject("Expires", OffsetDateTime.class));
statement.addBatch();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public PreparedStatement startBatch(Connection connection, String table) throws
public void migrateBatch(PreparedStatement statement, ResultSet legacyData) throws SQLException {
statement.setString(1, UUIDHelper.toUniqueId(legacyData.getBytes("Owner")).toString());
statement.setString(2, Hex.encodeHexString(legacyData.getBytes("Token")));
statement.setString(3, legacyData.getString("Expires"));
statement.setInt(3, legacyData.getInt("Uses"));
statement.setString(4, legacyData.getString("Expires"));
statement.addBatch();
}

Expand Down
2 changes: 1 addition & 1 deletion wildcard-fabric/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ loader_version=0.12.12

# Mod Properties
mod_patch = 0
mod_version = 2.1.0
mod_version = 2.1.1
maven_group = me.lauriichan.minecraft.wildcard
archives_base_name = wildcard-fabric
2 changes: 1 addition & 1 deletion wildcard-forge/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

mod_patch = 0
mod_version = 2.1.0
mod_version = 2.1.1
maven_group = me.lauriichan.minecraft.wildcard
archives_base_name = wildcard-forge
2 changes: 1 addition & 1 deletion wildcard-migration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>me.lauriichan.minecraft.wildcard</groupId>
<artifactId>wildcard-parent</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</parent>
<artifactId>wildcard-migration</artifactId>
<description>Migration lib for the wildcard core</description>
Expand Down
2 changes: 1 addition & 1 deletion wildcard-sponge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>me.lauriichan.minecraft.wildcard</groupId>
<artifactId>wildcard-parent</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</parent>
<artifactId>wildcard-sponge</artifactId>

Expand Down
2 changes: 1 addition & 1 deletion wildcard-vanilla/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>me.lauriichan.minecraft.wildcard</groupId>
<artifactId>wildcard-parent</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
</parent>
<artifactId>wildcard-vanilla</artifactId>

Expand Down

0 comments on commit febd9ed

Please sign in to comment.