Django-celery-beat: Migration file missing

Created on 31 Oct 2017  路  3Comments  路  Source: celery/django-celery-beat

Hi ,
Please create solarschedule table migration file.

Most helpful comment

I would recommend to everyone not to migrate to version 1.1.0 and wait for the next release with the migration added.

Should be something like:

```# -- coding: utf-8 --
from __future__ import unicode_literals

from django.db import migrations, models

class Migration(migrations.Migration):

dependencies = [
    ('django_celery_beat', '0004_auto_20170221_0000'),
]

operations = [
    migrations.AlterField(
        model_name='solarschedule',
        name='event',
        field=models.CharField(choices=[('dawn_civil', 'dawn_civil'), ('dawn_nautical', 'dawn_nautical'), ('sunset', 'sunset'), ('solar_noon', 'solar_noon'), ('sunrise', 'sunrise'), ('dusk_astronomical', 'dusk_astronomical'), ('dawn_astr

onomical', 'dawn_astronomical'), ('dusk_civil', 'dusk_civil'), ('dusk_nautical', 'dusk_nautical')], max_length=24, verbose_name='event'),
),
]
```

All 3 comments

I would recommend to everyone not to migrate to version 1.1.0 and wait for the next release with the migration added.

Should be something like:

```# -- coding: utf-8 --
from __future__ import unicode_literals

from django.db import migrations, models

class Migration(migrations.Migration):

dependencies = [
    ('django_celery_beat', '0004_auto_20170221_0000'),
]

operations = [
    migrations.AlterField(
        model_name='solarschedule',
        name='event',
        field=models.CharField(choices=[('dawn_civil', 'dawn_civil'), ('dawn_nautical', 'dawn_nautical'), ('sunset', 'sunset'), ('solar_noon', 'solar_noon'), ('sunrise', 'sunrise'), ('dusk_astronomical', 'dusk_astronomical'), ('dawn_astr

onomical', 'dawn_astronomical'), ('dusk_civil', 'dusk_civil'), ('dusk_nautical', 'dusk_nautical')], max_length=24, verbose_name='event'),
),
]
```

I believe this issue can be closed, as the fix was in #92.

I think this has been fixed in 1.1.1.

Was this page helpful?
0 / 5 - 0 ratings