Marker update migration: Don't try to update virtual field.
authorlain <lain@soykaf.club>
Tue, 14 Apr 2020 13:06:09 +0000 (15:06 +0200)
committerlain <lain@soykaf.club>
Tue, 14 Apr 2020 13:06:09 +0000 (15:06 +0200)
priv/repo/migrations/20200210050658_update_markers.exs

index b280e156c7fc8bb43ed44a1d550c2c3e5fee180f..db7a355ec1b918c38ee876c70f226c3b91ce1262 100644 (file)
@@ -32,7 +32,7 @@ defmodule Pleroma.Repo.Migrations.UpdateMarkers do
       end)
 
     Repo.insert_all("markers", markers_attrs,
-      on_conflict: {:replace, [:last_read_id, :unread_count]},
+      on_conflict: {:replace, [:last_read_id]},
       conflict_target: [:user_id, :timeline]
     )
   end