There is something you are not telling me. You've done something to the database like you imported tables or something so it lost its primary key and it lost the auto identity on the ID column of that mp_SchemaScriptHistory table and probably other tables if you imported them. You cannot restore a database by importing tables.