mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Convert all PostgreSQL integer keys to bigint
Convert all PostgreSQL integer keys to bigint
There is one special exception in here: the unread_user_ids column in the message_conversations table had to be left as an integer array, since the PostgreSQL intarray extension doesn't work with bigints. The trigger that updates that column also needed a minor tweak. This isn't good, but I don't really like how that was done anyway (it was for the purpose of group messages that don't even exist), so it could probably just be eliminated.merge-requests/135/head
Deimos
3 years ago
26 changed files with 114 additions and 83 deletions
-
4tildes/sql/init/triggers/message_replies/message_conversations.sql
-
19tildes/tildes/models/comment/comment.py
-
6tildes/tildes/models/comment/comment_bookmark.py
-
6tildes/tildes/models/comment/comment_label.py
-
6tildes/tildes/models/comment/comment_notification.py
-
6tildes/tildes/models/comment/comment_vote.py
-
4tildes/tildes/models/financials.py
-
13tildes/tildes/models/group/group.py
-
6tildes/tildes/models/group/group_script.py
-
4tildes/tildes/models/group/group_stat.py
-
6tildes/tildes/models/group/group_subscription.py
-
4tildes/tildes/models/group/group_wiki_page.py
-
12tildes/tildes/models/log/log.py
-
21tildes/tildes/models/message/message.py
-
4tildes/tildes/models/scraper/scraper_result.py
-
9tildes/tildes/models/topic/topic.py
-
6tildes/tildes/models/topic/topic_bookmark.py
-
6tildes/tildes/models/topic/topic_ignore.py
-
14tildes/tildes/models/topic/topic_schedule.py
-
6tildes/tildes/models/topic/topic_visit.py
-
6tildes/tildes/models/topic/topic_vote.py
-
5tildes/tildes/models/user/user.py
-
6tildes/tildes/models/user/user_group_settings.py
-
6tildes/tildes/models/user/user_invite_code.py
-
8tildes/tildes/models/user/user_permissions.py
-
4tildes/tildes/models/user/user_rate_limit.py
Write
Preview
Loading…
Cancel
Save
Reference in new issue