Basic AP objects.
This commit is contained in:
parent
093fd1832d
commit
8de523c8ae
6 changed files with 69 additions and 0 deletions
14
priv/repo/migrations/20170321074828_create_activity.exs
Normal file
14
priv/repo/migrations/20170321074828_create_activity.exs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
defmodule Pleroma.Repo.Migrations.CreatePleroma.Activity do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:activities) do
|
||||
add :data, :map
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create index(:activities, [:data], using: :gin)
|
||||
|
||||
end
|
||||
end
|
||||
12
priv/repo/migrations/20170321074832_create_object.exs
Normal file
12
priv/repo/migrations/20170321074832_create_object.exs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
defmodule Pleroma.Repo.Migrations.CreatePleroma.Object do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:objects) do
|
||||
add :data, :map
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue