Skip to content

Commit

Permalink
entity manager should create db also (if it doesnt exist)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Dec 18, 2023
1 parent 7dd921a commit 7ba8ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/entities/EntityManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class EntityManager {
applyProperties();
applyTableRelationships();
database.connect().then(result -> {
return database.create();
}).then(_ -> {
_connected = true;
resolve(true);
}, (error:DatabaseError) -> {
Expand Down

0 comments on commit 7ba8ef5

Please sign in to comment.