mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
ScheduledJob was written for much more generality than it ended up being used for. Currently it is used by send_future_email, and nothing else. Tailoring the model to emails in particular will make it easier to do things like selectively clear emails when people unsubscribe from particular email types, or seamlessly handle using the same email on multiple realms.
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.2 on 2017-07-11 23:41
|
|
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('zerver', '0091_realm_allow_edit_history'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ScheduledEmail',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('scheduled_timestamp', models.DateTimeField(db_index=True)),
|
|
('data', models.TextField()),
|
|
('address', models.EmailField(db_index=True, max_length=254, null=True)),
|
|
('type', models.PositiveSmallIntegerField()),
|
|
('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
migrations.DeleteModel(
|
|
name='ScheduledJob',
|
|
),
|
|
]
|