A migration is added to support full backward compatibility:
- Creates new permissions tables.
- Locks legacy permissions table to prevent data loss.
- Converts all existing permissions to the new model, and inserts them to the new tables.
A migration is added to support full backward compatibility: