Change access_log table, fixes #5510

Add on delete cascade property to the foreing key
object_id in the schema.yml and the migration and
rebuil model and sql