Added migrations
This commit is contained in:
parent
7baf022a77
commit
449e0675fa
38
apps/notification/migrations/0005_auto_20191227_1212.py
Normal file
38
apps/notification/migrations/0005_auto_20191227_1212.py
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# Generated by Django 2.2.7 on 2019-12-27 12:12
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
import django.utils.timezone
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('notification', '0004_auto_20191118_1307'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='subscriber',
|
||||||
|
name='subscription_type',
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Subscribe',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('created', models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='Date created')),
|
||||||
|
('modified', models.DateTimeField(auto_now=True, verbose_name='Date updated')),
|
||||||
|
('subscriber', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='notification.Subscriber')),
|
||||||
|
('subscription_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='notification.SubscriptionType')),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'verbose_name': 'Subscribe',
|
||||||
|
'verbose_name_plural': 'Subscribes',
|
||||||
|
},
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='subscriber',
|
||||||
|
name='subscription_types',
|
||||||
|
field=models.ManyToManyField(through='notification.Subscribe', to='notification.SubscriptionType'),
|
||||||
|
),
|
||||||
|
]
|
||||||
24
apps/notification/migrations/0006_auto_20191227_1216.py
Normal file
24
apps/notification/migrations/0006_auto_20191227_1216.py
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
# Generated by Django 2.2.7 on 2019-12-27 12:16
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.utils.timezone
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('notification', '0005_auto_20191227_1212'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='subscribe',
|
||||||
|
name='subscribe_date',
|
||||||
|
field=models.DateTimeField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Last subscribe date'),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='subscribe',
|
||||||
|
name='unsubscribe_date',
|
||||||
|
field=models.DateTimeField(blank=True, default=None, null=True, verbose_name='Last unsubscribe date'),
|
||||||
|
),
|
||||||
|
]
|
||||||
Loading…
Reference in New Issue
Block a user