Skip to content

Commit d9ca730

Browse files
ChrisPaliqawMartinsos
authored andcommitted
Update backends.md (#1451)
1 parent 14bcec7 commit d9ca730

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

web/docs/data-model/backends.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,19 @@ We cover all supported ways of connecting to a database in [the next section](#c
3232

3333
To run your Wasp app in production, you'll need to switch from SQLite to PostgreSQL.
3434

35-
1. Set the `app.db.system` fild to PostgreSQL.
35+
1. Set the `app.db.system` field to PostgreSQL.
36+
37+
```wasp title=main.wasp
38+
app MyApp {
39+
title: "My app",
40+
// ...
41+
db: {
42+
system: PostgreSQL,
43+
// ...
44+
}
45+
}
46+
```
47+
3648
2. Delete all the old migrations, since they are SQLite migrations and can't be used with PostgreSQL:
3749

3850
```bash

0 commit comments

Comments
 (0)