old_contents: # Generated by Django 2.2.20 on 2021-06-09 10:02
  
  import django.contrib.postgres.fields.jsonb
  from django.db import migrations, models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('users', '0028_migrate_roles_to_sql'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='UserHistory',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('domain', models.CharField(max_length=255, null=True)),
                  ('user_type', models.CharField(max_length=255)),
                  ('user_id', models.CharField(max_length=128)),
                  ('changed_by', models.CharField(max_length=128)),
                  ('details', django.contrib.postgres.fields.jsonb.JSONField(default=dict)),
                  ('message', models.TextField(blank=True, null=True)),
                  ('changed_at', models.DateTimeField(auto_now_add=True)),
                  ('action', models.PositiveSmallIntegerField(
                      choices=[(1, 'Create'), (2, 'Update'), (3, 'Delete')])),
              ],
          ),
          migrations.AddIndex(
              model_name='userhistory',
              index=models.Index(fields=['domain'], name='users_userh_domain_4e500e_idx'),
          ),
      ]
  
new_contents: # Generated by Django 2.2.20 on 2021-06-09 10:02
  
  import django.contrib.postgres.fields.jsonb
  from django.db import migrations, models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('users', '0029_merge_20210611_1436'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='UserHistory',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('domain', models.CharField(max_length=255, null=True)),
                  ('user_type', models.CharField(max_length=255)),
                  ('user_id', models.CharField(max_length=128)),
                  ('changed_by', models.CharField(max_length=128)),
                  ('details', django.contrib.postgres.fields.jsonb.JSONField(default=dict)),
                  ('message', models.TextField(blank=True, null=True)),
                  ('changed_at', models.DateTimeField(auto_now_add=True)),
                  ('action', models.PositiveSmallIntegerField(
                      choices=[(1, 'Create'), (2, 'Update'), (3, 'Delete')])),
              ],
          ),
          migrations.AddIndex(
              model_name='userhistory',
              index=models.Index(fields=['domain'], name='users_userh_domain_4e500e_idx'),
          ),
      ]
  
subject: update to new last migration