Skip to content

Commit

Permalink
smol bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNavaStar committed Feb 11, 2024
1 parent fc86940 commit e01a854
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/me/mrnavastar/sqlib/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ public class Table {

@Getter
private boolean isInTransaction = false;
protected boolean autoIncrement = false;
private final boolean autoIncrement;

public Table(@NonNull String modId, @NonNull String name, @NonNull Database database, @NonNull SQLConnection connection, boolean autoIncrement) {
this.modId = modId;
this.name = name;
this.database = database;
this.connection = connection;
this.autoIncrement = autoIncrement;

connection.createTable(this, autoIncrement);
database.addTable(this);
Expand Down

0 comments on commit e01a854

Please sign in to comment.