Exemple #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('phonelog', '0006_usererrorentry_context_node'),
    ]

    operations = [
        migrations.AlterField(
            model_name='devicereportentry',
            name='date',
            field=models.DateTimeField(),
            preserve_default=True,
        ),
        migrations.AlterField(
            model_name='devicereportentry',
            name='type',
            field=models.CharField(max_length=32),
            preserve_default=True,
        ),
        AlterIndexIfNotExists(
            name='devicereportentry',
            index_together=set([('domain', 'device_id'), ('domain', 'date'),
                                ('domain', 'type'), ('domain', 'username')]),
        ),
        # cleanup other index seen locally or on prod
        HqRunSQL("DROP INDEX IF EXISTS phonelog_devicereportentry_type",
                 "SELECT 1"),
        HqRunSQL("DROP INDEX IF EXISTS phonelog_devicereportentry_date",
                 "SELECT 1"),
        HqRunSQL(
            "DROP INDEX IF EXISTS phonelog_devicereportentry_xform_id_13bf0bbf30cb3e80_like",
            "SELECT 1"),
    ]
Exemple #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('locations', '0008_increase_name_max_length'),
    ]

    operations = [
        AlterIndexIfNotExists(
            name='sqllocation',
            index_together=set([('tree_id', 'lft', 'rght')]),
        ),
    ]
class Migration(migrations.Migration):

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

    operations = [
        migrations.AlterField(
            model_name='devicereportentry',
            name='device_id',
            field=models.CharField(max_length=50, null=True),
            preserve_default=True,
        ),
        migrations.AlterField(
            model_name='devicereportentry',
            name='domain',
            field=models.CharField(max_length=100),
            preserve_default=True,
        ),
        migrations.AlterField(
            model_name='devicereportentry',
            name='user_id',
            field=models.CharField(max_length=50, null=True),
            preserve_default=True,
        ),
        migrations.AlterField(
            model_name='devicereportentry',
            name='username',
            field=models.CharField(max_length=100, null=True),
            preserve_default=True,
        ),
        AlterIndexIfNotExists(
            name='devicereportentry',
            index_together=set([('domain', 'device_id'), ('domain', 'date'),
                                ('domain', 'username')]),
        ),
    ]