mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
Previously, alert words were a JSON list of strings stored in a TextField on user_profile. That hacky model reflected the fact that they were an early prototype feature. This commit migrates from that to a separate table, 'AlertWord'. The new AlertWord has user_profile, word, id and realm(denormalization so we can provide a nice index for fetching all the alert words in a realm). This transition requires moving the logic for flushing the Alert Words caches to their own independent feature. Note that this commit should not be cherry-picked without the following commit, which fixes case-sensitivity issues with Alert Words.
18 lines
338 B
Python
18 lines
338 B
Python
# Generated by Django 2.2.10 on 2020-03-23 20:08
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('zerver', '0277_migrate_alert_word'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveField(
|
|
model_name='userprofile',
|
|
name='alert_words',
|
|
),
|
|
]
|