@staticmethod
def post_process(tables):
    for (name, table) in tables.items():
        if table.is_root:
            continue
        parent_table = tables[table.parent_name]
        if (not parent_table.is_parent):
            raise Exception('Parent table must have a id column')
            sys.exit()
        parent_table.merge_child_table(table)
        table.remove_parent_column()
@staticmethod
def post_process(tables):
    for (name, table) in tables.items():
        if table.is_root:
            continue
        parent_table = tables[table.parent_name]
        if (not parent_table.is_parent):
            raise Exception('Parent table must have a id column')
            sys.exit()
        parent_table.merge_child_table(table)
        table.remove_parent_column()