File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
nowcasting_datamodel/migrations Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
66start 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
1313commit migrations revision to repo
1414
1515## 4. Start AWS task on ECS with docker container from this repo
1616This will run all the migrations an update the database in production / development
1717TODO Set up task definition using terraform
18+ The current solution is to oopen ssh tunnel and run the migrations from there
You can’t perform that action at this time.
0 commit comments