class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('posts', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='PostComment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('content', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='comment',
            name='post',
        ),
        migrations.RemoveField(
            model_name='comment',
            name='user',
        ),
        migrations.AlterField(
            model_name='fileupload',
            name='user',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='files',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='post',
            name='user',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='posts',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.DeleteModel(name='Comment', ),
        migrations.AddField(
            model_name='postcomment',
            name='post',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='post_comments',
                to='posts.Post'),
        ),
        migrations.AddField(
            model_name='postcomment',
            name='user',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='post_comments',
                to=settings.AUTH_USER_MODEL),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('publisher', '0088_delete_enable_email_notifications_switch'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='course',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='course',
            name='keywords',
        ),
        migrations.RemoveField(
            model_name='course',
            name='level_type',
        ),
        migrations.RemoveField(
            model_name='course',
            name='organizations',
        ),
        migrations.RemoveField(
            model_name='course',
            name='primary_subject',
        ),
        migrations.RemoveField(
            model_name='course',
            name='secondary_subject',
        ),
        migrations.RemoveField(
            model_name='course',
            name='tertiary_subject',
        ),
        migrations.AlterUniqueTogether(
            name='courseentitlement',
            unique_together=set(),
        ),
        migrations.RemoveField(
            model_name='courseentitlement',
            name='course',
        ),
        migrations.RemoveField(
            model_name='courseentitlement',
            name='currency',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='course',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='language',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='sponsor',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='staff',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='transcript_languages',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='video_language',
        ),
        migrations.RemoveField(
            model_name='courserunstate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='courserunstate',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='coursestate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='coursestate',
            name='course',
        ),
        migrations.AlterUniqueTogether(
            name='courseuserrole',
            unique_together=set(),
        ),
        migrations.RemoveField(
            model_name='courseuserrole',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='courseuserrole',
            name='course',
        ),
        migrations.RemoveField(
            model_name='courseuserrole',
            name='user',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='level_type',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='primary_subject',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='secondary_subject',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='tertiary_subject',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='language',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='video_language',
        ),
        migrations.RemoveField(
            model_name='historicalcourserunstate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourserunstate',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='historicalcourserunstate',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcoursestate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcoursestate',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcoursestate',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='user',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='currency',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='currency',
        ),
        migrations.DeleteModel(name='PublisherUser', ),
        migrations.DeleteModel(name='Course', ),
        migrations.DeleteModel(name='CourseEntitlement', ),
        migrations.DeleteModel(name='CourseRun', ),
        migrations.DeleteModel(name='CourseRunState', ),
        migrations.DeleteModel(name='CourseState', ),
        migrations.DeleteModel(name='CourseUserRole', ),
        migrations.DeleteModel(name='HistoricalCourse', ),
        migrations.DeleteModel(name='HistoricalCourseRun', ),
        migrations.DeleteModel(name='HistoricalCourseRunState', ),
        migrations.DeleteModel(name='HistoricalCourseState', ),
        migrations.DeleteModel(name='HistoricalCourseUserRole', ),
        migrations.DeleteModel(name='HistoricalSeat', ),
        migrations.DeleteModel(name='Seat', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('nino', '0011_auto_20191008_1856'),
    ]

    operations = [
        migrations.CreateModel(
            name='Area_Dental',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('diagnostico', models.TextField()),
                ('intervencion', models.TextField()),
                ('proxima_cita', models.DateField()),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Area_Dental',
                'verbose_name_plural': 'Area_Dentals',
            },
        ),
        migrations.CreateModel(
            name='Area_Medica',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('peso', models.IntegerField()),
                ('altura', models.FloatField()),
                ('presencia_piojos', models.BooleanField()),
                ('presencia_acaros', models.BooleanField()),
                ('programa_vacunacion', models.BooleanField()),
                ('examen_sangre', models.BooleanField()),
                ('examne_orina', models.BooleanField()),
                ('estado_piel', models.TextField()),
            ],
            options={
                'verbose_name': 'Area_Medica',
                'verbose_name_plural': 'Area_Medicas',
            },
        ),
        migrations.CreateModel(
            name='Area_Psicologica',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('estado_emocional', models.TextField(null=True)),
                ('aspecto_clinico', models.TextField(null=True)),
                ('percepcion_situacion_desproteccion', models.BooleanField()),
                ('percepcion_calidad_vida', models.BooleanField()),
                ('percepcion_temores_actuales', models.TextField(null=True)),
                ('percepcion_temores_futuros', models.TextField(null=True)),
            ],
            options={
                'verbose_name': 'Area_Psicologica',
                'verbose_name_plural': 'Area_Psicologicas',
            },
        ),
        migrations.CreateModel(
            name='Area_Social',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('rol_familiar', models.TextField(null=True)),
                ('visitas_autorizadas', models.BooleanField()),
                ('recurso_familiar', models.CharField(max_length=60, null=True)),
            ],
            options={
                'verbose_name': 'Area_Social',
                'verbose_name_plural': 'Area_Socials',
            },
        ),
        migrations.CreateModel(
            name='Enfermedad',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_enfermedad', models.CharField(max_length=60)),
                ('descripcion', models.TextField()),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Enfermedad',
                'verbose_name_plural': 'Enfermedads',
            },
        ),
        migrations.CreateModel(
            name='Etnia',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_etnia', models.CharField(max_length=60)),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Etnia',
                'verbose_name_plural': 'Etnias',
            },
        ),
        migrations.CreateModel(
            name='Fuente_Estre',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_fuente', models.CharField(max_length=60)),
                ('descripcion', models.TextField()),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Fuente_Estre',
                'verbose_name_plural': 'Fuente_Estres',
            },
        ),
        migrations.CreateModel(
            name='Idioma',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_idioma', models.CharField(max_length=60)),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Idioma',
                'verbose_name_plural': 'Idiomas',
            },
        ),
        migrations.CreateModel(
            name='Nino',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fecha_evaluacion', models.DateField()),
                ('nombre_nino', models.CharField(max_length=60)),
                ('apellido_nino', models.CharField(max_length=60)),
                ('image', models.ImageField(upload_to='img')),
                ('cui', models.CharField(max_length=60)),
                ('sexo', models.CharField(max_length=3)),
                ('grado_educativo', models.CharField(max_length=30, null=True)),
                ('fecha_nacimiento', models.DateField()),
                ('lugar_nacimiento', models.CharField(max_length=60)),
                ('lugar_residencia', models.CharField(max_length=60)),
                ('ocupacion', models.CharField(max_length=60, null=True)),
                ('religion', models.CharField(max_length=30, null=True)),
                ('nombre_madre', models.CharField(max_length=100)),
                ('nombre_padre', models.CharField(max_length=100)),
                ('fecha_ingreso', models.DateField()),
                ('estado', models.BooleanField(default=True)),
                ('etnia', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Etnia')),
                ('idioma', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Idioma')),
            ],
            options={
                'verbose_name': 'Nino',
                'verbose_name_plural': 'Ninos',
            },
        ),
        migrations.CreateModel(
            name='Relacion_Familia',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tipo_relacion', models.CharField(max_length=60)),
            ],
            options={
                'verbose_name': 'Relacion_Familia',
                'verbose_name_plural': 'Relacion_Familias',
            },
        ),
        migrations.DeleteModel(
            name='Registro_Enfermedade',
        ),
        migrations.DeleteModel(
            name='Registro_etnia',
        ),
        migrations.DeleteModel(
            name='Registro_Idioma',
        ),
        migrations.AlterModelOptions(
            name='nivel_nutricion',
            options={'verbose_name': 'Nivel_Nutricion', 'verbose_name_plural': 'Nivel_Nutricions'},
        ),
        migrations.RemoveField(
            model_name='motivo_ingreso',
            name='nombre',
        ),
        migrations.RemoveField(
            model_name='nivel_nutricion',
            name='nombre',
        ),
        migrations.AddField(
            model_name='motivo_ingreso',
            name='descripcion',
            field=models.TextField(default=1),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='motivo_ingreso',
            name='estado',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='motivo_ingreso',
            name='nombre_motivo',
            field=models.CharField(default=1, max_length=60),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='nivel_nutricion',
            name='descripcion',
            field=models.TextField(default=1),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='nivel_nutricion',
            name='estado',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='nivel_nutricion',
            name='nivel',
            field=models.CharField(default=1, max_length=60),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='nino',
            name='motivo_ingreso',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Motivo_Ingreso'),
        ),
        migrations.AddField(
            model_name='area_social',
            name='fuente_estres',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Fuente_Estre'),
        ),
        migrations.AddField(
            model_name='area_social',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Nino'),
        ),
        migrations.AddField(
            model_name='area_social',
            name='relacion_familiar',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Relacion_Familia'),
        ),
        migrations.AddField(
            model_name='area_psicologica',
            name='enfermedad',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Enfermedad'),
        ),
        migrations.AddField(
            model_name='area_psicologica',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Nino'),
        ),
        migrations.AddField(
            model_name='area_medica',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Nino'),
        ),
        migrations.AddField(
            model_name='area_medica',
            name='nivel_nutricion',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Nivel_Nutricion'),
        ),
        migrations.AddField(
            model_name='area_dental',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Nino'),
        ),
    ]
