Updated the register logic in the TableFactory

This commit is contained in:
mathias 2021-08-27 12:50:45 +02:00
parent 3883d5f3d4
commit f29731cdd2
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -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;
}