cortex-lab / alyx

Database for experimental neuroscience laboratories
44 stars 11 forks source link

Relase 2021-03-30 - versioning #681

Closed oliche closed 3 years ago

oliche commented 3 years ago

Release notes

environment

models

fixtures

Release steps below:

Pull the changes from github

git stash
git pull
git stash pop

Activate environment, cd to the alyx folder and install requirements

pip install -r requirements.txt

Update the database if any scheme changes - we expect no migrations

./manage.py makemigrations
./manage.py migrate

Load the init fixtures

../scripts/load-init-fixtures.sh

if new tables change the postgres permissions

./manage.py set_db_permissions ./manage.py set_user_permissions

Restart the Apache server

sudo service apache2 reload

Data migration

If having any datasets and ephys probe insertions objects related (mostly IBL) run the following code in a Django shell:

from experiments.models import ProbeInsertion
for p in ProbeInsertion.objects.all():
    p.save()