From e4410ae6b3c97aca58dc336f4a4a4b89e67f8fea Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Wed, 14 Feb 2018 14:59:53 +0100
Subject: [PATCH] exceeded visit time list has info about nd number

---
 .../0106_approaching_post_mail_list_update.py   |  2 +-
 .../0107_exceeded_visit_time_list_update.py     | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 smash/web/migrations/0107_exceeded_visit_time_list_update.py

diff --git a/smash/web/migrations/0106_approaching_post_mail_list_update.py b/smash/web/migrations/0106_approaching_post_mail_list_update.py
index 3ee301f0..1f37f6cd 100644
--- a/smash/web/migrations/0106_approaching_post_mail_list_update.py
+++ b/smash/web/migrations/0106_approaching_post_mail_list_update.py
@@ -13,7 +13,7 @@ def create_default_columns_for_VISIT_LIST_APPROACHING_FOR_MAIL_CONTACT(apps, sch
     subject_columns.first_name = True
     subject_columns.last_name = True
     subject_columns.languages = False
-    subject_columns.default_written_communication_language = False
+    subject_columns.default_written_communication_langua0106_approaching_post_mail_list_updatege = False
     subject_columns.phone_number = False
     subject_columns.phone_number_2 = False
     subject_columns.phone_number_3 = False
diff --git a/smash/web/migrations/0107_exceeded_visit_time_list_update.py b/smash/web/migrations/0107_exceeded_visit_time_list_update.py
new file mode 100644
index 00000000..ba11f28c
--- /dev/null
+++ b/smash/web/migrations/0107_exceeded_visit_time_list_update.py
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.7 on 2018-02-14 10:26
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        ('web', '0104_contact_required_list_update'),
+    ]
+
+    operations = [
+        migrations.RunSQL(
+            'UPDATE web_studycolumns SET nd_number=TRUE, type=TRUE WHERE id IN ' +
+            '(SELECT visible_study_subject_columns_id FROM web_studyvisitlist WHERE type = \'EXCEEDED_TIME\');'),
+    ]
-- 
GitLab