# Generated by Django 1.11.18 on 2020-03-10 17:06

import django.contrib.postgres.fields.jsonb
from django.db import migrations, models

import passerelle.base.models


class Migration(migrations.Migration):

    dependencies = [
        ('base', '0016_auto_20191002_1443'),
    ]

    operations = [
        migrations.AlterField(
            model_name='accessright',
            name='codename',
            field=models.CharField(max_length=100, verbose_name='codename'),
        ),
        migrations.AlterField(
            model_name='apiuser',
            name='keytype',
            field=models.CharField(
                blank=True,
                choices=[('API', 'API Key'), ('SIGN', 'HMAC Signature')],
                max_length=4,
                verbose_name='Key Type',
            ),
        ),
        migrations.AlterField(
            model_name='availabilityparameters',
            name='notification_delays',
            field=models.TextField(
                default='0',
                help_text='Increasing delay between error notifications in minutes, ex.: 0,5,10',
                validators=[passerelle.base.models.validate_notification_delays],
                verbose_name='Notification delays',
            ),
        ),
        migrations.AlterField(
            model_name='job',
            name='status',
            field=models.CharField(
                choices=[
                    ('registered', 'Registered'),
                    ('running', 'Running'),
                    ('failed', 'Failed'),
                    ('completed', 'Completed'),
                ],
                default='registered',
                max_length=20,
            ),
        ),
        migrations.AlterField(
            model_name='loggingparameters',
            name='log_level',
            field=models.CharField(
                choices=[
                    ('DEBUG', 'Debug'),
                    ('INFO', 'Info'),
                    ('WARNING', 'Warning'),
                    ('ERROR', 'Error'),
                    ('CRITICAL', 'Critical'),
                ],
                default='INFO',
                max_length=10,
                verbose_name='Log level',
            ),
        ),
        migrations.AlterField(
            model_name='resourcelog',
            name='appname',
            field=models.CharField(max_length=128, null=True, verbose_name='appname'),
        ),
        migrations.AlterField(
            model_name='resourcelog',
            name='extra',
            field=django.contrib.postgres.fields.jsonb.JSONField(default=dict, verbose_name='extras'),
        ),
        migrations.AlterField(
            model_name='resourcelog',
            name='levelno',
            field=models.IntegerField(verbose_name='log level'),
        ),
        migrations.AlterField(
            model_name='resourcelog',
            name='message',
            field=models.TextField(verbose_name='message'),
        ),
        migrations.AlterField(
            model_name='resourcelog',
            name='slug',
            field=models.CharField(max_length=128, null=True, verbose_name='slug'),
        ),
        migrations.AlterField(
            model_name='resourcestatus',
            name='status',
            field=models.CharField(
                choices=[('unknown', 'Unknown'), ('up', 'Up'), ('down', 'Down')],
                default='unknown',
                max_length=20,
            ),
        ),
    ]
