old_contents: # Generated by Django 2.0.3 on 2018-05-19 08:17
  
  from django.conf import settings
  import django.contrib.postgres.fields
  import django.contrib.postgres.fields.jsonb
  from django.db import migrations, models
  import django.db.models.deletion
  import django.utils.timezone
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='SSOIdentity',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('provider', models.CharField(choices=[('ldap', 'ldap'), ('github', 'github'), ('bitbucket', 'bitbucket'), ('gitlab', 'gitlab')], max_length=32)),
                  ('external_id', models.CharField(max_length=64, null=True)),
                  ('valid', models.BooleanField(default=False)),
                  ('last_verified', models.DateTimeField(default=django.utils.timezone.now)),
                  ('last_synced', models.DateTimeField(default=django.utils.timezone.now)),
                  ('scopes', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=200), blank=True, null=True, size=None)),
                  ('data', django.contrib.postgres.fields.jsonb.JSONField()),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='identities', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name_plural': 'SSOIdentities',
              },
          ),
          migrations.AlterUniqueTogether(
              name='ssoidentity',
              unique_together={('provider', 'user'), ('provider', 'external_id')},
          ),
      ]
  
new_contents: # Generated by Django 2.0.3 on 2018-05-20 14:40
  
  from django.conf import settings
  import django.contrib.postgres.fields
  import django.contrib.postgres.fields.jsonb
  from django.db import migrations, models
  import django.db.models.deletion
  import django.utils.timezone
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='SSOIdentity',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('provider', models.CharField(choices=[('github', 'github'), ('bitbucket', 'bitbucket'), ('gitlab', 'gitlab')], max_length=32)),
                  ('external_id', models.CharField(max_length=64, null=True)),
                  ('valid', models.BooleanField(default=False)),
                  ('last_verified', models.DateTimeField(default=django.utils.timezone.now)),
                  ('last_synced', models.DateTimeField(default=django.utils.timezone.now)),
                  ('scopes', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=200), blank=True, null=True, size=None)),
                  ('data', django.contrib.postgres.fields.jsonb.JSONField()),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='identities', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'verbose_name_plural': 'SSOIdentities',
              },
          ),
          migrations.AlterUniqueTogether(
              name='ssoidentity',
              unique_together={('provider', 'user'), ('provider', 'external_id')},
          ),
      ]
  
subject: Update sso migrations