Beispiel #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('LAB', '0005_auto_20190726_1108'),
    ]

    operations = [
        migrations.CreateModel(
            name='Fuel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=200, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Package',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=200, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Sample',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sample_id', models.CharField(blank=True, max_length=200, null=True)),
                ('package', models.CharField(blank=True, max_length=200, null=True)),
                ('Fuel', models.CharField(blank=True, max_length=200, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='SampleTest',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=200, null=True)),
                ('result', models.CharField(blank=True, max_length=200, null=True)),
                ('sample', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='LAB.Sample')),
            ],
        ),
        migrations.CreateModel(
            name='Test',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=200, null=True)),
            ],
        ),
        migrations.DeleteModel(
            name='Student',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='First_name',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='Last_name',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='adress',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='city',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='company',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='email',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='phone_number',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='state',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='status_note',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='zipcode',
        ),
        migrations.AddField(
            model_name='customer',
            name='name',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='sample',
            name='customer',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='LAB.Customer'),
        ),
        migrations.AddField(
            model_name='package',
            name='tests',
            field=models.ManyToManyField(blank=True, to='LAB.Test'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('rentalapp', '0002_author_secondname'),
    ]

    operations = [
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField()),
                ('end_date', models.DateField()),
                ('action_type', models.CharField(max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('birth_date', models.DateField()),
                ('address', models.CharField(max_length=100)),
                ('is_librarian', models.BooleanField(default=False)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='orders',
            name='book',
        ),
        migrations.RemoveField(
            model_name='orders',
            name='client',
        ),
        migrations.RemoveField(
            model_name='book',
            name='ordered',
        ),
        migrations.RemoveField(
            model_name='book',
            name='status',
        ),
        migrations.AddField(
            model_name='book',
            name='is_avaiable',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='book',
            name='is_reserved',
            field=models.BooleanField(default=False),
        ),
        migrations.DeleteModel(
            name='Client',
        ),
        migrations.DeleteModel(
            name='Orders',
        ),
        migrations.AddField(
            model_name='order',
            name='book',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rentalapp.Book'),
        ),
        migrations.AddField(
            model_name='order',
            name='user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='rentalapp.User'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('filer', '0010_auto_20180414_2058'),
        migrations.swappable_dependency(settings.FILER_IMAGE_MODEL),
        ('testapp', '0011_filernewfileinlinemodel_filernewimageinlinemodel'),
    ]

    operations = [
        migrations.CreateModel(
            name='FilerNewFieldTest',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=150)),
                ('filer_file', filer_addons.filer_gui.fields.FilerFileField(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='file_filertest', to='filer.File')),
                ('filer_file_raw', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='filer.File')),
                ('filer_image', filer_addons.filer_gui.fields.FilerImageField(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='image_filertest', to=settings.FILER_IMAGE_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='FilerOriginalFieldTest',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=150)),
                ('filer_file_original', filer.fields.file.FilerFileField(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='file_original_filertest', to='filer.File')),
                ('filer_file_raw', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='filer.File')),
                ('filer_image_original', filer.fields.image.FilerImageField(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='image_original_filertest', to=settings.FILER_IMAGE_MODEL)),
            ],
        ),
        migrations.RenameModel(
            old_name='FilerUglyFileInlineModel',
            new_name='FilerOriginalFileInlineModel',
        ),
        migrations.RenameModel(
            old_name='FilerUglyImageInlineModel',
            new_name='FilerOriginalImageInlineModel',
        ),
        migrations.RemoveField(
            model_name='filertest',
            name='filer_file',
        ),
        migrations.RemoveField(
            model_name='filertest',
            name='filer_file_raw',
        ),
        migrations.RemoveField(
            model_name='filertest',
            name='filer_file_ugly',
        ),
        migrations.RemoveField(
            model_name='filertest',
            name='filer_image',
        ),
        migrations.RemoveField(
            model_name='filertest',
            name='filer_image_ugly',
        ),
        migrations.RenameField(
            model_name='fileroriginalfileinlinemodel',
            old_name='filer_file_ugly',
            new_name='filer_file_original',
        ),
        migrations.RenameField(
            model_name='fileroriginalimageinlinemodel',
            old_name='filer_image_ugly',
            new_name='filer_image_original',
        ),
        migrations.AlterField(
            model_name='filernewfileinlinemodel',
            name='filer_test',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='testapp.FilerNewFieldTest'),
        ),
        migrations.AlterField(
            model_name='filernewimageinlinemodel',
            name='filer_test',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='testapp.FilerNewFieldTest'),
        ),
        migrations.AlterField(
            model_name='fileroriginalfileinlinemodel',
            name='filer_test',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='testapp.FilerOriginalFieldTest'),
        ),
        migrations.AlterField(
            model_name='fileroriginalimageinlinemodel',
            name='filer_test',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='testapp.FilerOriginalFieldTest'),
        ),
        migrations.DeleteModel(
            name='FilerTest',
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('sriru', '0075_fellowship'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='completed_purchase',
            name='purchase',
        ),
        migrations.RemoveField(
            model_name='completed_purchase',
            name='vendor',
        ),
        migrations.DeleteModel(name='Completed_Purchase', ),
        migrations.RemoveField(
            model_name='fellowship',
            name='project',
        ),
        migrations.RemoveField(
            model_name='fellowship',
            name='researcher',
        ),
        migrations.RemoveField(
            model_name='fellowship',
            name='sanc_head',
        ),
        migrations.DeleteModel(name='Fellowship', ),
        migrations.RemoveField(
            model_name='payment',
            name='sponsorship',
        ),
        migrations.DeleteModel(name='Payment', ),
        migrations.RemoveField(
            model_name='professor',
            name='department',
        ),
        migrations.RemoveField(
            model_name='professor',
            name='designation',
        ),
        migrations.DeleteModel(name='Designation', ),
        migrations.RemoveField(
            model_name='project_unapproved',
            name='PI',
        ),
        migrations.RemoveField(
            model_name='project_unapproved',
            name='co_PI',
        ),
        migrations.DeleteModel(name='Professor', ),
        migrations.RemoveField(
            model_name='purchase',
            name='sanc_head',
        ),
        migrations.RemoveField(
            model_name='purchase_duration',
            name='purchase',
        ),
        migrations.DeleteModel(name='Purchase', ),
        migrations.DeleteModel(name='Purchase_duration', ),
        migrations.RemoveField(
            model_name='sanctioned_head',
            name='project',
        ),
        migrations.DeleteModel(name='Sanctioned_Head', ),
        migrations.RemoveField(
            model_name='sponsorship',
            name='project',
        ),
        migrations.DeleteModel(name='Project_Unapproved', ),
        migrations.RemoveField(
            model_name='sponsorship',
            name='sponsor',
        ),
        migrations.DeleteModel(name='Sponsor', ),
        migrations.DeleteModel(name='Sponsorship', ),
        migrations.RemoveField(
            model_name='student',
            name='dept',
        ),
        migrations.DeleteModel(name='Department', ),
        migrations.DeleteModel(name='Student', ),
        migrations.DeleteModel(name='SuperUser', ),
        migrations.DeleteModel(name='Vendor', ),
    ]
Beispiel #8
0
class Migration(migrations.Migration):

    dependencies = [
        ('service_admin', '0016_announcement'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='datasource',
            name='applicable_to',
        ),
        migrations.RemoveField(
            model_name='metricdocumentation',
            name='abstract',
        ),
        migrations.RemoveField(
            model_name='metricdocumentation',
            name='description',
        ),
        migrations.RemoveField(
            model_name='metricdocumentation',
            name='methodology',
        ),
        migrations.RemoveField(
            model_name='metricdocumentation',
            name='metric_id',
        ),
        migrations.RemoveField(
            model_name='metricdocumentation',
            name='source',
        ),
        migrations.AlterModelOptions(
            name='announcement',
            options={'verbose_name': 'Announcement'},
        ),
        migrations.AlterModelOptions(
            name='areapriorities',
            options={
                'managed':
                False,
                'permissions':
                [('create_area_priorities_object', 'Can create metrics'),
                 ('manage_area_priorities_object', 'Can manage metrics'),
                 ('view_area_priorities_object', 'Can view metrics'),
                 ('delete_area_priorities_object', 'Can delete metrics')]
            },
        ),
        migrations.AlterModelOptions(
            name='service',
            options={
                'ordering': ('pk', ),
                'permissions':
                (('manage_service_object',
                  'Can manage service'), ('view_service_object',
                                          'Can view service'),
                 ('create_metric_object',
                  'Can create metrics'), ('manage_metric_object',
                                          'Can manage metrics'),
                 ('view_metric_object',
                  'Can view metrics'), ('view_delete_object',
                                        'Can delete metrics'),
                 ('manage_release_object',
                  'Can despatch data'), ('view_release_object',
                                         'Can view despatch'),
                 ('create_banner_object',
                  'Can manage banners'), ('manage_banner_object',
                                          'Can manage banners'),
                 ('view_banner_object',
                  'Can view banners'), ('create_changelog_object',
                                        'Can create change logs'),
                 ('manage_changelog_object',
                  'Can manage change logs'), ('view_changelog_object',
                                              'Can view change logs'),
                 ('create_metricdoc_object',
                  'Can create metric documentations'),
                 ('manage_metricdoc_object',
                  'Can manage metric documentations'),
                 ('view_metricdoc_object', 'Can view metric documentations')),
                'verbose_name':
                'service',
                'verbose_name_plural':
                'services'
            },
        ),
        migrations.DeleteModel(name='Abstract', ),
        migrations.DeleteModel(name='DataSource', ),
        migrations.DeleteModel(name='Description', ),
        migrations.DeleteModel(name='Methodology', ),
        migrations.DeleteModel(name='MetricDocumentation', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('movie', '0002_remove_movie_slug'),
    ]

    operations = [
        migrations.CreateModel(
            name='AuthGroup',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=80, unique=True)),
            ],
            options={
                'db_table': 'auth_group',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthGroupPermissions',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_group_permissions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthPermission',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('codename', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'auth_permission',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUser',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password', models.CharField(max_length=128)),
                ('last_login', models.DateTimeField(blank=True, null=True)),
                ('is_superuser', models.IntegerField()),
                ('username', models.CharField(max_length=150, unique=True)),
                ('first_name', models.CharField(max_length=30)),
                ('last_name', models.CharField(max_length=150)),
                ('email', models.CharField(max_length=254)),
                ('is_staff', models.IntegerField()),
                ('is_active', models.IntegerField()),
                ('date_joined', models.DateTimeField()),
            ],
            options={
                'db_table': 'auth_user',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUserGroups',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_user_groups',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUserUserPermissions',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_user_user_permissions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoAdminLog',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('action_time', models.DateTimeField()),
                ('object_id', models.TextField(blank=True, null=True)),
                ('object_repr', models.CharField(max_length=200)),
                ('action_flag', models.PositiveSmallIntegerField()),
                ('change_message', models.TextField()),
            ],
            options={
                'db_table': 'django_admin_log',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoContentType',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('app_label', models.CharField(max_length=100)),
                ('model', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'django_content_type',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoMigrations',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('app', models.CharField(max_length=255)),
                ('name', models.CharField(max_length=255)),
                ('applied', models.DateTimeField()),
            ],
            options={
                'db_table': 'django_migrations',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoSession',
            fields=[
                ('session_key',
                 models.CharField(max_length=40,
                                  primary_key=True,
                                  serialize=False)),
                ('session_data', models.TextField()),
                ('expire_date', models.DateTimeField()),
            ],
            options={
                'db_table': 'django_session',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('age',
                 models.IntegerField(blank=True, db_column='Age', null=True)),
                ('gender',
                 models.CharField(blank=True,
                                  db_column='Gender',
                                  max_length=250,
                                  null=True)),
            ],
            options={
                'db_table': 'Profile',
                'managed': False,
            },
        ),
        migrations.DeleteModel(name='User', ),
        migrations.AlterModelOptions(
            name='genre',
            options={'managed': False},
        ),
        migrations.AlterModelOptions(
            name='genremovie',
            options={'managed': False},
        ),
        migrations.AlterModelOptions(
            name='movie',
            options={'managed': False},
        ),
        migrations.AlterModelOptions(
            name='ratemovie',
            options={'managed': False},
        ),
        migrations.AlterModelOptions(
            name='rating',
            options={'managed': False},
        ),
    ]
