mirror of https://github.com/zulip/zulip.git
Fix some remaining references to zephyr.
(imported from commit 2072d3451cc08bc32b997d7fafaafd7b6ac568df)
This commit is contained in:
parent
1026215512
commit
d8f78a5e2d
|
@ -9,7 +9,7 @@ def update_fts_columns(cursor):
|
|||
cursor.execute("SELECT id, message_id FROM fts_update_log;")
|
||||
ids = []
|
||||
for (id, message_id) in cursor.fetchall():
|
||||
cursor.execute("UPDATE zephyr_message SET "
|
||||
cursor.execute("UPDATE zerver_message SET "
|
||||
"search_tsvector = to_tsvector('humbug.english_us_search', "
|
||||
"subject || rendered_content) "
|
||||
"WHERE id = %s", (message_id,))
|
||||
|
|
|
@ -82,11 +82,11 @@ class Command(BaseCommand):
|
|||
|
||||
print "%d active users (%d total)" % (num_active, len(user_profiles))
|
||||
streams = Stream.objects.filter(realm=realm).extra(
|
||||
tables=['zephyr_subscription', 'zephyr_recipient'],
|
||||
where=['zephyr_subscription.recipient_id = zephyr_recipient.id',
|
||||
'zephyr_recipient.type = 2',
|
||||
'zephyr_recipient.type_id = zephyr_stream.id',
|
||||
'zephyr_subscription.active = true']).annotate(count=Count("name"))
|
||||
tables=['zerver_subscription', 'zerver_recipient'],
|
||||
where=['zerver_subscription.recipient_id = zerver_recipient.id',
|
||||
'zerver_recipient.type = 2',
|
||||
'zerver_recipient.type_id = zerver_stream.id',
|
||||
'zerver_subscription.active = true']).annotate(count=Count("name"))
|
||||
print "%d streams" % (streams.count(),)
|
||||
|
||||
for days_ago in (1, 7, 30):
|
||||
|
|
|
@ -9,4 +9,4 @@ class Command(BaseCommand):
|
|||
|
||||
def handle(self, *args, **options):
|
||||
# From http://stackoverflow.com/a/11914435/90777
|
||||
create_permissions(get_app("zephyr"), get_models(), 2)
|
||||
create_permissions(get_app("zerver"), get_models(), 2)
|
||||
|
|
Loading…
Reference in New Issue