d0c53a Fix unaccessible fork after the main repo is deleted

5 files Authored by farhaanbukhsh 8 years ago , Committed by Pierre-Yves Chibon 8 years ago ,
    Fix unaccessible fork after the main repo is deleted
    
    A new column `_is_fork` is introduced into the `projects` which keeps a
    track on the repo being `fork` or `not`. This changes the function
    `is_fork` and `fullname` by altering the condition. This is done to
    maintain the `integrity` of the FK parent_id. The changes in UI is to
    check if the main repo is deleted how the UI should function.
    
    Also if `repo.is_fork` is true and parent doesn't exist this was
    throwing error while mapping repo path hence the check for `repo.parent`
    is included.
    
    Alembic script is included for the migration of the database.
    
        
file modified
+7 -6
file modified
+3 -2
file modified
+1 -1