Merge pull request #22372 from edx/rename_start_in_schedule__1/4
Add start_date field in Schedule model to replace start as it's reserved keyword.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# -*- 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):
|
||||
default=True,
|
||||
help_text=_('Indicates if this schedule is actively used')
|
||||
)
|
||||
# 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')
|
||||
)
|
||||
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(
|
||||
blank=True,
|
||||
db_index=True,
|
||||
|
||||
Reference in New Issue
Block a user