permafrost06 / DiagMan

Patient/disease case management software
2 stars 1 forks source link

Added migration functionality using drizzle #52

Closed protibimbok closed 1 year ago

protibimbok commented 1 year ago

Change the schema in worker/drizzle/schema.ts and then run:

pnpm db:migrate
protibimbok commented 1 year ago

Why is the migrations folder in .gitignore? I'm very confused.

That is because if you have migrated already then, the migration history is not required anymore. If you make any changes then the migrations will be generated based on the last migration only.