# Generated by Django 2.2.25 on 2022-02-02 13:45

import corehq.motech.dhis2.repeaters
from django.db import migrations, models
import jsonfield.fields


class Migration(migrations.Migration):

    dependencies = [
        ('repeaters', '0005_rename_repeaterstub_to_sql_repeater'),
    ]

    operations = [
        migrations.CreateModel(
            name='SQLAppStructureRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlrepeater',),
        ),
        migrations.CreateModel(
            name='SQLCaseRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlrepeater',),
        ),
        migrations.CreateModel(
            name='SQLFormRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlrepeater',),
        ),
        migrations.CreateModel(
            name='SQLLocationRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlrepeater',),
        ),
        migrations.CreateModel(
            name='SQLShortFormRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlrepeater',),
        ),
        migrations.CreateModel(
            name='SQLUserRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlrepeater',),
        ),
        migrations.RemoveIndex(
            model_name='sqlrepeater',
            name='repeaters_r_domain_6fd257_idx',
        ),
        migrations.RemoveIndex(
            model_name='sqlrepeater',
            name='repeaters_r_repeate_a7db73_idx',
        ),
        migrations.AddField(
            model_name='sqlrepeater',
            name='format',
            field=models.CharField(blank=True, max_length=64, null=True),
        ),
        migrations.AddField(
            model_name='sqlrepeater',
            name='options',
            field=jsonfield.fields.JSONField(default=dict),
        ),
        migrations.AddField(
            model_name='sqlrepeater',
            name='repeater_type',
            field=models.CharField(blank=True, max_length=64),
        ),
        migrations.AlterField(
            model_name='sqlrepeater',
            name='domain',
            field=models.CharField(db_index=True, max_length=126),
        ),
        migrations.AlterField(
            model_name='sqlrepeater',
            name='repeater_id',
            field=models.CharField(max_length=36, unique=True),
        ),
        migrations.CreateModel(
            name='SQLCreateCaseRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlcaserepeater',),
        ),
        migrations.CreateModel(
            name='SQLDhis2EntityRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlcaserepeater', corehq.motech.dhis2.repeaters.SQLDhis2Instance),
        ),
        migrations.CreateModel(
            name='SQLDhis2Repeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlformrepeater', corehq.motech.dhis2.repeaters.SQLDhis2Instance),
        ),
        migrations.CreateModel(
            name='SQLOpenmrsRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlcaserepeater',),
        ),
        migrations.CreateModel(
            name='SQLUpdateCaseRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlcaserepeater',),
        ),
        migrations.CreateModel(
            name='SQLDataRegistryCaseUpdateRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlcreatecaserepeater',),
        ),
        migrations.CreateModel(
            name='SQLReferCaseRepeater',
            fields=[
            ],
            options={
                'proxy': True,
                'indexes': [],
                'constraints': [],
            },
            bases=('repeaters.sqlcreatecaserepeater',),
        ),
    ]

@@ -38,15 +38,15 @@
 02-0
-2 13:45
+3 16:49
 %0A%0Aim
@@ -2476,36 +2476,24 @@
 s.CharField(
-blank=True, 
 max_length=6
@@ -2851,32 +2851,278 @@
 64),%0A        ),%0A
+        migrations.AddField(%0A            model_name='sqlrepeater',%0A            name='request_method',%0A            field=models.CharField(choices=%5B('DELETE', 'DELETE'), ('POST', 'POST'), ('PUT', 'PUT')%5D, default='POST', max_length=16),%0A        ),%0A
         migratio

update migrations