For most upgrades, you just need to run the django migrations with the following command inside your docker container:
python manage.py migrate
(Note : in your development environment, you can run make migrate
)
Some upgrades need special upgrade instructions. They will be documented in this file:
A new permission has been added in this release : can_unlock_course
.
By default, this permission will only be added to new users with administrator or
instructor roles. If you want to update the group permissions on users already
existing in the database, to reflect what is defined in the setting
ASHLEY_DEFAULT_FORUM_ROLES_PERMISSIONS
, you can execute the following
management command :
python manage.py sync_group_permissions --apply
Note: You can execute the above command without the --apply
option to do it in
dry mode and see what changes will be applied to your database.
A new permission has been added in this release : can_lock_forum
.
By default, this permission will only be added to new users with administrator or
instructor roles. If you want to update the group permissions on users already
existing in the database, to reflect what is defined in the setting
ASHLEY_DEFAULT_FORUM_ROLES_PERMISSIONS
, you can execute the following
management command :
python manage.py sync_group_permissions --apply
Note: You can execute the above command without the --apply
option to do it in
dry mode and see what changes will be applied to your database.
Two new permissions have been added in this release : can_archive_forum
,
can_move_topics
.
By default, these permissions will only be added to new users with administrator or
instructor roles. If you want to update the group permissions on users already
existing in the database, to reflect what is defined in the setting
ASHLEY_DEFAULT_FORUM_ROLES_PERMISSIONS
, you can execute the following
management command :
python manage.py sync_group_permissions --apply
Note: You can execute the above command without the --apply
option to do it in
dry mode and see what changes will be applied to your database.
A new permission has been added in this release : can_manage_moderator
.
By default, this permission will only be added to new users with administrator or
instructor roles. If you want to update the group permissions on users already
existing in the database, to reflect what is defined in the setting
ASHLEY_DEFAULT_FORUM_ROLES_PERMISSIONS
, you can execute the following
management command :
python manage.py sync_group_permissions --apply
Note: You can execute the above command without the --apply
option to do it in
dry mode and see what changes will be applied to your database.
To upgrade from any previous version of ashley to version 1.0.0-beta.3, you must execute the following instructions:
- Replace the app
lti_provider
withlti_toolbox
in yourINSTALLED_APPS
setting - Execute the script
python upgrades/1.0.0-beta.3.py
- Execute
python manage.py migrate
A new permission has been added in this release : can_rename_forum
.
By default, this permission will only be added to new users with administrator or
instructor roles. If you want to update the group permissions on users already
existing in the database, to reflect what is defined in the setting
ASHLEY_DEFAULT_FORUM_ROLES_PERMISSIONS
, you can execute the following
management command :
python manage.py sync_group_permissions --apply
Note: You can execute the above command without the --apply
option to do it in
dry mode and see what changes will be applied to your database.