mirror of
https://github.com/neocities/neocities.git
synced 2025-07-20 01:26:03 +02:00
comment liking
This commit is contained in:
parent
8210670122
commit
51a85a0b03
9 changed files with 125 additions and 29 deletions
15
migrations/027_add_comment_likes.rb
Normal file
15
migrations/027_add_comment_likes.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.create_table! :comment_likes do
|
||||
primary_key :id
|
||||
Integer :comment_id
|
||||
Integer :site_id
|
||||
Integer :actioning_site_id
|
||||
DateTime :created_at
|
||||
end
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_table :comment_likes
|
||||
}
|
||||
end
|
9
migrations/028_remove_comment_like_site_id.rb
Normal file
9
migrations/028_remove_comment_like_site_id.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.drop_column :comment_likes, :site_id
|
||||
}
|
||||
|
||||
down {
|
||||
DB.add_column :comment_likes, :site_id, :integer
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue