If you are updating to Specify 7.7 or newer, Specify is supposed to create new tables related to the security and accounts features.
If you encounter the following error upon updating to 7.9.3, you should follow the same instructions:
"exception": "ProgrammingError", "message": "1146", "data": "Table 'db_name.uniquenessrule' doesn't exist"
In your docker-compose.yml
file, you should use your root user credentials instead of the master user credentials for the first run in Specify 7.
You just need to modify the following lines in the environment section, replacing root_password
with your root user’s password:
- MASTER_NAME=root
- MASTER_PASSWORD=root_password
After this is complete, you can compose the containers again.
If you are still having trouble on the next run, you can run the following command in MySQL:
delete from django_migrations where app = 'permissions';
This will clear the spuserpolicy
migration and allow you to run them once again.
Please let us know if you are still having trouble!