blitz-js / legacy-framework

MIT License
3 stars 2 forks source link

Update the official tutorial with initial db migration #49

Closed chikamichi closed 3 years ago

chikamichi commented 3 years ago

What do you want and why?

Hi. Following along the official tutorial, I stumbled upon an "error" where the User table would be missing, preventing from signing up.

I figured it out easily: one must run blitz prisma migrate dev.

Possible implementation(s)

Before the Sign up as a user section, add another section "explaining" the need for data (including a table of users), SQLite as a default, the concept of a migration, the schema.prisma file and more importantly, the migration command.

Additional context

Using latest Blitz version as of 02/08/2021: 0.38.6

chikamichi commented 3 years ago

Moved to https://github.com/blitz-js/blitzjs.com/issues/532 :pray: