DENG-17 Setting the start column on schedules to be nullable so that it (#23208)

Setting the start column on schedules to be nullable so that it can be dropped.
This commit is contained in:
Cory Lee
2020-03-10 10:26:32 -04:00
committed by GitHub
parent e60faeb7f0
commit 3816e1c474
2 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-03-04 21:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedules', '0014_historicalschedule_drop_fk'),
]
operations = [
migrations.AlterField(
model_name='historicalschedule',
name='start',
field=models.DateTimeField(db_index=True, default=None, help_text='Date this schedule went into effect', null=True),
),
migrations.AlterField(
model_name='schedule',
name='start',
field=models.DateTimeField(db_index=True, default=None, help_text='Date this schedule went into effect', null=True),
),
]

View File

@@ -22,7 +22,9 @@ class Schedule(TimeStampedModel):
# TODO Delete this field during last stage of rolling out field renames
start = models.DateTimeField(
db_index=True,
help_text=_('Date this schedule went into effect')
help_text=_('Date this schedule went into effect'),
null=True,
default=None
)
start_date = models.DateTimeField(
db_index=True,