diff options
Diffstat (limited to 'src/notifier/migrations')
-rw-r--r-- | src/notifier/migrations/0001_initial.py | 47 | ||||
-rw-r--r-- | src/notifier/migrations/0002_auto_20181102_1631.py | 44 | ||||
-rw-r--r-- | src/notifier/migrations/0003_auto_20190123_1741.py | 23 | ||||
-rw-r--r-- | src/notifier/migrations/0004_auto_20190124_2115.py | 23 | ||||
-rw-r--r-- | src/notifier/migrations/0005_auto_20190306_1616.py | 18 | ||||
-rw-r--r-- | src/notifier/migrations/0006_emailed.py | 24 | ||||
-rw-r--r-- | src/notifier/migrations/0007_email.py | 23 | ||||
-rw-r--r-- | src/notifier/migrations/__init__.py | 0 |
8 files changed, 0 insertions, 202 deletions
diff --git a/src/notifier/migrations/0001_initial.py b/src/notifier/migrations/0001_initial.py deleted file mode 100644 index e5d0009..0000000 --- a/src/notifier/migrations/0001_initial.py +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by Django 2.1 on 2018-09-14 14:48 - -from django.db import migrations, models -import django.db.models.deletion -import fernet_fields.fields - - -class Migration(migrations.Migration): - - initial = True - - dependencies = [ - ('account', '0001_initial'), - ('booking', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='LabMessage', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('msg', models.TextField()), - ('lab', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Lab')), - ], - ), - migrations.CreateModel( - name='MetaBooking', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('ending_notified', models.BooleanField(default=False)), - ('ended_notified', models.BooleanField(default=False)), - ('created_notified', models.BooleanField(default=False)), - ('booking', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='metabooking', to='booking.Booking')), - ], - ), - migrations.CreateModel( - name='Notifier', - fields=[ - ('id', models.AutoField(primary_key=True, serialize=False)), - ('title', models.CharField(max_length=240)), - ('content', fernet_fields.fields.EncryptedTextField()), - ('sender', models.CharField(default='unknown', max_length=240)), - ('message_type', models.CharField(choices=[('email', 'Email'), ('webnotification', 'Web Notification')], default='email', max_length=240)), - ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='account.UserProfile')), - ], - ), - ] diff --git a/src/notifier/migrations/0002_auto_20181102_1631.py b/src/notifier/migrations/0002_auto_20181102_1631.py deleted file mode 100644 index e5fef89..0000000 --- a/src/notifier/migrations/0002_auto_20181102_1631.py +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by Django 2.1 on 2018-11-02 16:31 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0003_publicnetwork'), - ('notifier', '0001_initial'), - ] - - operations = [ - migrations.CreateModel( - name='Notification', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('title', models.CharField(max_length=150)), - ('content', models.TextField()), - ('recipients', models.ManyToManyField(to='account.UserProfile')), - ], - ), - migrations.RemoveField( - model_name='labmessage', - name='lab', - ), - migrations.RemoveField( - model_name='metabooking', - name='booking', - ), - migrations.RemoveField( - model_name='notifier', - name='user', - ), - migrations.DeleteModel( - name='LabMessage', - ), - migrations.DeleteModel( - name='MetaBooking', - ), - migrations.DeleteModel( - name='Notifier', - ), - ] diff --git a/src/notifier/migrations/0003_auto_20190123_1741.py b/src/notifier/migrations/0003_auto_20190123_1741.py deleted file mode 100644 index f491993..0000000 --- a/src/notifier/migrations/0003_auto_20190123_1741.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 2.1 on 2019-01-23 17:41 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifier', '0002_auto_20181102_1631'), - ] - - operations = [ - migrations.AddField( - model_name='notification', - name='is_html', - field=models.BooleanField(default=True), - ), - migrations.AddField( - model_name='notification', - name='is_read', - field=models.BooleanField(default=True), - ), - ] diff --git a/src/notifier/migrations/0004_auto_20190124_2115.py b/src/notifier/migrations/0004_auto_20190124_2115.py deleted file mode 100644 index 306ec7b..0000000 --- a/src/notifier/migrations/0004_auto_20190124_2115.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 2.1 on 2019-01-24 21:15 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('account', '0003_publicnetwork'), - ('notifier', '0003_auto_20190123_1741'), - ] - - operations = [ - migrations.RemoveField( - model_name='notification', - name='is_read', - ), - migrations.AddField( - model_name='notification', - name='read_by', - field=models.ManyToManyField(related_name='read_notifications', to='account.UserProfile'), - ), - ] diff --git a/src/notifier/migrations/0005_auto_20190306_1616.py b/src/notifier/migrations/0005_auto_20190306_1616.py deleted file mode 100644 index d92c988..0000000 --- a/src/notifier/migrations/0005_auto_20190306_1616.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.1 on 2019-03-06 16:16 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifier', '0004_auto_20190124_2115'), - ] - - operations = [ - migrations.AlterField( - model_name='notification', - name='recipients', - field=models.ManyToManyField(related_name='notifications', to='account.UserProfile'), - ), - ] diff --git a/src/notifier/migrations/0006_emailed.py b/src/notifier/migrations/0006_emailed.py deleted file mode 100644 index 22ba9c5..0000000 --- a/src/notifier/migrations/0006_emailed.py +++ /dev/null @@ -1,24 +0,0 @@ -# Generated by Django 2.2 on 2019-11-21 18:55 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('booking', '0006_booking_opnfv_config'), - ('notifier', '0005_auto_20190306_1616'), - ] - - operations = [ - migrations.CreateModel( - name='Emailed', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('almost_end_booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='warning_mail', to='booking.Booking')), - ('begin_booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='begin_mail', to='booking.Booking')), - ('end_booking', models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='over_mail', to='booking.Booking')), - ], - ), - ] diff --git a/src/notifier/migrations/0007_email.py b/src/notifier/migrations/0007_email.py deleted file mode 100644 index aaac048..0000000 --- a/src/notifier/migrations/0007_email.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 2.2 on 2020-12-09 20:02 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('notifier', '0006_emailed'), - ] - - operations = [ - migrations.CreateModel( - name='Email', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('sent', models.BooleanField(default=False)), - ('title', models.CharField(max_length=150)), - ('message', models.TextField()), - ('recipient', models.CharField(max_length=150)), - ], - ), - ] diff --git a/src/notifier/migrations/__init__.py b/src/notifier/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/src/notifier/migrations/__init__.py +++ /dev/null |