teardown should attempt to delete dbName table#2083
Conversation
model name can be different than dbName when @@Map has been used in prisma schema
|
Thanks for this @nexneo! We're heads down on QA for the v0.28 release. I'm adding this to the review queue as soon as we're post v0.28. |
|
@cannikin I believe this one relates to the "teardown test DB" work you've been overseeing ongoing. Could you review and advise on failing tests? Thanks! |
|
I guess it's something inside api/src/services/posts/posts.test.js? That would be the one in the app, that's generated as a result of a generator somewhere, correct? Does that fail for you locally @nexneo ? |
Let me explain issue I was trying to solve here. In redwood blog example if you change schema.prisma Post model with Also I figured out issue why tests were failing previously, when you do not override table name with @cannikin Do you want me to do anything else here. |
|
@cannikin @thedavidprice Can you please update status? Thanks |
|
Looks good! I'll merge assuming all the tests pass after this rebase. Thanks! |
…erve-web * 'main' of github.com:redwoodjs/redwood: (40 commits) Support generating typescript cells and pages | Autodetect ts project (redwoodjs#2279) create-redwood-app messages: moved app start commands to end (redwoodjs#2278) Add import type to configuration files (redwoodjs#2214) Bump @reach/skip-nav from 0.13.2 to 0.15.0 (redwoodjs#2237) Adding Setup Deploy Render Command (redwoodjs#2099) Disable role linting in Routes (redwoodjs#2318) v0.30.1 (redwoodjs#2322) teardown should attempt to delete dbName table (redwoodjs#2083) Restore @storybook/addon-a11y (redwoodjs#2309) fix(auth): Implement automatic token refresh on supported providers (redwoodjs#2277) fix(cli): move api-server dep from api to cli (redwoodjs#2307) Static typing for cells (redwoodjs#2208) Recommended Babel package upgrades (dependabot) (redwoodjs#2255) v0.30.0 (redwoodjs#2301) upgrade Prisma v2.21.0 (redwoodjs#2273) Further improvements to CONTRIBUTING.md (redwoodjs#2261) Adds better messages for rwt link | Watcher does not exist on build failure | Only remove node_modules after a succesful framework build (redwoodjs#2269) Update named param types in router readme (redwoodjs#2262) Bump core-js from 3.6.5 to 3.10.1 (redwoodjs#2243) Fix: webpack optimizations for JS (redwoodjs#2235) ...

model name can be different than dbName when
@@map("actual_table_name")has been used in prisma schemaI'm unsure if there is any test associated with jest setup, please suggest if I need to do anything else here.
Thanks!