mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 09:32:51 +00:00
server - remove content from thread - store in replies
This commit is contained in:
@@ -5,10 +5,9 @@ defmodule MyApp.Repo.Migrations.CreateThread do
|
||||
create table(:thread) do
|
||||
add :title, :string
|
||||
add :category_id, :integer
|
||||
add :content, :string, size: 2000
|
||||
add :view_count, :integer
|
||||
add :user_id, references(:user)
|
||||
add :last_reply_id, :integer # TODO: figure this out
|
||||
add :last_reply_id, :integer
|
||||
add :sticky, :boolean
|
||||
add :locked, :boolean
|
||||
add :edited, :boolean
|
||||
|
||||
@@ -7,7 +7,7 @@ defmodule MyApp.Repo.Migrations.CreateReply do
|
||||
add :thread_id, references(:thread)
|
||||
add :content, :string, size: 2000
|
||||
add :edited, :boolean
|
||||
add :quote, :boolean
|
||||
add :quote_id, :integer
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user