main
|
Last change
on this file since 3fca46c was 8ee4553, checked in by Bati <no-reply@…>, 7 months ago |
|
scaffold Vike app with Bati
|
-
Property mode
set to
100644
|
|
File size:
620 bytes
|
| Rev | Line | |
|---|
| [8ee4553] | 1 | Follow the steps below to finish setting up your application.
|
|---|
| 2 |
|
|---|
| 3 | ## Drizzle
|
|---|
| 4 |
|
|---|
| 5 | First, ensure that `DATABASE_URL` is configured in `.env` file, then create the database:
|
|---|
| 6 |
|
|---|
| 7 | ```bash
|
|---|
| 8 | npm run drizzle:generate # a script that executes drizzle-kit generate.
|
|---|
| 9 | npm run drizzle:migrate # a script that executes drizzle-kit migrate.
|
|---|
| 10 | ```
|
|---|
| 11 |
|
|---|
| 12 | > \[!NOTE]
|
|---|
| 13 | > The `drizzle-kit generate` command is used to generate SQL migration files based on your Drizzle schema.
|
|---|
| 14 | >
|
|---|
| 15 | > The `drizzle-kit migrate` command is used to apply the generated migrations to your database.
|
|---|
| 16 |
|
|---|
| 17 | Read more on [Drizzle ORM documentation](https://orm.drizzle.team/docs/overview)
|
|---|
| 18 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.