root-systems / create-dogstack-app

create a new dogstack app and scaffold files + folders
5 stars 2 forks source link

Fix/db #12

Closed iainkirkpatrick closed 6 years ago

iainkirkpatrick commented 6 years ago

addresses not creating or running migrations when an app / topic is created, which was causing the generated app to crash on visting /dogs

now when a user creates an app, they are prompted as to whether:

a migration can also now be created from createType, and it will be created in the app db/migrations folder.

there is minimal error handling for if the user already has a database existing with the same name as generated by createApp (i.e. ${appName}_development), but this could probably be improved, as could error handling for no Postgres installed / running or other errors - a ticket to be made for this.