Closed DavidLarsKetch closed 6 years ago
makeProductOrderTable.js now generates Product_Orders table when npm run db:generate is called.
makeProductOrderTable.js
Product_Orders
npm run db:generate
1
Product_Orders did not exist
Calls generateSqlTable() from db/sqlRunTemplate.js, passing in data/json/productOrders.json, provides the data format, and exports that.
generateSqlTable()
db/sqlRunTemplate.js
data/json/productOrders.json
When npm run db:generate is called, a Product_Orders table should appear in db/api-sprint.sqlite
db/api-sprint.sqlite
[ ] There are new unit tests in this PR, and I verify that there is full coverage of all new code. [ ] I certify that all existing tests pass
[ ] There is new documentation in this pull request that must be reviewed.. [ ] I added documentation for any new classes/methods
Notes regarding deployment the contained body of work. These should note any db migrations, etc.
Up to date with master
Description
makeProductOrderTable.js
now generatesProduct_Orders
table whennpm run db:generate
is called.Number of Fixes
1
Related Ticket(s)
42
Problem to Solve
Product_Orders
did not existProposed Changes
Calls
generateSqlTable()
fromdb/sqlRunTemplate.js
, passing indata/json/productOrders.json
, provides the data format, and exports that.Expected Behavior
When
npm run db:generate
is called, aProduct_Orders
table should appear indb/api-sprint.sqlite
Steps to Test Solution
npm run db:generate
Testing
[ ] There are new unit tests in this PR, and I verify that there is full coverage of all new code. [ ] I certify that all existing tests pass
Documentation
[ ] There is new documentation in this pull request that must be reviewed.. [ ] I added documentation for any new classes/methods
Deploy Notes
Notes regarding deployment the contained body of work. These should note any db migrations, etc.