Beispiel #10
0
class Migration(migrations.Migration):

    dependencies = [
        ('lcc', '0007_auto_20171106_1347'),
    ]

    operations = [
        migrations.CreateModel(
            name='AssessmentProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('cw',
                 models.BooleanField(
                     default=False,
                     verbose_name='Commonwealth (Member country)')),
                ('small_cw',
                 models.BooleanField(
                     default=False,
                     verbose_name='Small commonwealth country')),
                ('un',
                 models.BooleanField(
                     default=False,
                     verbose_name='United Nations (Member state)')),
                ('ldc',
                 models.BooleanField(
                     default=False,
                     verbose_name='Least developed country (LDC)')),
                ('lldc',
                 models.BooleanField(
                     default=False,
                     verbose_name='Landlocked developing country (LLDC)')),
                ('sid',
                 models.BooleanField(
                     default=False,
                     verbose_name='Small island developing state (SID)')),
                ('population',
                 models.FloatField(null=True,
                                   verbose_name="Population ('000s) 2018")),
                ('hdi2015', models.FloatField(null=True,
                                              verbose_name='HDI2015')),
                ('gdp_capita',
                 models.FloatField(null=True,
                                   verbose_name='GDP per capita, US$ 2016')),
                ('ghg_no_lucf',
                 models.FloatField(
                     null=True,
                     verbose_name=
                     'Total GHG Emissions excluding LUCF MtCO2e 2014')),
                ('ghg_lucf',
                 models.FloatField(
                     null=True,
                     verbose_name=
                     'Total GHG Emissions including LUCF MtCO2e 2014')),
                ('cvi2015',
                 models.FloatField(
                     blank=True,
                     null=True,
                     verbose_name='Climate vulnerability index 2015')),
                ('adaptation_priority_sectors',
                 models.ManyToManyField(blank=True, to='lcc.PrioritySector')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='country',
            name='adaptation_priority_sectors',
            field=models.ManyToManyField(blank=True, to='lcc.PrioritySector'),
        ),
        migrations.AddField(
            model_name='country',
            name='cvi2015',
            field=models.FloatField(
                blank=True,
                null=True,
                verbose_name='Climate vulnerability index 2015'),
        ),
        migrations.AddField(
            model_name='country',
            name='cw',
            field=models.BooleanField(
                default=False, verbose_name='Commonwealth (Member country)'),
        ),
        migrations.AddField(
            model_name='country',
            name='gdp_capita',
            field=models.FloatField(null=True,
                                    verbose_name='GDP per capita, US$ 2016'),
        ),
        migrations.AddField(
            model_name='country',
            name='ghg_lucf',
            field=models.FloatField(
                null=True,
                verbose_name='Total GHG Emissions including LUCF MtCO2e 2014'),
        ),
        migrations.AddField(
            model_name='country',
            name='ghg_no_lucf',
            field=models.FloatField(
                null=True,
                verbose_name='Total GHG Emissions excluding LUCF MtCO2e 2014'),
        ),
        migrations.AddField(
            model_name='country',
            name='hdi2015',
            field=models.FloatField(null=True, verbose_name='HDI2015'),
        ),
        migrations.AddField(
            model_name='country',
            name='ldc',
            field=models.BooleanField(
                default=False, verbose_name='Least developed country (LDC)'),
        ),
        migrations.AddField(
            model_name='country',
            name='legal_system',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.LegalSystem'),
        ),
        migrations.AddField(
            model_name='country',
            name='lldc',
            field=models.BooleanField(
                default=False,
                verbose_name='Landlocked developing country (LLDC)'),
        ),
        migrations.AddField(
            model_name='country',
            name='mitigation_focus_areas',
            field=models.ManyToManyField(blank=True, to='lcc.FocusArea'),
        ),
        migrations.AddField(
            model_name='country',
            name='population',
            field=models.FloatField(null=True,
                                    verbose_name="Population ('000s) 2018"),
        ),
        migrations.AddField(
            model_name='country',
            name='region',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.Region'),
        ),
        migrations.AddField(
            model_name='country',
            name='sid',
            field=models.BooleanField(
                default=False,
                verbose_name='Small island developing state (SID)'),
        ),
        migrations.AddField(
            model_name='country',
            name='small_cw',
            field=models.BooleanField(
                default=False, verbose_name='Small commonwealth country'),
        ),
        migrations.AddField(
            model_name='country',
            name='sub_region',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.SubRegion'),
        ),
        migrations.AddField(
            model_name='country',
            name='un',
            field=models.BooleanField(
                default=False, verbose_name='United Nations (Member state)'),
        ),
        migrations.AddField(
            model_name='assessmentprofile',
            name='country',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='metadata',
                to='lcc.Country'),
        ),
        migrations.AddField(
            model_name='assessmentprofile',
            name='legal_system',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.LegalSystem'),
        ),
        migrations.AddField(
            model_name='assessmentprofile',
            name='mitigation_focus_areas',
            field=models.ManyToManyField(blank=True, to='lcc.FocusArea'),
        ),
        migrations.AddField(
            model_name='assessmentprofile',
            name='region',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.Region'),
        ),
        migrations.AddField(
            model_name='assessmentprofile',
            name='sub_region',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.SubRegion'),
        ),
        migrations.AddField(
            model_name='assessmentprofile',
            name='user',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='lcc.UserProfile'),
        ),
        migrations.RunPython(migrate_data, unmigrate_data),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='adaptation_priority_sectors',
        ),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='country',
        ),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='legal_system',
        ),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='mitigation_focus_areas',
        ),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='region',
        ),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='sub_region',
        ),
        migrations.RemoveField(
            model_name='countrymetadata',
            name='user',
        ),
        migrations.DeleteModel(name='CountryMetadata', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('dc_management', '0018_auto_20171221_0027'),
    ]

    operations = [
        migrations.CreateModel(
            name='SoftwareCost',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('record_creation', models.DateField(auto_now_add=True)),
                ('record_update', models.DateField(auto_now=True)),
                ('record_author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('software', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dc_management.Software')),
            ],
        ),
        migrations.CreateModel(
            name='UserCost',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('record_creation', models.DateField(auto_now_add=True)),
                ('record_update', models.DateField(auto_now=True)),
                ('user_quantity', models.IntegerField()),
                ('user_cost', models.FloatField()),
                ('record_author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='softwarepurchase',
            name='sw_purchased',
        ),
        migrations.RemoveField(
            model_name='softwarepurchase',
            name='unit',
        ),
        migrations.RenameField(
            model_name='software_purchase',
            old_name='num_licenses_purchased',
            new_name='num_units_purchased',
        ),
        migrations.AddField(
            model_name='software_purchase',
            name='invoice_number',
            field=models.CharField(default=0, max_length=64),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='software_purchase',
            name='unit_type',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='dc_management.SoftwareUnit'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='server',
            name='function',
            field=models.CharField(choices=[('PR', 'Production'), ('TE', 'Test'), ('DE', 'Development')], default='PR', max_length=2),
        ),
        migrations.DeleteModel(
            name='SoftwarePurchase',
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('works', '0008_auto_20180724_1214'),
    ]

    operations = [
        migrations.CreateModel(
            name='QuantityRate',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.FloatField()),
                ('rate', models.FloatField()),
                ('amount', models.FloatField()),
            ],
        ),
        migrations.RemoveField(
            model_name='report',
            name='challan',
        ),
        migrations.RemoveField(
            model_name='report',
            name='invoice_of',
        ),
        migrations.AddField(
            model_name='report',
            name='cgst',
            field=models.FloatField(default=2),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='report',
            name='challan_number',
            field=models.IntegerField(default='2', unique=True),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='report',
            name='date',
            field=models.DateField(default=datetime.datetime(2018, 7, 25, 2, 13, 31, 532064, tzinfo=utc)),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='report',
            name='date_added',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='report',
            name='hsc_number',
            field=models.CharField(default='ABCDE', max_length=200),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='report',
            name='sgst',
            field=models.FloatField(default='2'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='report',
            name='total_amount',
            field=models.FloatField(default=0),
            preserve_default=False,
        ),
        migrations.DeleteModel(
            name='Challan',
        ),
        migrations.AddField(
            model_name='quantityrate',
            name='report',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='works.Report'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('music', '0004_auto_20190207_2031'),
    ]

    operations = [
        migrations.CreateModel(
            name='其他女歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='其他歌手组合',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='其他男歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='华语女歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='华语男歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='华语组合',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='日本女歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='日本男歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='日本组合',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='欧美女歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='欧美男歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='欧美组合',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='韩国女歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='韩国男歌手',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='韩国组合',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('歌手姓名', models.CharField(max_length=100)),
                ('歌手ID', models.CharField(max_length=100)),
            ],
        ),
        migrations.DeleteModel(name='其他歌手', ),
        migrations.DeleteModel(name='华语歌手', ),
        migrations.DeleteModel(name='日本歌手', ),
        migrations.DeleteModel(name='欧美歌手', ),
        migrations.DeleteModel(name='韩国歌手', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('forms', '0004_auto_20200511_1457'),
    ]

    operations = [
        migrations.CreateModel(
            name='Field',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('Serialno', models.PositiveIntegerField(blank=True,
                                                         null=True)),
                ('type',
                 models.CharField(choices=[('text', 'Text Small'),
                                           ('date', 'Date'),
                                           ('email', 'E-mail'),
                                           ('number', 'Number'),
                                           ('url', 'Link'),
                                           ('textarea', 'Text Large'),
                                           ('image', 'Image'),
                                           ('file', 'File'),
                                           ('dropdown', 'Drop Down'),
                                           ('radio', 'Single Option'),
                                           ('checkbox', 'Multiple Option')],
                                  max_length=50)),
                ('name', models.CharField(default=None, max_length=50)),
                ('default_value',
                 models.CharField(blank=True, default=None, max_length=500)),
                ('placeholder_value',
                 models.CharField(default=None, max_length=500)),
                ('required', models.BooleanField(default=False)),
                ('readOnly', models.BooleanField(default=False)),
                ('Validation_Error',
                 models.CharField(default=None, max_length=100)),
                ('uploadToURL', models.URLField(blank=True, default=None)),
            ],
        ),
        migrations.CreateModel(
            name='Fieldset',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(default=None, max_length=50)),
                ('form',
                 models.ForeignKey(blank=True,
                                   default=None,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='fieldsets',
                                   to='forms.Form')),
            ],
        ),
        migrations.CreateModel(
            name='Selection_Option',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(default=None, max_length=50)),
                ('value', models.CharField(default=None, max_length=50)),
                ('options',
                 models.ForeignKey(blank=True,
                                   default=None,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='forms.Field')),
            ],
        ),
        migrations.RemoveField(
            model_name='fieldsets',
            name='content_type',
        ),
        migrations.RemoveField(
            model_name='fieldsets',
            name='form',
        ),
        migrations.DeleteModel(name='InputField', ),
        migrations.RemoveField(
            model_name='option',
            name='options',
        ),
        migrations.DeleteModel(name='UploadField', ),
        migrations.DeleteModel(name='Fieldsets', ),
        migrations.DeleteModel(name='Option', ),
        migrations.DeleteModel(name='SelectionField', ),
        migrations.AddField(
            model_name='field',
            name='fieldset',
            field=models.ForeignKey(
                blank=True,
                default=None,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='fields',
                to='forms.Fieldset'),
        ),
    ]
