# Generated by Django 3.2.13 on 2022-06-22 09:54
# run the manage script to fix the labels
# alter table library_entry add column labelnum numeric(10,2) null;
# update library_entry set labelnum = label::decimal;
# alter table library_entry alter column labelnum set not null;
# run this migration as --fake

from django.db import migrations, models
import library.models


class Migration(migrations.Migration):

    dependencies = [
        ('library', '0045_auto_20210930_1627'),
    ]

    operations = [
        migrations.AlterField(
            model_name='entry',
            name='callno',
            field=library.models.LabelField(db_column='labelnum', decimal_places=2, max_digits=10, max_length=12, verbose_name='label'),
        ),
        migrations.AlterField(
            model_name='entrymedia',
            name='mtype',
            field=models.CharField(choices=[('PDF', 'PDF'), ('IMAGE', 'Image'), ('VIDEO', 'Video'), ('AUDIO', 'Audio'), ('OTHER', 'Other/Unknown')], default='OTHER', max_length=8, verbose_name='Media Type'),
        ),
        migrations.AlterUniqueTogether(
            name='entry',
            unique_together={('callno', 'category')},
        ),
    ]
