Currently when you run the generate-models script if you had tables that had previously existed and no longer do, those models would not be deleted on the next run. This approach makes certain that each path we write a model to is at first removed before the path is re-created making is no previous models remain and only current ones are created.
This pull request does NOT resolve if an entire schema was deleted as a sibling to public that it will be removed in the folder structure. The current execution of this code would not know that path exists.
Resolves #34
Tasks
[X] Remove previous paths that exist before creating new model files
Purpose
Currently when you run the
generate-models
script if you had tables that had previously existed and no longer do, those models would not be deleted on the next run. This approach makes certain that each path we write a model to is at first removed before the path is re-created making is no previous models remain and only current ones are created.This pull request does NOT resolve if an entire schema was deleted as a sibling to
public
that it will be removed in the folder structure. The current execution of this code would not know that path exists.Resolves #34
Tasks
Verify
sync-models
scriptsync-models
script a second timeBefore
After