Beispiel #15
0
class Migration(migrations.Migration):

    dependencies = [
        ('boards', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Competition',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comp',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='boards.Competition')),
            ],
        ),
        migrations.CreateModel(
            name='Players',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('hometown', models.CharField(max_length=200)),
            ],
        ),
        migrations.RemoveField(
            model_name='choice',
            name='question',
        ),
        migrations.DeleteModel(name='Choice', ),
        migrations.DeleteModel(name='Question', ),
        migrations.AddField(
            model_name='game',
            name='loser',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='loser',
                to='boards.Players'),
        ),
        migrations.AddField(
            model_name='game',
            name='winner',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='winner',
                to='boards.Players'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('core', '0008_auto_20201007_0022'),
    ]

    operations = [
        migrations.DeleteModel(name='ModelBase', ),
        migrations.AddField(
            model_name='category',
            name='active',
            field=models.BooleanField(db_column='active', default=True),
        ),
        migrations.AddField(
            model_name='category',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True,
                                       db_column='created_at',
                                       default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='category',
            name='modifed_at',
            field=models.DateTimeField(auto_now=True, db_column='modified_at'),
        ),
        migrations.AddField(
            model_name='department',
            name='active',
            field=models.BooleanField(db_column='active', default=True),
        ),
        migrations.AddField(
            model_name='department',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True,
                                       db_column='created_at',
                                       default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='department',
            name='modifed_at',
            field=models.DateTimeField(auto_now=True, db_column='modified_at'),
        ),
        migrations.AddField(
            model_name='employee',
            name='active',
            field=models.BooleanField(db_column='active', default=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True,
                                       db_column='created_at',
                                       default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='employee',
            name='modifed_at',
            field=models.DateTimeField(auto_now=True, db_column='modified_at'),
        ),
        migrations.AddField(
            model_name='product',
            name='active',
            field=models.BooleanField(db_column='active', default=True),
        ),
        migrations.AddField(
            model_name='product',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True,
                                       db_column='created_at',
                                       default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='product',
            name='modifed_at',
            field=models.DateTimeField(auto_now=True, db_column='modified_at'),
        ),
        migrations.AddField(
            model_name='productcategory',
            name='active',
            field=models.BooleanField(db_column='active', default=True),
        ),
        migrations.AddField(
            model_name='productcategory',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True,
                                       db_column='created_at',
                                       default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='productcategory',
            name='modifed_at',
            field=models.DateTimeField(auto_now=True, db_column='modified_at'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('inscription', '0003_auto_20170403_1738'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='product',
            name='category',
        ),
        migrations.AlterField(
            model_name='candidat',
            name='date_nass',
            field=models.DateField(verbose_name='Date naissance'),
        ),
        migrations.AlterField(
            model_name='candidat',
            name='lieu_naissance',
            field=models.CharField(max_length=100,
                                   verbose_name='Pays de nassaince'),
        ),
        migrations.AlterField(
            model_name='candidat',
            name='prenom',
            field=models.CharField(max_length=100, verbose_name='Prénom'),
        ),
        migrations.AlterField(
            model_name='contacts',
            name='adresse',
            field=models.CharField(max_length=255,
                                   verbose_name='adresse de résidence'),
        ),
        migrations.AlterField(
            model_name='contacts',
            name='email',
            field=models.EmailField(max_length=80,
                                    unique=True,
                                    verbose_name='Courriel'),
        ),
        migrations.AlterField(
            model_name='contacts',
            name='fixe_phone',
            field=models.CharField(blank=True,
                                   max_length=20,
                                   verbose_name='Telephone fixe'),
        ),
        migrations.AlterField(
            model_name='contacts',
            name='pays',
            field=models.CharField(max_length=100,
                                   verbose_name='pays de résidence'),
        ),
        migrations.AlterField(
            model_name='contacts',
            name='portable_phone',
            field=models.CharField(max_length=20,
                                   unique=True,
                                   verbose_name='Telephone portable'),
        ),
        migrations.AlterField(
            model_name='contacts',
            name='ville',
            field=models.CharField(max_length=100,
                                   verbose_name='Ville de résidence'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s1_an',
            field=models.CharField(max_length=10, verbose_name='(Année S1)'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s1_note',
            field=models.DecimalField(decimal_places=2,
                                      max_digits=11,
                                      verbose_name='Note S1'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s2_an',
            field=models.CharField(max_length=10, verbose_name='(Année S2)'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s2_note',
            field=models.DecimalField(blank=True,
                                      decimal_places=2,
                                      max_digits=11,
                                      null=True,
                                      verbose_name='Note S2'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s3_an',
            field=models.CharField(max_length=10, verbose_name='(Année S3)'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s3_note',
            field=models.DecimalField(blank=True,
                                      decimal_places=2,
                                      max_digits=11,
                                      null=True,
                                      verbose_name='Note S3'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s4_an',
            field=models.CharField(max_length=10, verbose_name='(Année S4)'),
        ),
        migrations.AlterField(
            model_name='diplome',
            name='s4_note',
            field=models.DecimalField(blank=True,
                                      decimal_places=2,
                                      max_digits=11,
                                      null=True,
                                      verbose_name='Note S4'),
        ),
        migrations.DeleteModel(name='Category', ),
        migrations.DeleteModel(name='Product', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('factures', '0003_auto_20170622_1134'),
    ]

    operations = [
        migrations.CreateModel(
            name='Ligne',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('service_name', models.CharField(max_length=200)),
                ('unit_price',
                 models.DecimalField(decimal_places=2, max_digits=8)),
                ('quantity', models.SmallIntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Proposition',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('customer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='factures.Profile')),
                ('dealer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
                ('status',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='factures.Status')),
            ],
        ),
        migrations.RemoveField(
            model_name='proposal',
            name='customer',
        ),
        migrations.RemoveField(
            model_name='proposal',
            name='dealer',
        ),
        migrations.RemoveField(
            model_name='proposal',
            name='status',
        ),
        migrations.RemoveField(
            model_name='service',
            name='proposal',
        ),
        migrations.DeleteModel(name='Proposal', ),
        migrations.DeleteModel(name='Service', ),
        migrations.AddField(
            model_name='ligne',
            name='proposal',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='factures.Proposition'),
        ),
    ]
Beispiel #19
0
class Migration(migrations.Migration):

    dependencies = [
        ('item', '0002_auto_20170228_0654'),
        ('order', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='order_data_purchase',
            fields=[
                ('order_id',
                 models.IntegerField(primary_key=True, serialize=False)),
                ('customer_id',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('customer_name',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('tax_id',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('sub_total', models.FloatField(max_length=120)),
                ('tax_total', models.FloatField(max_length=120)),
                ('grand_total', models.FloatField(max_length=120)),
                ('date_created', models.DateTimeField()),
                ('date_modified', models.DateTimeField()),
                ('payment_status', models.BooleanField()),
                ('payment_mode',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('payment_description', models.TextField(max_length=250)),
            ],
        ),
        migrations.CreateModel(
            name='order_data_selling',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('order_id', models.IntegerField(blank=True, null=True)),
                ('customer_id',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('customer_name',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('order_type',
                 models.CharField(blank=True,
                                  choices=[('Purchase', 'Purchase'),
                                           ('Sell', 'Sell')],
                                  max_length=120,
                                  null=True)),
                ('tax_id',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('sub_total', models.FloatField(max_length=120)),
                ('tax_total', models.FloatField(max_length=120)),
                ('grand_total', models.FloatField(max_length=120)),
                ('date_created', models.DateTimeField()),
                ('date_modified', models.DateTimeField()),
                ('payment_status', models.BooleanField()),
                ('payment_mode',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('payment_description', models.TextField(max_length=250)),
            ],
        ),
        migrations.CreateModel(
            name='order_item',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('order_id', models.IntegerField()),
                ('created', models.DateField(auto_now_add=True)),
                ('modified', models.DateField(auto_now_add=True)),
                ('price', models.FloatField(null=True)),
                ('quantity', models.IntegerField(null=True)),
                ('total_tax', models.FloatField(null=True)),
                ('tax', models.FloatField(null=True)),
                ('item_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='item.item_data')),
            ],
        ),
        migrations.DeleteModel(name='order', ),
    ]
Beispiel #20
0
class Migration(migrations.Migration):
    dependencies = [("cases", "0007_remove_image_study")]

    operations = [migrations.DeleteModel(name="RawImageFile")]
class Migration(migrations.Migration):

    dependencies = [
        ('librarybot', '0011_auto_20200127_2332'),
    ]

    operations = [
        migrations.CreateModel(
            name='Events',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=1000)),
                ('participant_0', models.CharField(max_length=1000)),
                ('participant_1', models.CharField(max_length=1000)),
                ('participant_2', models.CharField(max_length=1000)),
                ('participant_3', models.CharField(max_length=1000)),
                ('participant_4', models.CharField(max_length=1000)),
                ('participant_5', models.CharField(max_length=1000)),
                ('participant_6', models.CharField(max_length=1000)),
                ('participant_7', models.CharField(max_length=1000)),
                ('participant_8', models.CharField(max_length=1000)),
                ('participant_9', models.CharField(max_length=1000)),
                ('participant_10', models.CharField(max_length=1000)),
                ('participant_11', models.CharField(max_length=1000)),
                ('participant_12', models.CharField(max_length=1000)),
                ('participant_13', models.CharField(max_length=1000)),
                ('participant_14', models.CharField(max_length=1000)),
                ('participant_15', models.CharField(max_length=1000)),
                ('participant_16', models.CharField(max_length=1000)),
                ('participant_17', models.CharField(max_length=1000)),
                ('participant_18', models.CharField(max_length=1000)),
                ('participant_19', models.CharField(max_length=1000)),
                ('participant_20', models.CharField(max_length=1000)),
                ('participant_21', models.CharField(max_length=1000)),
                ('participant_22', models.CharField(max_length=1000)),
                ('participant_23', models.CharField(max_length=1000)),
                ('participant_24', models.CharField(max_length=1000)),
                ('participant_25', models.CharField(max_length=1000)),
                ('participant_26', models.CharField(max_length=1000)),
                ('participant_27', models.CharField(max_length=1000)),
                ('participant_28', models.CharField(max_length=1000)),
                ('participant_29', models.CharField(max_length=1000)),
                ('participant_30', models.CharField(max_length=1000)),
                ('participant_31', models.CharField(max_length=1000)),
                ('participant_32', models.CharField(max_length=1000)),
                ('participant_33', models.CharField(max_length=1000)),
                ('participant_34', models.CharField(max_length=1000)),
                ('participant_35', models.CharField(max_length=1000)),
                ('participant_36', models.CharField(max_length=1000)),
                ('participant_37', models.CharField(max_length=1000)),
                ('participant_38', models.CharField(max_length=1000)),
                ('participant_39', models.CharField(max_length=1000)),
                ('participant_40', models.CharField(max_length=1000)),
                ('participant_41', models.CharField(max_length=1000)),
                ('participant_42', models.CharField(max_length=1000)),
                ('participant_43', models.CharField(max_length=1000)),
                ('participant_44', models.CharField(max_length=1000)),
                ('participant_45', models.CharField(max_length=1000)),
                ('participant_46', models.CharField(max_length=1000)),
                ('participant_47', models.CharField(max_length=1000)),
                ('participant_48', models.CharField(max_length=1000)),
                ('participant_49', models.CharField(max_length=1000)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='Spendings',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=1000)),
                ('amount', models.IntegerField()),
                ('participant_0', models.CharField(max_length=1000)),
                ('participant_1', models.CharField(max_length=1000)),
                ('participant_2', models.CharField(max_length=1000)),
                ('participant_3', models.CharField(max_length=1000)),
                ('participant_4', models.CharField(max_length=1000)),
                ('participant_5', models.CharField(max_length=1000)),
                ('participant_6', models.CharField(max_length=1000)),
                ('participant_7', models.CharField(max_length=1000)),
                ('participant_8', models.CharField(max_length=1000)),
                ('participant_9', models.CharField(max_length=1000)),
                ('participant_10', models.CharField(max_length=1000)),
                ('participant_11', models.CharField(max_length=1000)),
                ('participant_12', models.CharField(max_length=1000)),
                ('participant_13', models.CharField(max_length=1000)),
                ('participant_14', models.CharField(max_length=1000)),
                ('participant_15', models.CharField(max_length=1000)),
                ('participant_16', models.CharField(max_length=1000)),
                ('participant_17', models.CharField(max_length=1000)),
                ('participant_18', models.CharField(max_length=1000)),
                ('participant_19', models.CharField(max_length=1000)),
                ('participant_20', models.CharField(max_length=1000)),
                ('participant_21', models.CharField(max_length=1000)),
                ('participant_22', models.CharField(max_length=1000)),
                ('participant_23', models.CharField(max_length=1000)),
                ('participant_24', models.CharField(max_length=1000)),
                ('participant_25', models.CharField(max_length=1000)),
                ('participant_26', models.CharField(max_length=1000)),
                ('participant_27', models.CharField(max_length=1000)),
                ('participant_28', models.CharField(max_length=1000)),
                ('participant_29', models.CharField(max_length=1000)),
                ('participant_30', models.CharField(max_length=1000)),
                ('participant_31', models.CharField(max_length=1000)),
                ('participant_32', models.CharField(max_length=1000)),
                ('participant_33', models.CharField(max_length=1000)),
                ('participant_34', models.CharField(max_length=1000)),
                ('participant_35', models.CharField(max_length=1000)),
                ('participant_36', models.CharField(max_length=1000)),
                ('participant_37', models.CharField(max_length=1000)),
                ('participant_38', models.CharField(max_length=1000)),
                ('participant_39', models.CharField(max_length=1000)),
                ('participant_40', models.CharField(max_length=1000)),
                ('participant_41', models.CharField(max_length=1000)),
                ('participant_42', models.CharField(max_length=1000)),
                ('participant_43', models.CharField(max_length=1000)),
                ('participant_44', models.CharField(max_length=1000)),
                ('participant_45', models.CharField(max_length=1000)),
                ('participant_46', models.CharField(max_length=1000)),
                ('participant_47', models.CharField(max_length=1000)),
                ('participant_48', models.CharField(max_length=1000)),
                ('participant_49', models.CharField(max_length=1000)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('image',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='librarybot.ImageUpload')),
            ],
        ),
        migrations.DeleteModel(name='Event', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('pywolf', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='MSysMessageSet',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('system_message_set_name', models.CharField(max_length=100)),
                ('commentary', models.TextField()),
                ('display_order', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='PLAccount',
            fields=[
                ('id',
                 models.CharField(max_length=255,
                                  primary_key=True,
                                  serialize=False)),
                ('password', models.CharField(max_length=255)),
                ('commentary', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Village',
            fields=[
                ('village_no',
                 models.AutoField(primary_key=True, serialize=False)),
                ('village_name', models.CharField(max_length=255)),
                ('discription', models.TextField(blank=True)),
                ('start_class',
                 models.SmallIntegerField(choices=[(1, '自動'), (2, '手動'),
                                                   (3, '定員')],
                                          default=1)),
                ('lowest_number', models.IntegerField()),
                ('into_password', models.CharField(max_length=255)),
                ('update_time', models.TimeField()),
                ('update_interval',
                 models.SmallIntegerField(choices=[(24, '24時間'), (48, '48時間'),
                                                   (72, '72時間')],
                                          default=24)),
                ('start_scheduled_date', models.DateField()),
                ('abolition_date', models.DateField()),
                ('voice_number_class',
                 models.SmallIntegerField(choices=[(1, '回数制'),
                                                   (2, 'ポイント(pt)制')],
                                          default=1)),
                ('system_message_no',
                 models.ForeignKey(
                     default=1,
                     on_delete=django.db.models.deletion.SET_DEFAULT,
                     to='pywolf.MSysMessageSet')),
                ('village_master_id',
                 models.ForeignKey(on_delete=models.SET('削除されたID'),
                                   to='pywolf.PLAccount')),
            ],
        ),
        migrations.RemoveField(
            model_name='choice',
            name='question',
        ),
        migrations.DeleteModel(name='Choice', ),
        migrations.DeleteModel(name='Question', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('animal', '0018_auto_20160602_1007'),
        ('assessment', '0007_auto_20160426_1124'),
        ('bmd', '0002_auto_20150723_1557'),
    ]

    operations = [

        # assessment changes
        migrations.RenameModel(old_name='BMD_Assessment_Settings',
                               new_name='AssessmentSettings'),
        migrations.RenameField(
            model_name='AssessmentSettings',
            old_name='BMDS_version',
            new_name='version',
        ),
        migrations.AlterField(
            model_name='assessmentsettings',
            name='assessment',
            field=models.OneToOneField(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='bmd_settings',
                to='assessment.Assessment'),
        ),
        migrations.AlterField(
            model_name='assessmentsettings',
            name='version',
            field=models.CharField(choices=[(b'BMDS230', b'BMDS v2.3.0'),
                                            (b'BMDS231', b'BMDS v2.3.1'),
                                            (b'BMDS240', b'BMDS v2.4.0'),
                                            (b'BMDS260', b'BMDS v2.6.0'),
                                            (b'BMDS2601', b'BMDS v2.6.0.1')],
                                   default=b'BMDS2601',
                                   max_length=10),
        ),
        migrations.RunPython(updateAssessmentVersion,
                             reverse_code=undoAssessmentVersion),

        # logic changes
        migrations.RemoveField(
            model_name='logicfield',
            name='function_name',
        ),
        migrations.RemoveField(
            model_name='logicfield',
            name='logic_id',
        ),
        migrations.AlterField(
            model_name='logicfield',
            name='assessment',
            field=models.ForeignKey(
                editable=False,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='bmd_logic_fields',
                to='assessment.Assessment'),
        ),
        migrations.AlterModelOptions(
            name='logicfield',
            options={'ordering': ('id', )},
        ),

        # session changes
        migrations.CreateModel(
            name='Session',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('version',
                 models.CharField(choices=[(b'BMDS230', b'BMDS v2.3.0'),
                                           (b'BMDS231', b'BMDS v2.3.1'),
                                           (b'BMDS240', b'BMDS v2.4.0'),
                                           (b'BMDS260', b'BMDS v2.6.0'),
                                           (b'BMDS2601', b'BMDS v2.6.0.1')],
                                  max_length=10)),
                ('bmrs',
                 django.contrib.postgres.fields.jsonb.JSONField(default=list)),
                ('date_executed', models.DateTimeField(null=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('last_updated', models.DateTimeField(auto_now=True)),
                ('dose_units',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='bmd_sessions',
                                   to='assessment.DoseUnits')),
                ('endpoint',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='bmd_sessions',
                                   to='animal.Endpoint')),
            ],
            options={
                'ordering': ('-last_updated', ),
                'get_latest_by': 'last_updated',
            },
        ),
        migrations.RemoveField(
            model_name='bmd_session',
            name='dose_units',
        ),
        migrations.RemoveField(
            model_name='bmd_session',
            name='endpoint',
        ),
        migrations.RemoveField(
            model_name='bmd_session',
            name='selected_model',
        ),
        migrations.RemoveField(
            model_name='bmd_model_run',
            name='BMD_session',
        ),
        migrations.DeleteModel(name='BMD_session', ),

        # model settings
        migrations.CreateModel(
            name='Model',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('model_id', models.PositiveSmallIntegerField()),
                ('bmr_id', models.PositiveSmallIntegerField()),
                ('name', models.CharField(max_length=25)),
                ('overrides',
                 django.contrib.postgres.fields.jsonb.JSONField(default=dict)),
                ('date_executed', models.DateTimeField(null=True)),
                ('execution_error', models.BooleanField(default=False)),
                ('dfile', models.TextField(blank=True)),
                ('outfile', models.TextField(blank=True)),
                ('output',
                 django.contrib.postgres.fields.jsonb.JSONField(default=dict)),
                ('plot', models.ImageField(blank=True,
                                           upload_to=b'bmds_plot')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('last_updated', models.DateTimeField(auto_now=True)),
                ('session',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='models',
                                   to='bmd.Session')),
            ],
            options={
                'ordering': ('model_id', 'bmr_id'),
                'get_latest_by': 'created',
            },
        ),
        migrations.DeleteModel(name='BMD_model_run', ),

        # selected model
        migrations.CreateModel(
            name='SelectedModel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('notes', models.TextField(blank=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('last_updated', models.DateTimeField(auto_now=True)),
                ('endpoint',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='bmd_model',
                     to='animal.Endpoint')),
                ('model',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='bmd.Model')),
            ],
            options={
                'get_latest_by': 'created',
            },
        ),
    ]
Beispiel #24
0
 def test_optimize_through_create(self):
     """
     We should be able to optimize away create/delete through a create or delete
     of a different model, but only if the create operation does not mention the model
     at all.
     """
     # These should work
     self.assertOptimizesTo(
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("size", models.IntegerField())]),
             migrations.DeleteModel("Foo"),
         ],
         [
             migrations.CreateModel("Bar", [("size", models.IntegerField())]),
         ],
     )
     self.assertOptimizesTo(
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("size", models.IntegerField())]),
             migrations.DeleteModel("Bar"),
             migrations.DeleteModel("Foo"),
         ],
         [],
     )
     self.assertOptimizesTo(
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("size", models.IntegerField())]),
             migrations.DeleteModel("Foo"),
             migrations.DeleteModel("Bar"),
         ],
         [],
     )
     # This should not work - FK should block it
     self.assertOptimizesTo(
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("other", models.ForeignKey("testapp.Foo", models.CASCADE))]),
             migrations.DeleteModel("Foo"),
         ],
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("other", models.ForeignKey("testapp.Foo", models.CASCADE))]),
             migrations.DeleteModel("Foo"),
         ],
     )
     # This should not work - bases should block it
     self.assertOptimizesTo(
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("size", models.IntegerField())], bases=("testapp.Foo", )),
             migrations.DeleteModel("Foo"),
         ],
         [
             migrations.CreateModel("Foo", [("name", models.CharField(max_length=255))]),
             migrations.CreateModel("Bar", [("size", models.IntegerField())], bases=("testapp.Foo", )),
             migrations.DeleteModel("Foo"),
         ],
     )
