Add all
This commit is contained in:
parent
b35e18cd20
commit
82f55f7afe
80 changed files with 6687 additions and 5 deletions
|
@ -0,0 +1,18 @@
|
|||
defmodule Nulla.Repo.Migrations.CreateMediaAttachments do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:media_attachments, primary_key: false) do
|
||||
add :id, :bigint, primary_key: true
|
||||
add :type, :string
|
||||
add :mediaType, :string
|
||||
add :url, :string
|
||||
add :name, :string
|
||||
add :width, :integer
|
||||
add :height, :integer
|
||||
add :note_id, references(:notes, on_delete: :delete_all), null: false
|
||||
|
||||
timestamps(type: :utc_datetime)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue