From 01246ac848b1ec45497c2564c1a0da9c0d40cf6d Mon Sep 17 00:00:00 2001
From: Carlos Vega <carlos.vega@uni.lu>
Date: Thu, 19 Mar 2020 17:22:23 +0100
Subject: [PATCH] added migrations for provenance model

---
 .../web/migrations/0141_auto_20200319_1040.py | 20 +++++++++++++
 smash/web/migrations/0142_provenance.py       | 29 +++++++++++++++++++
 .../web/migrations/0143_auto_20200319_1121.py | 20 +++++++++++++
 .../web/migrations/0144_auto_20200319_1221.py | 26 +++++++++++++++++
 .../web/migrations/0145_auto_20200319_1404.py | 20 +++++++++++++
 .../web/migrations/0146_auto_20200319_1446.py | 21 ++++++++++++++
 6 files changed, 136 insertions(+)
 create mode 100644 smash/web/migrations/0141_auto_20200319_1040.py
 create mode 100644 smash/web/migrations/0142_provenance.py
 create mode 100644 smash/web/migrations/0143_auto_20200319_1121.py
 create mode 100644 smash/web/migrations/0144_auto_20200319_1221.py
 create mode 100644 smash/web/migrations/0145_auto_20200319_1404.py
 create mode 100644 smash/web/migrations/0146_auto_20200319_1446.py

diff --git a/smash/web/migrations/0141_auto_20200319_1040.py b/smash/web/migrations/0141_auto_20200319_1040.py
new file mode 100644
index 00000000..a47dfea4
--- /dev/null
+++ b/smash/web/migrations/0141_auto_20200319_1040.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2020-03-19 10:40
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0140_auto_20190528_0953'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='appointmenttype',
+            name='calendar_font_color',
+            field=models.CharField(default=b'#00000', max_length=2000, verbose_name=b'Calendar font color'),
+        ),
+    ]
diff --git a/smash/web/migrations/0142_provenance.py b/smash/web/migrations/0142_provenance.py
new file mode 100644
index 00000000..34e1568b
--- /dev/null
+++ b/smash/web/migrations/0142_provenance.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2020-03-19 10:50
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0141_auto_20200319_1040'),
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Provenance',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('modified_table', models.CharField(max_length=1024, verbose_name=b'Modified table')),
+                ('modified_table_id', models.CharField(max_length=1024, verbose_name=b'Modified table row')),
+                ('modification_date', models.DateTimeField(verbose_name=b'Modified on')),
+                ('previous_value', models.CharField(blank=True, max_length=2048, null=True, verbose_name=b'Previous Value')),
+                ('new_value', models.CharField(blank=True, max_length=2048, null=True, verbose_name=b'New Value')),
+                ('modification_description', models.CharField(max_length=2048, verbose_name=b'Description')),
+                ('modification_author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Worker', verbose_name=b'Worker who modified the row')),
+            ],
+        ),
+    ]
diff --git a/smash/web/migrations/0143_auto_20200319_1121.py b/smash/web/migrations/0143_auto_20200319_1121.py
new file mode 100644
index 00000000..57b5f92d
--- /dev/null
+++ b/smash/web/migrations/0143_auto_20200319_1121.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2020-03-19 11:21
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0142_provenance'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='provenance',
+            name='modification_date',
+            field=models.DateTimeField(auto_now_add=True, verbose_name=b'Modified on'),
+        ),
+    ]
diff --git a/smash/web/migrations/0144_auto_20200319_1221.py b/smash/web/migrations/0144_auto_20200319_1221.py
new file mode 100644
index 00000000..a232453b
--- /dev/null
+++ b/smash/web/migrations/0144_auto_20200319_1221.py
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2020-03-19 12:21
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0143_auto_20200319_1121'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='provenance',
+            name='modified_field',
+            field=models.CharField(default='', max_length=1024, verbose_name=b'Modified field'),
+            preserve_default=False,
+        ),
+        migrations.AlterField(
+            model_name='provenance',
+            name='modification_description',
+            field=models.CharField(max_length=20480, verbose_name=b'Description'),
+        ),
+    ]
diff --git a/smash/web/migrations/0145_auto_20200319_1404.py b/smash/web/migrations/0145_auto_20200319_1404.py
new file mode 100644
index 00000000..fda7e518
--- /dev/null
+++ b/smash/web/migrations/0145_auto_20200319_1404.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2020-03-19 14:04
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0144_auto_20200319_1221'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='provenance',
+            name='modified_field',
+            field=models.CharField(blank=b'', max_length=1024, verbose_name=b'Modified field'),
+        ),
+    ]
diff --git a/smash/web/migrations/0146_auto_20200319_1446.py b/smash/web/migrations/0146_auto_20200319_1446.py
new file mode 100644
index 00000000..8cd04b44
--- /dev/null
+++ b/smash/web/migrations/0146_auto_20200319_1446.py
@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.5 on 2020-03-19 14:46
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('web', '0145_auto_20200319_1404'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='provenance',
+            name='modification_author',
+            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='web.Worker', verbose_name=b'Worker who modified the row'),
+        ),
+    ]
-- 
GitLab