Yarn rw g sdl is great but

yarn rw g sdl tableName is really nice to create new tables, but I was wondering what the best way to update the files generated by this command.

for example, if I want to add a new column to a table after I initially ran yarn rw g sdl is there an update command like yarn rw update sdl tableName? Or if I have to write those updates manually is there a recommended process? Like edit schema.prismaedit .sdl.js fileyarn rw db saveyarn rw db up

1 Like

In the scenario above, have you made modifications to the sdl file? If not, and would like a new generated file you can use the --force flag: yarn rw g sdl tableName --force


Ahh that --force should do what I need, thank you!