Merge remote-tracking branch 'remotes/upstream/develop' into 1304-user-info-deprecation
# Conflicts: # lib/pleroma/notification.ex
This commit is contained in:
commit
8cc809e44e
18 changed files with 552 additions and 37 deletions
15
priv/repo/migrations/20191014181019_create_markers.exs
Normal file
15
priv/repo/migrations/20191014181019_create_markers.exs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
defmodule Pleroma.Repo.Migrations.CreateMarkers do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create_if_not_exists table(:markers) do
|
||||
add(:user_id, references(:users, type: :uuid, on_delete: :delete_all))
|
||||
add(:timeline, :string, default: "", null: false)
|
||||
add(:last_read_id, :string, default: "", null: false)
|
||||
add(:lock_version, :integer, default: 0, null: false)
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create_if_not_exists(unique_index(:markers, [:user_id, :timeline]))
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue