Skip to content
Snippets Groups Projects
Commit 75b4b046 authored by hunytalk's avatar hunytalk
Browse files

Add start_date field in schedule model

parent df35dfd9
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-11-21 18:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedules', '0007_scheduleconfig_hold_back_ratio'),
]
operations = [
migrations.AddField(
model_name='schedule',
name='start_date',
field=models.DateTimeField(blank=True, db_index=True, help_text='Date this schedule went into effect', null=True),
),
]
...@@ -18,10 +18,18 @@ class Schedule(TimeStampedModel): ...@@ -18,10 +18,18 @@ class Schedule(TimeStampedModel):
default=True, default=True,
help_text=_('Indicates if this schedule is actively used') help_text=_('Indicates if this schedule is actively used')
) )
# TODO Delete this field during last stage of rolling out field renames
start = models.DateTimeField( start = models.DateTimeField(
db_index=True, db_index=True,
help_text=_('Date this schedule went into effect') help_text=_('Date this schedule went into effect')
) )
start_date = models.DateTimeField(
# TODO remove blank=True and null=True once data migration is complete in column rename release.
blank=True,
db_index=True,
null=True,
help_text=_('Date this schedule went into effect')
)
upgrade_deadline = models.DateTimeField( upgrade_deadline = models.DateTimeField(
blank=True, blank=True,
db_index=True, 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