def are_skeleton_equal(sk1, sk2):
    """
    Test whether the two skeleton ``sk1`` and ``sk2`` are equals.

    EXAMPLES::

        sage: from surface_dynamics.flat_surfaces.origamis.origami_database import are_skeleton_equal
        sage: sk1 = {'table1': {'col1': {'sql': 'TEXT', 'unique': True}, 'col2': {'sql': 'INTEGER'}}}
        sage: sk2 = {'table1': {'col1': {'sql': 'TEXT', 'unique': True}, 'col2': {'sql': 'INTEGER', 'unique': False}}}
        sage: are_skeleton_equal(sk1,sk2)
        True
    """
    if set(sk1.keys()) != set(sk2.keys()):
        return False
    for table in sk1:
        v1 = sk1[table]
        v2 = sk2[table]
        if set(v1.keys()) != set(v2.keys()):
            return False
        for col in v1:
            w1 = v1[col]
            w2 = v2[col]
            if w1['sql'] != w2['sql']:
                return False
            if w1.get('index', False) != w2.get('index', False):
                return False
            if w1.get('unique', False) != w2.get('unique', False):
                return False
            if w1.get('primary_key', False) != w2.get('primary_key', False):
                return False
    return True
