2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-12 21:10:47 +08:00

Change TopicViewItem to allow null IP address

This commit is contained in:
riking 2018-05-21 11:36:06 -07:00 committed by Sam
parent f48338df54
commit 4b2e2ea8ef
2 changed files with 27 additions and 3 deletions

View file

@ -58,13 +58,12 @@ end
# topic_id :integer not null
# viewed_at :date not null
# user_id :integer
# ip_address :inet not null
# ip_address :inet
#
# Indexes
#
# index_topic_views_on_topic_id_and_viewed_at (topic_id,viewed_at)
# index_topic_views_on_user_id_and_viewed_at (user_id,viewed_at)
# index_topic_views_on_viewed_at_and_topic_id (viewed_at,topic_id)
# ip_address_topic_id_topic_views (ip_address,topic_id) UNIQUE
# user_id_topic_id_topic_views (user_id,topic_id) UNIQUE
# uniq_ip_or_user_id_topic_views (user_id,ip_address,topic_id) UNIQUE
#