Skip to content

Fix/db#12

Merged
iainkirkpatrick merged 2 commits intomasterfrom
fix/db
Apr 16, 2018
Merged

Fix/db#12
iainkirkpatrick merged 2 commits intomasterfrom
fix/db

Conversation

@iainkirkpatrick
Copy link
Member

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:

  • they want to install node modules once the app is scaffolded
  • if so, they want to run migrations once modules are installed

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant