d83e689 Change ModuleBuild.context to db column

Authored and Committed by qwan 6 years ago
    Change ModuleBuild.context to db column
    
    1. Changed ModuleBuild's context property to db column, it's
    non-nullable and default value is '00000000' to keep it consistent
    with previous behaviour.
    
    2. Changed ModuleBuild.contexts_from_mmd to return a tuple of
    (ref_build_context, build_context, runtime_context, context).
    
    3. Updated tests affected by this change.
    
        
file modified
+14 -18
file modified
+6 -1
file modified
+21 -34
file modified
+34 -34