nicoalbanese / kirimase

Build full-stack Next.js apps, incredibly fast
https://kirimase.dev
MIT License
2.39k stars 107 forks source link

Adding a field to an already-existing model #112

Closed josephdburdick closed 6 months ago

josephdburdick commented 6 months ago

Kirimase is good at creating models, views, and controllers from an easy-to-use cli. By doing it this way it generates snapshots which will help restoring a database if one were to clear everything.

It would be nice to be able to add fields from the generator so these actions are recorded in snapshots as well.

Until then, do we manually add these snapshots by copying the last snapshot, adding the fields we want and adding this entry to _journal.json?

josephdburdick commented 6 months ago

I am just realizing that this functionality is actually part of, in my particular case, drizzle kit. So I need to refer to its documentation on how migrations work?

josephdburdick commented 6 months ago

I am going to go ahead and look further into drizzle documentation. Closing this now.