updated doc
This commit is contained in:
@@ -23,7 +23,6 @@ tar -xzf /path/to/backup.tar.gz -C /tmp/dental_dump_dir
|
||||
|
||||
# create DB (if not exists) and restore (data-only or custom format)
|
||||
PGPASSWORD='mypassword' createdb -U postgres -h localhost -O postgres dentalapp
|
||||
PGPASSWORD='mypassword' pg_restore -U postgres -h localhost -d dentalapp -j 4 /tmp/dental_dump_dir
|
||||
# (or use /usr/lib/postgresql/<ver>/bin/pg_restore if version mismatch)
|
||||
```
|
||||
# 1.2 — (If needed) fix postgres user password / auth
|
||||
@@ -36,12 +35,6 @@ sudo -u postgres psql -c "ALTER ROLE postgres WITH PASSWORD 'mypassword';"
|
||||
```
|
||||
---
|
||||
|
||||
# 2 — Confirm DB has tables
|
||||
|
||||
```bash
|
||||
PGPASSWORD='mypassword' psql -U postgres -h localhost -d dentalapp -c "\dt"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3 — Let Prisma create the schema (RUN ONCE)
|
||||
|
||||
Reference in New Issue
Block a user