Skip to content

Commit 3fad42e

Browse files
committed
small updates on readme
1 parent 88a3231 commit 3fad42e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nowcasting_datamodel/migrations/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ When we change the datamodel of the PV or Forecast database we will need to run
44

55
## 1. old local database
66
start local database of database before data model changes. This can be done by setting `DB_URL` and `DB_URL_PV` and running
7-
by running ```python nowcasting_datamodel/migrations/app.py --run-migrations```
7+
by running ```python nowcasting_datamodel/migrations/app.py --make-migrations```
88

99
## 2. run migrations scripts
10-
by running ```python nowcasting_datamodel/migrations/app.py --make-migrations```
10+
by running ```python nowcasting_datamodel/migrations/app.py --run-migrations```
1111

1212
## 3. migrations revision
1313
commit migrations revision to repo
1414

1515
## 4. Start AWS task on ECS with docker container from this repo
1616
This will run all the migrations an update the database in production / development
1717
TODO Set up task definition using terraform
18+
The current solution is to oopen ssh tunnel and run the migrations from there

0 commit comments

Comments
 (0)