Recorder stopped working with 0.48

As the title says: The component recorder stopped working due to some failure while upgrading the SQL-DB?

pi@hassbian:~ $ cat /home/homeassistant/.homeassistant/home-assistant.log | grep recorder
2017-07-04 22:25:40 INFO (MainThread) [homeassistant.setup] Setting up recorder
2017-07-04 22:25:46 DEBUG (Recorder) [homeassistant.components.recorder.migration] Database requires upgrade. Schema version: 2
2017-07-04 22:25:46 INFO (Recorder) [homeassistant.components.recorder.migration] Upgrading recorder db schema to version 3
2017-07-04 22:25:46 DEBUG (Recorder) [homeassistant.components.recorder.migration] Looking up index for table states
2017-07-04 22:25:46 DEBUG (Recorder) [homeassistant.components.recorder.migration] Creating ix_states_created_domain index
2017-07-04 22:25:50 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2017-07-04 22:26:02 ERROR (Recorder) [homeassistant.components.recorder.util] Error executing query: (sqlite3.DatabaseError) database disk image is malformed [SQL: 'CREATE INDEX ix_states_created_domain ON states (created, domain)']

Any solutions?

Edit: My simple recorder-config:

recorder:
  purge_days: 14

I removed home-assistant_v2.db from the .homeassistant and restarted home assistant. You will loose your history, but after 14 days this doesn’t matter, but it will work again.