class Migration(migrations.Migration):

    dependencies = [
        ('main', '0005_squashed_v310_v313_updates'),
    ]

    replaces = replaces()

    operations = [
        # Release UJT unique_together constraint
        migrations.AlterUniqueTogether(
            name='unifiedjobtemplate',
            unique_together=set([]),
        ),
        # Inventory Refresh
        migrations.RenameField('InventorySource', 'group', 'deprecated_group'),
        migrations.AlterField(
            model_name='inventorysource',
            name='deprecated_group',
            field=models.OneToOneField(related_name='deprecated_inventory_source', on_delete=models.CASCADE, null=True, default=None, to='main.Group'),
        ),
        migrations.AlterField(
            model_name='inventorysource',
            name='inventory',
            field=models.ForeignKey(related_name='inventory_sources', default=None, to='main.Inventory', on_delete=models.CASCADE, null=True),
        ),
        # Smart Inventory
        migrations.AddField(
            model_name='inventory',
            name='host_filter',
            field=awx.main.fields.SmartFilterField(
                default=None, help_text='Filter that will be applied to the hosts of this inventory.', null=True, blank=True
            ),
        ),
        migrations.AddField(
            model_name='inventory',
            name='kind',
            field=models.CharField(
                default='',
                help_text='Kind of inventory being represented.',
                max_length=32,
                blank=True,
                choices=[('', 'Hosts have a direct link to this inventory.'), ('smart', 'Hosts for inventory generated using the host_filter property.')],
            ),
        ),
        migrations.CreateModel(
            name='SmartInventoryMembership',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('host', models.ForeignKey(related_name='+', on_delete=models.CASCADE, to='main.Host')),
            ],
        ),
        migrations.AddField(
            model_name='smartinventorymembership',
            name='inventory',
            field=models.ForeignKey(on_delete=models.CASCADE, related_name='+', to='main.Inventory'),
        ),
        migrations.AddField(
            model_name='host',
            name='smart_inventories',
            field=models.ManyToManyField(related_name='_host_smart_inventories_+', through='main.SmartInventoryMembership', to='main.Inventory'),
        ),
        migrations.AlterUniqueTogether(
            name='smartinventorymembership',
            unique_together=set([('host', 'inventory')]),
        ),
        # Background Inventory deletion
        migrations.AddField(
            model_name='inventory',
            name='pending_deletion',
            field=models.BooleanField(default=False, help_text='Flag indicating the inventory is being deleted.', editable=False),
        ),
        migrations.AlterField(
            model_name='inventory',
            name='organization',
            field=models.ForeignKey(
                related_name='inventories', on_delete=models.SET_NULL, to='main.Organization', help_text='Organization containing this inventory.', null=True
            ),
        ),
        # Facts
        migrations.AlterField(
            model_name='fact',
            name='facts',
            field=awx.main.fields.JSONBField(
                default=dict, help_text='Arbitrary JSON structure of module facts captured at timestamp for a single host.', blank=True
            ),
        ),
        migrations.AddField(
            model_name='host',
            name='ansible_facts',
            field=awx.main.fields.JSONBField(default=dict, help_text='Arbitrary JSON structure of most recent ansible_facts, per-host.', blank=True),
        ),
        migrations.AddField(
            model_name='host',
            name='ansible_facts_modified',
            field=models.DateTimeField(default=None, help_text='The date and time ansible_facts was last modified.', null=True, editable=False),
        ),
        migrations.AddField(
            model_name='job',
            name='use_fact_cache',
            field=models.BooleanField(
                default=False,
                help_text='If enabled, Tower will act as an Ansible Fact Cache Plugin; persisting facts at the end of a playbook run to the database and caching facts for use by Ansible.',
            ),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='use_fact_cache',
            field=models.BooleanField(
                default=False,
                help_text='If enabled, Tower will act as an Ansible Fact Cache Plugin; persisting facts at the end of a playbook run to the database and caching facts for use by Ansible.',
            ),
        ),
        migrations.RunSQL(
            [("CREATE INDEX host_ansible_facts_default_gin ON %s USING gin" "(ansible_facts jsonb_path_ops);", [AsIs(Host._meta.db_table)])],
            [('DROP INDEX host_ansible_facts_default_gin;', None)],
        ),
        # SCM file-based inventories
        migrations.AddField(
            model_name='inventorysource',
            name='scm_last_revision',
            field=models.CharField(default='', max_length=1024, editable=False, blank=True),
        ),
        migrations.AddField(
            model_name='inventorysource',
            name='source_project',
            field=models.ForeignKey(
                related_name='scm_inventory_sources',
                on_delete=models.CASCADE,
                default=None,
                blank=True,
                to='main.Project',
                help_text='Project containing inventory file used as source.',
                null=True,
            ),
        ),
        migrations.AddField(
            model_name='inventoryupdate',
            name='source_project_update',
            field=models.ForeignKey(
                related_name='scm_inventory_updates',
                on_delete=models.CASCADE,
                default=None,
                blank=True,
                to='main.ProjectUpdate',
                help_text='Inventory files from this Project Update were used for the inventory update.',
                null=True,
            ),
        ),
        migrations.AddField(
            model_name='project',
            name='inventory_files',
            field=awx.main.fields.JSONField(
                default=[],
                help_text='Suggested list of content that could be Ansible inventory in the project',
                verbose_name='Inventory Files',
                editable=False,
                blank=True,
            ),
        ),
        migrations.AlterField(
            model_name='inventorysource',
            name='source',
            field=models.CharField(
                default='',
                max_length=32,
                blank=True,
                choices=[
                    ('', 'Manual'),
                    ('file', 'File, Directory or Script'),
                    ('scm', 'Sourced from a Project'),
                    ('ec2', 'Amazon EC2'),
                    ('gce', 'Google Compute Engine'),
                    ('azure_rm', 'Microsoft Azure Resource Manager'),
                    ('vmware', 'VMware vCenter'),
                    ('satellite6', 'Red Hat Satellite 6'),
                    ('cloudforms', 'Red Hat CloudForms'),
                    ('openstack', 'OpenStack'),
                    ('custom', 'Custom Script'),
                ],
            ),
        ),
        migrations.AlterField(
            model_name='inventoryupdate',
            name='source',
            field=models.CharField(
                default='',
                max_length=32,
                blank=True,
                choices=[
                    ('', 'Manual'),
                    ('file', 'File, Directory or Script'),
                    ('scm', 'Sourced from a Project'),
                    ('ec2', 'Amazon EC2'),
                    ('gce', 'Google Compute Engine'),
                    ('azure_rm', 'Microsoft Azure Resource Manager'),
                    ('vmware', 'VMware vCenter'),
                    ('satellite6', 'Red Hat Satellite 6'),
                    ('cloudforms', 'Red Hat CloudForms'),
                    ('openstack', 'OpenStack'),
                    ('custom', 'Custom Script'),
                ],
            ),
        ),
        migrations.AlterField(
            model_name='inventorysource',
            name='source_path',
            field=models.CharField(default='', max_length=1024, blank=True),
        ),
        migrations.AlterField(
            model_name='inventoryupdate',
            name='source_path',
            field=models.CharField(default='', max_length=1024, blank=True),
        ),
        migrations.AlterField(
            model_name='unifiedjob',
            name='launch_type',
            field=models.CharField(
                default='manual',
                max_length=20,
                editable=False,
                choices=[
                    ('manual', 'Manual'),
                    ('relaunch', 'Relaunch'),
                    ('callback', 'Callback'),
                    ('scheduled', 'Scheduled'),
                    ('dependency', 'Dependency'),
                    ('workflow', 'Workflow'),
                    ('sync', 'Sync'),
                    ('scm', 'SCM Update'),
                ],
            ),
        ),
        migrations.AddField(
            model_name='inventorysource',
            name='update_on_project_update',
            field=models.BooleanField(default=False),
        ),
        # Named URL
        migrations.AlterField(
            model_name='notificationtemplate',
            name='name',
            field=models.CharField(max_length=512),
        ),
        migrations.AlterField(
            model_name='notificationtemplate',
            name='organization',
            field=models.ForeignKey(related_name='notification_templates', on_delete=models.CASCADE, to='main.Organization', null=True),
        ),
        migrations.AlterUniqueTogether(
            name='notificationtemplate',
            unique_together=set([('organization', 'name')]),
        ),
        # Add verbosity option to inventory updates
        migrations.AddField(
            model_name='inventorysource',
            name='verbosity',
            field=models.PositiveIntegerField(default=1, blank=True, choices=[(0, '0 (WARNING)'), (1, '1 (INFO)'), (2, '2 (DEBUG)')]),
        ),
        migrations.AddField(
            model_name='inventoryupdate',
            name='verbosity',
            field=models.PositiveIntegerField(default=1, blank=True, choices=[(0, '0 (WARNING)'), (1, '1 (INFO)'), (2, '2 (DEBUG)')]),
        ),
        # Job Templates
        migrations.AddField(
            model_name='jobtemplate',
            name='ask_verbosity_on_launch',
            field=models.BooleanField(default=False),
        ),
        # Workflows
        migrations.AddField(
            model_name='workflowjob',
            name='allow_simultaneous',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='workflowjobtemplate',
            name='allow_simultaneous',
            field=models.BooleanField(default=False),
        ),
        # Permission and Deprecated Field Removal
        migrations.RemoveField(
            model_name='permission',
            name='created_by',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='inventory',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='modified_by',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='project',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='tags',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='team',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='user',
        ),
        migrations.RemoveField(
            model_name='activitystream',
            name='permission',
        ),
        migrations.RemoveField(
            model_name='credential',
            name='deprecated_team',
        ),
        migrations.RemoveField(
            model_name='credential',
            name='deprecated_user',
        ),
        migrations.RemoveField(
            model_name='organization',
            name='deprecated_admins',
        ),
        migrations.RemoveField(
            model_name='organization',
            name='deprecated_projects',
        ),
        migrations.RemoveField(
            model_name='organization',
            name='deprecated_users',
        ),
        migrations.RemoveField(
            model_name='team',
            name='deprecated_projects',
        ),
        migrations.RemoveField(
            model_name='team',
            name='deprecated_users',
        ),
        migrations.DeleteModel(
            name='Permission',
        ),
        # Insights
        migrations.AddField(
            model_name='host',
            name='insights_system_id',
            field=models.TextField(default=None, help_text='Red Hat Insights host unique identifier.', null=True, db_index=True, blank=True),
        ),
        migrations.AddField(
            model_name='inventory',
            name='insights_credential',
            field=models.ForeignKey(
                related_name='insights_inventories',
                on_delete=models.SET_NULL,
                default=None,
                blank=True,
                to='main.Credential',
                help_text='Credentials to be used by hosts belonging to this inventory when accessing Red Hat Insights API.',
                null=True,
            ),
        ),
        migrations.AlterField(
            model_name='inventory',
            name='kind',
            field=models.CharField(
                default='',
                help_text='Kind of inventory being represented.',
                max_length=32,
                blank=True,
                choices=[('', 'Hosts have a direct link to this inventory.'), ('smart', 'Hosts for inventory generated using the host_filter property.')],
            ),
        ),
        # Timeout help text update
        migrations.AlterField(
            model_name='inventorysource',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='inventoryupdate',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='job',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='jobtemplate',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='project',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='projectupdate',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AddField(
            model_name='adhoccommand',
            name='diff_mode',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='ask_diff_mode_on_launch',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='job',
            name='diff_mode',
            field=models.BooleanField(
                default=False, help_text='If enabled, textual changes made to any templated files on the host are shown in the standard output'
            ),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='diff_mode',
            field=models.BooleanField(
                default=False, help_text='If enabled, textual changes made to any templated files on the host are shown in the standard output'
            ),
        ),
        migrations.CreateModel(
            name='CredentialType',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('created', models.DateTimeField(default=None, editable=False)),
                ('modified', models.DateTimeField(default=None, editable=False)),
                ('description', models.TextField(default='', blank=True)),
                ('name', models.CharField(max_length=512)),
                (
                    'kind',
                    models.CharField(
                        max_length=32,
                        choices=[
                            ('ssh', 'Machine'),
                            ('vault', 'Vault'),
                            ('net', 'Network'),
                            ('scm', 'Source Control'),
                            ('cloud', 'Cloud'),
                            ('insights', 'Insights'),
                        ],
                    ),
                ),
                ('managed_by_tower', models.BooleanField(default=False, editable=False)),
                (
                    'inputs',
                    awx.main.fields.CredentialTypeInputField(
                        default=dict,
                        blank=True,
                        help_text='Enter inputs using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.',
                    ),
                ),
                (
                    'injectors',
                    awx.main.fields.CredentialTypeInjectorField(
                        default=dict,
                        blank=True,
                        help_text='Enter injectors using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.',
                    ),
                ),
                (
                    'created_by',
                    models.ForeignKey(
                        related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_created+",
                        on_delete=models.SET_NULL,
                        default=None,
                        editable=False,
                        to=settings.AUTH_USER_MODEL,
                        null=True,
                    ),
                ),
                (
                    'modified_by',
                    models.ForeignKey(
                        related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_modified+",
                        on_delete=models.SET_NULL,
                        default=None,
                        editable=False,
                        to=settings.AUTH_USER_MODEL,
                        null=True,
                    ),
                ),
                (
                    'tags',
                    taggit.managers.TaggableManager(
                        to='taggit.Tag', through='taggit.TaggedItem', blank=True, help_text='A comma-separated list of tags.', verbose_name='Tags'
                    ),
                ),
            ],
            options={
                'ordering': ('kind', 'name'),
            },
        ),
        migrations.AlterModelOptions(
            name='credential',
            options={'ordering': ('name',)},
        ),
        migrations.AddField(
            model_name='credential',
            name='inputs',
            field=awx.main.fields.CredentialInputField(default=dict, blank=True),
        ),
        migrations.AddField(
            model_name='credential',
            name='credential_type',
            field=models.ForeignKey(related_name='credentials', on_delete=models.CASCADE, to='main.CredentialType', null=True),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='job',
            name='vault_credential',
            field=models.ForeignKey(
                related_name='jobs_as_vault_credential+', on_delete=models.SET_NULL, default=None, blank=True, to='main.Credential', null=True
            ),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='vault_credential',
            field=models.ForeignKey(
                related_name='jobtemplates_as_vault_credential+', on_delete=models.SET_NULL, default=None, blank=True, to='main.Credential', null=True
            ),
        ),
        migrations.AddField(
            model_name='job',
            name='extra_credentials',
            field=models.ManyToManyField(related_name='_job_extra_credentials_+', to='main.Credential'),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='extra_credentials',
            field=models.ManyToManyField(related_name='_jobtemplate_extra_credentials_+', to='main.Credential'),
        ),
        migrations.AlterUniqueTogether(
            name='credential',
            unique_together=set([('organization', 'name', 'credential_type')]),
        ),
        migrations.AlterField(
            model_name='credential',
            name='become_method',
            field=models.CharField(
                default='',
                help_text='Privilege escalation method.',
                max_length=32,
                blank=True,
                choices=[
                    ('', 'None'),
                    ('sudo', 'Sudo'),
                    ('su', 'Su'),
                    ('pbrun', 'Pbrun'),
                    ('pfexec', 'Pfexec'),
                    ('dzdo', 'DZDO'),
                    ('pmrun', 'Pmrun'),
                    ('runas', 'Runas'),
                ],
            ),
        ),
        # Connecting activity stream
        migrations.AddField(
            model_name='activitystream',
            name='credential_type',
            field=models.ManyToManyField(to='main.CredentialType', blank=True),
        ),
        migrations.CreateModel(
            name='InstanceGroup',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=250)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('modified', models.DateTimeField(auto_now=True)),
                (
                    'controller',
                    models.ForeignKey(
                        related_name='controlled_groups',
                        on_delete=models.CASCADE,
                        default=None,
                        editable=False,
                        to='main.InstanceGroup',
                        help_text='Instance Group to remotely control this group.',
                        null=True,
                    ),
                ),
                (
                    'instances',
                    models.ManyToManyField(
                        help_text='Instances that are members of this InstanceGroup', related_name='rampart_groups', editable=False, to='main.Instance'
                    ),
                ),
            ],
        ),
        migrations.AddField(
            model_name='inventory',
            name='instance_groups',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='unifiedjob',
            name='instance_group',
            field=models.ForeignKey(
                on_delete=models.SET_NULL, default=None, blank=True, to='main.InstanceGroup', help_text='The Instance group the job was run under', null=True
            ),
        ),
        migrations.AddField(
            model_name='unifiedjobtemplate',
            name='instance_groups',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='organization',
            name='instance_groups',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='activitystream',
            name='instance_group',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='instance',
            name='last_isolated_check',
            field=models.DateTimeField(editable=False, null=True),
        ),
        # Migrations that don't change db schema but simply to make Django ORM happy.
        # e.g. Choice updates, help_text updates, etc.
        migrations.AlterField(
            model_name='schedule',
            name='enabled',
            field=models.BooleanField(default=True, help_text='Enables processing of this schedule.'),
        ),
        migrations.AlterField(
            model_name='unifiedjob',
            name='execution_node',
            field=models.TextField(default='', help_text='The node the job executed on.', editable=False, blank=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('catalogues', '0029_school_general_information_address_icon'),
    ]

    operations = [
        migrations.CreateModel(
            name='School_events_april',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_august',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_december',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_february',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_january',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_july',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_june',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_march',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_may',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_november',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_october',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='School_events_september',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('event_title', models.CharField(max_length=200)),
                ('event_description', models.TextField()),
                ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('event_date', models.DateTimeField(blank=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='school_events_calendar',
            name='author',
        ),
        migrations.DeleteModel(
            name='School_events_calendar',
        ),
    ]
Beispiel #27
0
class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0001_initial'),
        ('cost_tracking', '0002_price_list'),
    ]

    operations = [
        migrations.CreateModel(
            name='DefaultPriceListItem',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
                ('uuid',
                 uuidfield.fields.UUIDField(unique=True,
                                            max_length=32,
                                            editable=False,
                                            blank=True)),
                ('key', models.CharField(max_length=50)),
                ('value',
                 models.DecimalField(default=0,
                                     max_digits=16,
                                     decimal_places=8)),
                ('units', models.CharField(max_length=30, blank=True)),
                ('item_type',
                 models.CharField(default=b'other',
                                  max_length=10,
                                  choices=[(b'flavor', b'flavor'),
                                           (b'storage', b'storage'),
                                           (b'license', b'license'),
                                           (b'supported', b'supported'),
                                           (b'other', b'other')])),
                ('is_manually_input', models.BooleanField(default=False)),
                ('service_content_type',
                 models.ForeignKey(to='contenttypes.ContentType')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model, ),
        ),
        migrations.CreateModel(
            name='ResourcePriceItem',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
                ('uuid',
                 uuidfield.fields.UUIDField(unique=True,
                                            max_length=32,
                                            editable=False,
                                            blank=True)),
                ('object_id', models.PositiveIntegerField()),
                ('content_type',
                 models.ForeignKey(to='contenttypes.ContentType')),
                ('item',
                 models.ForeignKey(related_name='resource_price_items',
                                   to='cost_tracking.PriceListItem')),
            ],
            options={},
            bases=(models.Model, ),
        ),
        migrations.AlterUniqueTogether(
            name='pricelist',
            unique_together=None,
        ),
        migrations.RemoveField(
            model_name='pricelist',
            name='content_type',
        ),
        migrations.AlterUniqueTogether(
            name='resourcepriceitem',
            unique_together=set([('item', 'content_type', 'object_id')]),
        ),
        migrations.RenameField(
            model_name='priceestimate',
            old_name='is_manually_inputed',
            new_name='is_manually_input',
        ),
        migrations.AddField(
            model_name='pricelistitem',
            name='content_type',
            field=models.ForeignKey(default=1, to='contenttypes.ContentType'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='pricelistitem',
            name='item_type',
            field=models.CharField(default=b'other',
                                   max_length=10,
                                   choices=[(b'flavor', b'flavor'),
                                            (b'storage', b'storage'),
                                            (b'license', b'license'),
                                            (b'supported', b'supported'),
                                            (b'other', b'other')]),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='pricelistitem',
            name='key',
            field=models.CharField(default='test-key', max_length=50),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='pricelistitem',
            name='object_id',
            field=models.PositiveIntegerField(default=1),
            preserve_default=False,
        ),
        migrations.AlterUniqueTogether(
            name='priceestimate',
            unique_together=set([('content_type', 'object_id', 'month', 'year',
                                  'is_manually_input')]),
        ),
        migrations.AlterUniqueTogether(
            name='pricelistitem',
            unique_together=set([('key', 'content_type', 'object_id')]),
        ),
        migrations.RemoveField(
            model_name='pricelistitem',
            name='price_list',
        ),
        migrations.DeleteModel(name='PriceList', ),
        migrations.RemoveField(
            model_name='pricelistitem',
            name='name',
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('bookkeeping', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Cbo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('code', models.CharField(blank=True, max_length=8, null=True)),
                ('location', location_field.models.spatial.LocationField(default=(1.0, 1.0), srid=4326)),
                ('place', models.CharField(max_length=100)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
                ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='bookkeeping.Cbo')),
                ('users', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cbos', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
            managers=[
                ('_default_manager', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='Item',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(blank=True, max_length=64, null=True)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=16, null=True)),
                ('total_cost', models.DecimalField(decimal_places=2, max_digits=16, null=True)),
                ('quantity', models.IntegerField(blank=True, null=True)),
                ('unitcost', models.DecimalField(decimal_places=2, max_digits=16, null=True)),
                ('image', versatileimagefield.fields.VersatileImageField(upload_to='files/%Y/%m/%d')),
                ('enabled', models.BooleanField(default=True)),
                ('description', models.CharField(blank=True, max_length=64, null=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.DeleteModel(
            name='_Tagulous_InventoryItem_tags',
        ),
        migrations.RemoveField(
            model_name='business',
            name='parent',
        ),
        migrations.DeleteModel(
            name='Customer',
        ),
        migrations.RemoveField(
            model_name='entryitem',
            name='credit_account',
        ),
        migrations.RemoveField(
            model_name='entryitem',
            name='debit_account',
        ),
        migrations.RemoveField(
            model_name='entryitem',
            name='entry',
        ),
        migrations.RemoveField(
            model_name='entryitem',
            name='item',
        ),
        migrations.RemoveField(
            model_name='image',
            name='post',
        ),
        migrations.RemoveField(
            model_name='inventoryitem',
            name='tags',
        ),
        migrations.RemoveField(
            model_name='inventorystock',
            name='item',
        ),
        migrations.DeleteModel(
            name='InventoryVendor',
        ),
        migrations.RemoveField(
            model_name='account',
            name='business',
        ),
        migrations.AddField(
            model_name='account',
            name='amount_paid',
            field=models.DecimalField(decimal_places=2, default=Decimal('0'), max_digits=16),
        ),
        migrations.AddField(
            model_name='account',
            name='amount_remaining',
            field=models.DecimalField(decimal_places=2, default=Decimal('0'), max_digits=16),
        ),
        migrations.AddField(
            model_name='account',
            name='balance',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='account',
            name='customer_mobile',
            field=models.CharField(blank=True, max_length=8, null=True),
        ),
        migrations.AddField(
            model_name='account',
            name='entries',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cbo_entries', to='bookkeeping.Entry'),
        ),
        migrations.AddField(
            model_name='account',
            name='quantity',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='account',
            name='total_price',
            field=models.DecimalField(decimal_places=2, default=Decimal('0'), max_digits=16),
        ),
        migrations.AddField(
            model_name='account',
            name='type',
            field=models.CharField(blank=True, max_length=8, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='amount',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='amount_paid',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='amount_paying',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='amount_remaining',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='credit',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='credits', to='bookkeeping.Account'),
        ),
        migrations.AddField(
            model_name='entry',
            name='customer_mobile',
            field=models.CharField(blank=True, max_length=8, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='debit',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='debits', to='bookkeeping.Account'),
        ),
        migrations.AddField(
            model_name='entry',
            name='name',
            field=models.CharField(blank=True, max_length=8, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='quantity',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='sale_value',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='total_price',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='transaction_type',
            field=models.CharField(blank=True, max_length=8, null=True),
        ),
        migrations.AddField(
            model_name='entry',
            name='type',
            field=models.CharField(blank=True, max_length=8, null=True),
        ),
        migrations.AlterField(
            model_name='account',
            name='order',
            field=models.CharField(blank=True, editable=False, max_length=8, null=True),
        ),
        migrations.AlterField(
            model_name='entry',
            name='closing',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AlterField(
            model_name='entry',
            name='opening',
            field=models.DecimalField(decimal_places=2, max_digits=16, null=True),
        ),
        migrations.AlterField(
            model_name='entry',
            name='user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.DeleteModel(
            name='Business',
        ),
        migrations.DeleteModel(
            name='EntryItem',
        ),
        migrations.DeleteModel(
            name='Image',
        ),
        migrations.DeleteModel(
            name='InventoryItem',
        ),
        migrations.DeleteModel(
            name='InventoryStock',
        ),
        migrations.AddField(
            model_name='item',
            name='credit_account',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='credit_items', to='bookkeeping.Account'),
        ),
        migrations.AddField(
            model_name='item',
            name='debit_account',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='debit_items', to='bookkeeping.Account'),
        ),
        migrations.AddField(
            model_name='item',
            name='debtors',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='debtors', to='bookkeeping.Account'),
        ),
        migrations.AddField(
            model_name='item',
            name='installments',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='installment_payments', to='bookkeeping.Entry'),
        ),
        migrations.AddField(
            model_name='item',
            name='inventory',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='inventory_updates', to='bookkeeping.Entry'),
        ),
        migrations.AddField(
            model_name='item',
            name='sales',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sales', to='bookkeeping.Entry'),
        ),
        migrations.AddField(
            model_name='account',
            name='cbo',
            field=models.ForeignKey(db_column='cbo', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cbo_accounts', to='bookkeeping.Cbo'),
        ),
        migrations.AddField(
            model_name='entry',
            name='cbo',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='bookkeeping.Cbo'),
        ),
        migrations.AddField(
            model_name='entry',
            name='item',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='entry_items', to='bookkeeping.Item'),
        ),
    ]
Beispiel #29
0
class Migration(migrations.Migration):

    dependencies = [
        ('admin', '0003_logentry_add_action_flag_choices'),
        ('core', '0013_auto_20181008_1949'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='ctp',
            name='criado_por',
        ),
        migrations.RemoveField(
            model_name='ctp',
            name='formato',
        ),
        migrations.RemoveField(
            model_name='ctp',
            name='lineatura',
        ),
        migrations.RemoveField(
            model_name='fineart',
            name='criado_por',
        ),
        migrations.RemoveField(
            model_name='fineart',
            name='formato',
        ),
        migrations.RemoveField(
            model_name='fineart',
            name='papel',
        ),
        migrations.RemoveField(
            model_name='fotolito',
            name='criado_por',
        ),
        migrations.RemoveField(
            model_name='fotolito',
            name='formato',
        ),
        migrations.RemoveField(
            model_name='fotolito',
            name='lineatura',
        ),
        migrations.RemoveField(
            model_name='pf',
            name='user_ptr',
        ),
        migrations.RemoveField(
            model_name='pj',
            name='user_ptr',
        ),
        migrations.RemoveField(
            model_name='provadecor',
            name='criado_por',
        ),
        migrations.RemoveField(
            model_name='provadecor',
            name='formato',
        ),
        migrations.RemoveField(
            model_name='provadecor',
            name='papel',
        ),
        migrations.RemoveField(
            model_name='userprofile',
            name='user_ptr',
        ),
        migrations.DeleteModel(
            name='Ctp',
        ),
        migrations.DeleteModel(
            name='FineArt',
        ),
        migrations.DeleteModel(
            name='Formato',
        ),
        migrations.DeleteModel(
            name='Fotolito',
        ),
        migrations.DeleteModel(
            name='Lineatura',
        ),
        migrations.DeleteModel(
            name='Papel',
        ),
        migrations.DeleteModel(
            name='PF',
        ),
        migrations.DeleteModel(
            name='PJ',
        ),
        migrations.DeleteModel(
            name='ProvaDeCor',
        ),
        migrations.DeleteModel(
            name='UserProfile',
        ),
    ]
Beispiel #30
0
class Migration(migrations.Migration):

    dependencies = [
        ('geography', '0007_new_countries_remove_regions'),
        ('products', '0009_auto_20161103_1038'),
        ('markets', '0048_auto_20161104_1149'),
        ('reversion', '0001_squashed_0004_auto_20160611_1202'),
    ]

    operations = [
        migrations.CreateModel(
            name='PublishedMarket',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('last_modified', models.DateTimeField(auto_now=True)),
                ('name', models.CharField(max_length=200)),
                ('slug', models.SlugField(max_length=200)),
                ('description',
                 models.TextField(verbose_name='e-Marketplace Description')),
                ('web_address', models.URLField()),
                ('signup_address',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Explore the marketplace')),
                ('web_traffic',
                 models.FloatField(blank=True,
                                   default=0,
                                   help_text='in millions',
                                   null=True,
                                   verbose_name='Number of registered users')),
                ('customer_support_hours',
                 models.CharField(blank=True, max_length=150, null=True)),
                ('seller_support_hours',
                 models.CharField(blank=True, max_length=150, null=True)),
                ('customer_demographics',
                 ckeditor.fields.RichTextField(blank=True, null=True)),
                ('marketing_merchandising',
                 ckeditor.fields.RichTextField(blank=True, null=True)),
                ('product_details_upload_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('payment_terms_days',
                 models.IntegerField(
                     blank=True,
                     help_text='in days',
                     null=True,
                     verbose_name='Payment terms - sale to payment duration')),
                ('logistics_structure_notes',
                 models.CharField(blank=True,
                                  max_length=200,
                                  null=True,
                                  verbose_name='notes')),
                ('commission_lower', models.FloatField(blank=True, null=True)),
                ('commission_upper', models.FloatField(blank=True, null=True)),
                ('commission_notes',
                 models.CharField(blank=True, max_length=255, null=True)),
                ('ukti_terms',
                 ckeditor.fields.RichTextField(
                     blank=True,
                     null=True,
                     verbose_name=
                     'Department of International Trade special terms')),
                ('local_bank_account_needed',
                 models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                     default=False,
                                     verbose_name='A local bank account')),
                ('local_bank_account_needed_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('local_incorporation_needed',
                 models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                     default=False,
                                     verbose_name='A local company')),
                ('local_incorporation_needed_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('exclusivity_required',
                 models.BooleanField(
                     choices=[(True, 'Yes'), (False, 'No')],
                     default=False,
                     verbose_name='Product exclusivity required')),
                ('exclusivity_required_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('translation_verbal',
                 models.BooleanField(
                     choices=[(True, 'Yes'), (False, 'No')],
                     default=False,
                     verbose_name='To negotiate with the marketplace')),
                ('translation_verbal_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('translation_application_process',
                 models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                     default=False,
                                     verbose_name='To apply to join')),
                ('translation_application_process_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('translation_product_content',
                 models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                     default=False,
                                     verbose_name='For product content')),
                ('translation_product_content_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('translation_seller_support',
                 models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                     default=False,
                                     verbose_name='For seller support')),
                ('translation_seller_support_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('payment_terms_rate_fixed',
                 models.BooleanField(
                     choices=[(True, 'Yes'), (False, 'No')],
                     default=False,
                     verbose_name='Payment Terms - Exchange rate fixed')),
                ('payment_terms_rate_fixed_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('registration_fees',
                 models.FloatField(default=0,
                                   verbose_name='One off registration fee')),
                ('registration_fees_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('fee_per_listing',
                 models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                     default=False,
                                     verbose_name='Fee per Listing')),
                ('fee_per_listing_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('membership_fees',
                 models.FloatField(default=0, verbose_name='Membership fees')),
                ('membership_fees_frequency',
                 models.CharField(blank=True,
                                  choices=[('D', 'daily'), ('W', 'weekly'),
                                           ('M', 'monthly'),
                                           ('Q', 'quarterly'),
                                           ('Y', 'annually')],
                                  max_length=1,
                                  null=True)),
                ('deposit', models.FloatField(default=0)),
                ('deposit_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('shipping_tracking_required',
                 models.BooleanField(
                     choices=[(True, 'Yes'), (False, 'No')],
                     default=False,
                     verbose_name='Shipping Tracking Required')),
                ('shipping_tracking_required_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('local_return_address_required',
                 models.BooleanField(
                     choices=[(True, 'Yes'), (False, 'No')],
                     default=False,
                     verbose_name='A local address to handle returns?')),
                ('local_return_address_required_notes',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Notes')),
                ('dit_advisor_tip',
                 models.TextField(
                     blank=True,
                     null=True,
                     verbose_name=
                     'Department of International Trade advisor tip')),
                ('countries_served',
                 models.ManyToManyField(blank=True,
                                        to='geography.Country',
                                        verbose_name='Operating Countries')),
                ('currency_of_payments',
                 models.ManyToManyField(
                     blank=True,
                     to='markets.Currency',
                     verbose_name='Payment terms - Currency of payments')),
                ('customer_support_channels',
                 models.ManyToManyField(
                     blank=True,
                     related_name='markets_publishedmarket_customer_related',
                     to='markets.SupportChannel')),
                ('deposit_currency',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='markets_publishedmarket_deposit_currency',
                     to='markets.Currency')),
                ('famous_brands_on_marketplace',
                 models.ManyToManyField(blank=True, to='markets.Brand')),
                ('logistics_structure',
                 models.ManyToManyField(blank=True,
                                        to='markets.LogisticsModel')),
                ('logo',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='markets.Logo')),
                ('membership_fees_currency',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name=
                     'markets_publishedmarket_membership_fees_currency',
                     to='markets.Currency')),
                ('product_categories',
                 models.ManyToManyField(blank=True, to='products.Category')),
                ('product_details_upload',
                 models.ManyToManyField(
                     blank=True,
                     to='markets.UploadMethod',
                     verbose_name='Upload product details via')),
                ('product_type',
                 models.ManyToManyField(blank=True,
                                        to='products.Type',
                                        verbose_name='Product Positioning')),
                ('prohibited_items',
                 models.ManyToManyField(blank=True,
                                        to='products.ProhibitedItem')),
                ('registration_fees_currency',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name=
                     'markets_publishedmarket_registration_fees_currency',
                     to='markets.Currency')),
                ('seller_model',
                 models.ManyToManyField(blank=True, to='markets.SellerModel')),
                ('seller_support_channels',
                 models.ManyToManyField(
                     blank=True,
                     related_name='markets_publishedmarket_seller_related',
                     to='markets.SupportChannel')),
            ],
            options={
                'abstract': False,
                'ordering': ('-name', ),
            },
        ),
        migrations.DeleteModel(name='MarketForSignOff', ),
        migrations.AlterModelOptions(
            name='market',
            options={'permissions': (('can_publish', 'Can publish Market'), )},
        ),
        migrations.AddField(
            model_name='market',
            name='live_version',
            field=models.IntegerField(null=True),
        ),
    ]