From 43b3a2004ccf8d2fb662e24dc2294caa1058885d Mon Sep 17 00:00:00 2001
From: Cory Lee <cory@edx.org>
Date: Mon, 16 Mar 2020 11:22:17 -0400
Subject: [PATCH] Readd historical schedule fks (#23414)

* Readd historical schedule fks
---
 .../0018_readd_historicalschedule_fks.py      | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 openedx/core/djangoapps/schedules/migrations/0018_readd_historicalschedule_fks.py

diff --git a/openedx/core/djangoapps/schedules/migrations/0018_readd_historicalschedule_fks.py b/openedx/core/djangoapps/schedules/migrations/0018_readd_historicalschedule_fks.py
new file mode 100644
index 00000000000..66d1f5a8ba9
--- /dev/null
+++ b/openedx/core/djangoapps/schedules/migrations/0018_readd_historicalschedule_fks.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.28 on 2020-03-16 14:00
+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 = [
+        ('schedules', '0017_remove_start_from_historicalschedule'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='historicalschedule',
+            name='history_user',
+            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL),
+        ),
+        migrations.AlterField(
+            model_name='historicalschedule',
+            name='start_date',
+            field=models.DateTimeField(db_index=True, default=None, help_text='Date this schedule went into effect', null=True),
+        ),
+    ]
-- 
GitLab