This repository was archived by the owner on Mar 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
[$75] NPM steps for creating tables #307
Comments
[500]: Challenge for the updated issue 307 is creating, rescheduling this event |
This was referenced Mar 30, 2020
Merged
To update DB models we need to:
https://drive.google.com/open?id=1Inrk21Jp38bfUVEwspwwaNbUHJG_pFId |
@afrisalyp - This seems to have worked, but we need to make the script a bit more user friendly. Can you add some output so we know when tables are being created, and add an error handler to output errors as well please? We'll need this in the future. |
@jmgasper - Ah okay. I'll make improvements to the script. Thanks for the feedback |
@jmgasper - I've updated the script to make it more informative. It'll be look like this. Do you think that it's acceptable? |
Yep, looks good, thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@afrisalyp - Let's add this
npm
options to the package.json. We'll need these to handle DB updates because our dev and prod creds configured for the app cannot do things like create tables, so we'll need to have a separate user run the updates first.npm run create-tables
step that can be run to look for each required table, and, if it doesn't exist, create it. This won't delete or overwrite any existing data, so it can be used non-destructively.The text was updated successfully, but these errors were encountered: