onadata.apps.main.migrations package¶
Submodules¶
onadata.apps.main.migrations.0001_initial module¶
- class onadata.apps.main.migrations.0001_initial.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('logger', '0001_initial'), ('auth', '0001_initial'), ('auth', '__first__')]¶
- operations = [<CreateModel name='Audit', fields=[('id', <django.db.models.fields.AutoField>), ('json', <django.db.models.fields.json.JSONField>)], options={}, bases=(<class 'django.db.models.base.Model'>,)>, <CreateModel name='MetaData', fields=[('id', <django.db.models.fields.AutoField>), ('data_type', <django.db.models.fields.CharField>), ('data_value', <django.db.models.fields.CharField>), ('data_file', <django.db.models.fields.files.FileField>), ('data_file_type', <django.db.models.fields.CharField>), ('file_hash', <django.db.models.fields.CharField>), ('xform', <django.db.models.fields.related.ForeignKey>)], options={}, bases=(<class 'django.db.models.base.Model'>,)>, <CreateModel name='TokenStorageModel', fields=[('id', <django.db.models.fields.related.ForeignKey>), ('token', <django.db.models.fields.TextField>)], options={}, bases=(<class 'django.db.models.base.Model'>,)>, <CreateModel name='UserProfile', fields=[('id', <django.db.models.fields.AutoField>), ('name', <django.db.models.fields.CharField>), ('city', <django.db.models.fields.CharField>), ('country', <django.db.models.fields.CharField>), ('organization', <django.db.models.fields.CharField>), ('home_page', <django.db.models.fields.CharField>), ('twitter', <django.db.models.fields.CharField>), ('description', <django.db.models.fields.CharField>), ('require_auth', <django.db.models.fields.BooleanField>), ('address', <django.db.models.fields.CharField>), ('phonenumber', <django.db.models.fields.CharField>), ('num_of_submissions', <django.db.models.fields.IntegerField>), ('metadata', <django.db.models.fields.json.JSONField>), ('date_modified', <django.db.models.fields.DateTimeField>), ('created_by', <django.db.models.fields.related.ForeignKey>), ('user', <django.db.models.fields.related.OneToOneField>)], options={'permissions': (('can_add_xform', 'Can add/upload an xform to user profile'), ('view_profile', 'Can view user profile'))}, bases=(<class 'django.db.models.base.Model'>,)>, <AlterUniqueTogether name='metadata', unique_together={('xform', 'data_type', 'data_value')}>]¶
onadata.apps.main.migrations.0002_auto_20150717_1149 module¶
- class onadata.apps.main.migrations.0002_auto_20150717_1149.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('main', '0001_initial')]¶
- operations = [<AddField model_name='metadata', name='date_created', field=<django.db.models.fields.DateTimeField>, preserve_default=True>, <AddField model_name='metadata', name='date_modified', field=<django.db.models.fields.DateTimeField>, preserve_default=True>, <AddField model_name='metadata', name='deleted_at', field=<django.db.models.fields.DateTimeField>, preserve_default=True>]¶
onadata.apps.main.migrations.0003_auto_20151015_0822 module¶
- class onadata.apps.main.migrations.0003_auto_20151015_0822.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('auth', '0001_initial'), ('auth', '__first__'), ('main', '0002_auto_20150717_1149')]¶
- operations = [<CreateModel name='UserProfileGroupObjectPermission', fields=[('id', <django.db.models.fields.AutoField>), ('content_object', <django.db.models.fields.related.ForeignKey>), ('group', <django.db.models.fields.related.ForeignKey>), ('permission', <django.db.models.fields.related.ForeignKey>)], options={'abstract': False}, bases=(<class 'django.db.models.base.Model'>,)>, <CreateModel name='UserProfileUserObjectPermission', fields=[('id', <django.db.models.fields.AutoField>), ('content_object', <django.db.models.fields.related.ForeignKey>), ('permission', <django.db.models.fields.related.ForeignKey>), ('user', <django.db.models.fields.related.ForeignKey>)], options={'abstract': False}, bases=(<class 'django.db.models.base.Model'>,)>, <AlterUniqueTogether name='userprofileuserobjectpermission', unique_together={('user', 'permission', 'content_object')}>, <AlterUniqueTogether name='userprofilegroupobjectpermission', unique_together={('group', 'permission', 'content_object')}>]¶
onadata.apps.main.migrations.0004_auto_20160215_0345 module¶
- class onadata.apps.main.migrations.0004_auto_20160215_0345.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('contenttypes', '0001_initial'), ('main', '0003_auto_20151015_0822')]¶
- operations = [<AlterField model_name='metadata', name='xform', field=<django.db.models.fields.PositiveIntegerField>, preserve_default=True>, <RenameField model_name='metadata', old_name='xform', new_name='object_id'>, <AddField model_name='metadata', name='content_type', field=<django.db.models.fields.related.ForeignKey>, preserve_default=True>, <AlterUniqueTogether name='metadata', unique_together={('object_id', 'data_type', 'data_value', 'content_type')}>]¶
onadata.apps.main.migrations.0005_auto_20160404_0837 module¶
- class onadata.apps.main.migrations.0005_auto_20160404_0837.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('main', '0004_auto_20160215_0345')]¶
- operations = [<AlterField model_name='tokenstoragemodel', name='id', field=<django.db.models.fields.related.OneToOneField>>, <AlterField model_name='userprofile', name='date_modified', field=<django.db.models.fields.DateTimeField>>]¶
onadata.apps.main.migrations.0006_auto_20160408_0325 module¶
- class onadata.apps.main.migrations.0006_auto_20160408_0325.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('main', '0005_auto_20160404_0837')]¶
- operations = [<AlterField model_name='audit', name='json', field=<django.contrib.postgres.fields.jsonb.JSONField>>, <AlterField model_name='userprofile', name='metadata', field=<django.contrib.postgres.fields.jsonb.JSONField>>]¶
onadata.apps.main.migrations.0007_auto_20160418_0525 module¶
- class onadata.apps.main.migrations.0007_auto_20160418_0525.Migration(name, app_label)¶
Bases:
Migration
- dependencies = [('main', '0006_auto_20160408_0325')]¶
- operations = [<RemoveField model_name='tokenstoragemodel', name='token'>, <AddField model_name='tokenstoragemodel', name='credential', field=<onadata.apps.main.models.google_oath.CredentialsField>>]¶