Add id column for log_parts table
Fix create_table compat API