Skip to content
Snippets Groups Projects
Commit 553b27f5 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

adding to documentation

parent aa2ffc88
No related branches found
No related tags found
No related merge requests found
Pipeline #8598 passed
...@@ -21,13 +21,13 @@ REST API ...@@ -21,13 +21,13 @@ REST API
Confluence Page: Confluence Page:
* https://support.astron.nl/confluence/display/LDV/LOFAR+Data+Valorization+Home * https://support.astron.nl/confluence/display/LDV/LOFAR+Data+Valorization+Home
Workflow: Specifications:
This diagram roughly serves as the specs for adapting ATDB for LDV. These diagrams roughly serves as the specifications for adapting ATDB for LDV.
* https://support.astron.nl/confluence/display/LDV/WORKFLOW * workflow: https://support.astron.nl/confluence/display/LDV/WORKFLOW
* datamodel: https://dbdiagram.io/d/5ffc5fb180d742080a35d560
## Overview Diagrams (under construction) ## Overview Diagrams (under construction)
These diagrams are the core of the ATDB documentation. These diagrams are the core of the ATDB documentation.
Currently they are still mostly the original ATDB diagrams. They will be adapted and kept in sync once the ATDB-LDV structure solifies a bit more.
### Datamodel: ### Datamodel:
* https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing * https://drive.google.com/file/d/1v5hMBQS0jT8DQJwySVISfRa1zF4o0fCQ/view?usp=sharing
...@@ -68,12 +68,26 @@ This is done to not have a mandatory deploy for every minor commmit. ...@@ -68,12 +68,26 @@ This is done to not have a mandatory deploy for every minor commmit.
> cd $DOCKER_COMPOSE_DIR > cd $DOCKER_COMPOSE_DIR
> docker-compose -p atdb up -d > docker-compose -p atdb up -d
### Database migrations ### Database changes and migrations
When the `models.py` is changed, then the database must be migrated. When the `models.py` is changed, then the database must be migrated.
This is how to do that manually for a persistent database in a Docker container. This is the procedure for that.
on local dev:
> python manage.py makemigrations --settings=atdb.settings.dev
> python manage.py migrate --settings=atdb.settings.dev
- add new migration file to git
- commit & push
on CI/CD page: https://git.astron.nl/astron-sdc/atdb-ldv/-/pipelines
- when automatic build is finished, push >> to deploy
on sdc machine:
> docker exec -it atdb-ldv python manage.py makemigrations --settings atdb.settings.docker_sdc > docker exec -it atdb-ldv python manage.py makemigrations --settings atdb.settings.docker_sdc
> docker exec -it atdb-ldv python manage.py migrate --settings atdb.settings.docker_sdc > docker exec -it atdb-ldv python manage.py migrate --settings atdb.settings.docker_sdc
## Postgres Database operations ## Postgres Database operations
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</div> </div>
{% include 'taskdatabase/pagination.html' %} {% include 'taskdatabase/pagination.html' %}
</div> </div>
<p class="footer"> Version 1.0.0 (28 jan 2021 - 11:00) <p class="footer"> Version 1.0.0 (29 jan 2021 - 08:00)
<script type="text/javascript"> <script type="text/javascript">
(function(seconds) { (function(seconds) {
var refresh, var refresh,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment