Updated the register logic in the TableFactory

This commit is contained in:
Mathias committed 2021-08-27 12:50:45 +02:00
1 parent 3883d5f3d4
commit f29731cdd2
1 file changed
+1 -1
@@ -28,7 +28,7 @@ public class TableFactory {
* @return this class
*/
public TableFactory register(SQLTable table) {
connection.update(table.generateSQL());
table.create();
REGISTERED_TABLES.put(table.getClass(), table);
return this;
}