Skip to content
Snippets Groups Projects
Unverified Commit 3816e1c4 authored by Cory Lee's avatar Cory Lee Committed by GitHub
Browse files

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.
parent e60faeb7
No related merge requests found
# -*- 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),
),
]
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment