Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Check migration before yunohost operation #599
Doing the migration is not mandatory to be able to use Yunohost.
By example we can have a use case of a user which upgrade the debian package but don't do the migration.
If the migration change the structure of data in yunohost, using Yunohost without doing the migration could make some data corruption.
Add a mechanism to check if a migration is mandatory before to do the actions.
Should be ready. Need more tests.
How to test
Create a migration mandatory. If your migration contains this code is mandatory :
@property def required(self): return True
Try to do some yunohost action before before the migration is done. Normally you should have this message :
After do the migration and check that you can do everything you want.