diff --git a/easyaudit/migrations/0004_auto_20170620_1354.py b/easyaudit/migrations/0004_auto_20170620_1354.py deleted file mode 100644 index a91cc89..0000000 --- a/easyaudit/migrations/0004_auto_20170620_1354.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 1.11.1 on 2017-06-20 13:54 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - ('easyaudit', '0003_auto_20170228_1505'), - ] - - operations = [ - migrations.AlterIndexTogether( - name='crudevent', - index_together=set([('object_id', 'content_type')]), - ), - ] diff --git a/easyaudit/migrations/0005_auto_20170713_1155.py b/easyaudit/migrations/0005_auto_20170713_1155.py deleted file mode 100644 index 613e366..0000000 --- a/easyaudit/migrations/0005_auto_20170713_1155.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 1.11.2 on 2017-07-13 15:55 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0004_auto_20170620_1354'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='event_type', - field=models.SmallIntegerField(choices=[(1, b'Create'), (2, b'Update'), (3, b'Delete'), (4, b'Many-to-Many Change'), (5, b'Reverse Many-to-Many Change')]), - ), - ] diff --git a/easyaudit/migrations/0006_auto_20171018_1242.py b/easyaudit/migrations/0006_auto_20171018_1242.py deleted file mode 100644 index 05a911c..0000000 --- a/easyaudit/migrations/0006_auto_20171018_1242.py +++ /dev/null @@ -1,38 +0,0 @@ -# Generated by Django 1.11.6 on 2017-10-18 12:42 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('easyaudit', '0005_auto_20170713_1155'), - ] - - operations = [ - migrations.CreateModel( - name='RequestEvent', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('url', models.CharField(db_index=True, max_length=255)), - ('method', models.CharField(db_index=True, max_length=20)), - ('query_string', models.CharField(max_length=255, null=True)), - ('remote_ip', models.CharField(db_index=True, max_length=50, null=True)), - ('datetime', models.DateTimeField(auto_now_add=True)), - ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), - ], - options={ - 'ordering': ['-datetime'], - 'verbose_name': 'request event', - 'verbose_name_plural': 'request events', - }, - ), - migrations.AddField( - model_name='loginevent', - name='remote_ip', - field=models.CharField(db_index=True, max_length=50, null=True), - ), - ] diff --git a/easyaudit/migrations/0007_auto_20180105_0838.py b/easyaudit/migrations/0007_auto_20180105_0838.py deleted file mode 100644 index 49945b2..0000000 --- a/easyaudit/migrations/0007_auto_20180105_0838.py +++ /dev/null @@ -1,28 +0,0 @@ -# Generated by Django 1.11.6 on 2018-01-05 08:38 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0006_auto_20171018_1242'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='event_type', - field=models.SmallIntegerField(choices=[(1, 'Create'), (2, 'Update'), (3, 'Delete'), (4, 'Many-to-Many Change'), (5, 'Reverse Many-to-Many Change')]), - ), - migrations.AlterField( - model_name='crudevent', - name='user_pk_as_string', - field=models.CharField(blank=True, help_text='String version of the user pk', max_length=255, null=True), - ), - migrations.AlterField( - model_name='loginevent', - name='login_type', - field=models.SmallIntegerField(choices=[(0, 'Login'), (1, 'Logout'), (2, 'Failed login')]), - ), - ] diff --git a/easyaudit/migrations/0008_auto_20180220_1908.py b/easyaudit/migrations/0008_auto_20180220_1908.py deleted file mode 100644 index dbf9132..0000000 --- a/easyaudit/migrations/0008_auto_20180220_1908.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 1.11.8 on 2018-02-20 19:08 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0007_auto_20180105_0838'), - ] - - operations = [ - migrations.AddField( - model_name='crudevent', - name='changed_fields', - field=models.TextField(blank=True, null=True), - ), - migrations.AlterField( - model_name='crudevent', - name='user_pk_as_string', - field=models.CharField(blank=True, help_text='String version of the user pk', max_length=255, null=True), - ), - ] diff --git a/easyaudit/migrations/0009_auto_20180314_2225.py b/easyaudit/migrations/0009_auto_20180314_2225.py deleted file mode 100644 index e6b9726..0000000 --- a/easyaudit/migrations/0009_auto_20180314_2225.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 1.11.7 on 2018-03-14 22:25 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0008_auto_20180220_1908'), - ] - - operations = [ - migrations.AlterField( - model_name='requestevent', - name='query_string', - field=models.TextField(null=True), - ), - migrations.AlterField( - model_name='requestevent', - name='url', - field=models.CharField(max_length=254, db_index=False), - ), - ] diff --git a/easyaudit/migrations/0010_repr_text.py b/easyaudit/migrations/0010_repr_text.py deleted file mode 100644 index 5c10e57..0000000 --- a/easyaudit/migrations/0010_repr_text.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.0.4 on 2018-04-09 21:36 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0009_auto_20180314_2225'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='object_repr', - field=models.TextField(blank=True, null=True), - ), - ] diff --git a/easyaudit/migrations/0011_auto_20181101_1339.py b/easyaudit/migrations/0011_auto_20181101_1339.py deleted file mode 100644 index 57d77b0..0000000 --- a/easyaudit/migrations/0011_auto_20181101_1339.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 1.11 on 2018-11-01 13:39 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0010_repr_text'), - ] - - operations = [ - migrations.AlterField( - model_name='requestevent', - name='url', - field=models.TextField(), - ), - ] diff --git a/easyaudit/migrations/0012_auto_20181018_0012.py b/easyaudit/migrations/0012_auto_20181018_0012.py deleted file mode 100644 index 71dec9d..0000000 --- a/easyaudit/migrations/0012_auto_20181018_0012.py +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by Django 1.11.12 on 2018-10-18 00:12 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0011_auto_20181101_1339'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='user', - field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL), - ), - migrations.AlterField( - model_name='crudevent', - name='content_type', - field=models.ForeignKey(to='contenttypes.ContentType', db_constraint=False, on_delete=models.CASCADE), - ), - migrations.AlterField( - model_name='loginevent', - name='user', - field=models.ForeignKey(blank=True, db_constraint=False, null=True, - on_delete=django.db.models.deletion.SET_NULL, - to=settings.AUTH_USER_MODEL), - ), - migrations.AlterField( - model_name='requestevent', - name='user', - field=models.ForeignKey(blank=True, db_constraint=False, null=True, - on_delete=django.db.models.deletion.SET_NULL, - to=settings.AUTH_USER_MODEL), - ), - - ] diff --git a/easyaudit/migrations/0013_auto_20190723_0126.py b/easyaudit/migrations/0013_auto_20190723_0126.py deleted file mode 100644 index 7eb959b..0000000 --- a/easyaudit/migrations/0013_auto_20190723_0126.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 2.1 on 2019-07-23 01:26 - -from django.db import migrations, models -from django.db import connection - - -def drop_index_if_exists(apps, schema_editor): - if connection.vendor == 'postgresql': - schema_editor.execute('DROP INDEX IF EXISTS "easyaudit_requestevent_url_37d1b8c4"') - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0012_auto_20181018_0012'), - ] - - operations = [ - migrations.RunPython(drop_index_if_exists, migrations.RunPython.noop), - migrations.AlterField( - model_name='requestevent', - name='url', - field=models.CharField(db_index=True, max_length=254), - ), - ] diff --git a/easyaudit/migrations/0014_auto_20200513_0008.py b/easyaudit/migrations/0014_auto_20200513_0008.py deleted file mode 100644 index bd85850..0000000 --- a/easyaudit/migrations/0014_auto_20200513_0008.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 3.0.6 on 2020-05-13 00:08 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0013_auto_20190723_0126'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='object_id', - field=models.CharField(max_length=255), - ), - ] diff --git a/easyaudit/migrations/0015_auto_20201019_1217.py b/easyaudit/migrations/0015_auto_20201019_1217.py deleted file mode 100644 index 079687a..0000000 --- a/easyaudit/migrations/0015_auto_20201019_1217.py +++ /dev/null @@ -1,117 +0,0 @@ -# Generated by Django 3.1.1 on 2020-10-19 12:17 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('contenttypes', '0002_remove_content_type_name'), - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('easyaudit', '0014_auto_20200513_0008'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='changed_fields', - field=models.TextField(blank=True, null=True, verbose_name='Changed fields'), - ), - migrations.AlterField( - model_name='crudevent', - name='content_type', - field=models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype', verbose_name='Content type'), - ), - migrations.AlterField( - model_name='crudevent', - name='datetime', - field=models.DateTimeField(auto_now_add=True, verbose_name='Date time'), - ), - migrations.AlterField( - model_name='crudevent', - name='event_type', - field=models.SmallIntegerField(choices=[(1, 'Create'), (2, 'Update'), (3, 'Delete'), (4, 'Many-to-Many Change'), (5, 'Reverse Many-to-Many Change'), (6, 'Many-to-Many Add'), (7, 'Reverse Many-to-Many Add'), (8, 'Many-to-Many Remove'), (9, 'Reverse Many-to-Many Remove')], verbose_name='Event type'), - ), - migrations.AlterField( - model_name='crudevent', - name='object_id', - field=models.CharField(max_length=255, verbose_name='Object ID'), - ), - migrations.AlterField( - model_name='crudevent', - name='object_json_repr', - field=models.TextField(blank=True, null=True, verbose_name='Object JSON representation'), - ), - migrations.AlterField( - model_name='crudevent', - name='object_repr', - field=models.TextField(blank=True, null=True, verbose_name='Object representation'), - ), - migrations.AlterField( - model_name='crudevent', - name='user', - field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='User'), - ), - migrations.AlterField( - model_name='crudevent', - name='user_pk_as_string', - field=models.CharField(blank=True, help_text='String version of the user pk', max_length=255, null=True, verbose_name='User PK as string'), - ), - migrations.AlterField( - model_name='loginevent', - name='datetime', - field=models.DateTimeField(auto_now_add=True, verbose_name='Date time'), - ), - migrations.AlterField( - model_name='loginevent', - name='login_type', - field=models.SmallIntegerField(choices=[(0, 'Login'), (1, 'Logout'), (2, 'Failed login')], verbose_name='Event type'), - ), - migrations.AlterField( - model_name='loginevent', - name='remote_ip', - field=models.CharField(db_index=True, max_length=50, null=True, verbose_name='Remote IP'), - ), - migrations.AlterField( - model_name='loginevent', - name='user', - field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='User'), - ), - migrations.AlterField( - model_name='loginevent', - name='username', - field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Username'), - ), - migrations.AlterField( - model_name='requestevent', - name='datetime', - field=models.DateTimeField(auto_now_add=True, verbose_name='Date time'), - ), - migrations.AlterField( - model_name='requestevent', - name='method', - field=models.CharField(db_index=True, max_length=20, verbose_name='Method'), - ), - migrations.AlterField( - model_name='requestevent', - name='query_string', - field=models.TextField(null=True, verbose_name='Query string'), - ), - migrations.AlterField( - model_name='requestevent', - name='remote_ip', - field=models.CharField(db_index=True, max_length=50, null=True, verbose_name='Remote IP'), - ), - migrations.AlterField( - model_name='requestevent', - name='url', - field=models.CharField(db_index=True, max_length=254, verbose_name='URL'), - ), - migrations.AlterField( - model_name='requestevent', - name='user', - field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='User'), - ), - ] diff --git a/easyaudit/migrations/0016_alter_crudevent_event_type.py b/easyaudit/migrations/0016_alter_crudevent_event_type.py deleted file mode 100644 index 2337511..0000000 --- a/easyaudit/migrations/0016_alter_crudevent_event_type.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 3.2.11 on 2022-01-10 16:04 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0015_auto_20201019_1217'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='event_type', - field=models.SmallIntegerField(choices=[(1, 'Create'), (2, 'Update'), (3, 'Delete'), (4, 'Many-to-Many Change'), (5, 'Reverse Many-to-Many Change'), (6, 'Many-to-Many Add'), (7, 'Reverse Many-to-Many Add'), (8, 'Many-to-Many Remove'), (9, 'Reverse Many-to-Many Remove'), (10, 'Many-to-Many Clear'), (11, 'Reverse Many-to-Many Clear')], verbose_name='Event type'), - ), - ] diff --git a/easyaudit/migrations/0017_alter_requestevent_datetime.py b/easyaudit/migrations/0017_alter_requestevent_datetime.py deleted file mode 100644 index 2196f9d..0000000 --- a/easyaudit/migrations/0017_alter_requestevent_datetime.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.1.1 on 2022-09-25 00:19 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0016_alter_crudevent_event_type'), - ] - - operations = [ - migrations.AlterField( - model_name='requestevent', - name='datetime', - field=models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Date time'), - ), - ] diff --git a/easyaudit/migrations/0018_rename_crudevent_object_id_content_type_index.py b/easyaudit/migrations/0018_rename_crudevent_object_id_content_type_index.py deleted file mode 100644 index bfdc32b..0000000 --- a/easyaudit/migrations/0018_rename_crudevent_object_id_content_type_index.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.2.3 on 2023-07-26 18:41 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0017_alter_requestevent_datetime'), - ] - - operations = [ - migrations.RenameIndex( - model_name='crudevent', - new_name='easyaudit_c_object__82020b_idx', - old_fields=('object_id', 'content_type'), - ), - ] diff --git a/easyaudit/migrations/0019_alter_crudevent_changed_fields_and_more.py b/easyaudit/migrations/0019_alter_crudevent_changed_fields_and_more.py deleted file mode 100644 index fbfdf40..0000000 --- a/easyaudit/migrations/0019_alter_crudevent_changed_fields_and_more.py +++ /dev/null @@ -1,53 +0,0 @@ -# Generated by Django 5.0.1 on 2024-03-18 19:53 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('easyaudit', '0018_rename_crudevent_object_id_content_type_index'), - ] - - operations = [ - migrations.AlterField( - model_name='crudevent', - name='changed_fields', - field=models.TextField(blank=True, default='', verbose_name='Changed fields'), - ), - migrations.AlterField( - model_name='crudevent', - name='object_json_repr', - field=models.TextField(blank=True, default='', verbose_name='Object JSON representation'), - ), - migrations.AlterField( - model_name='crudevent', - name='object_repr', - field=models.TextField(blank=True, default='', verbose_name='Object representation'), - ), - migrations.AlterField( - model_name='crudevent', - name='user_pk_as_string', - field=models.CharField(blank=True, default='', help_text='String version of the user pk', max_length=255, verbose_name='User PK as string'), - ), - migrations.AlterField( - model_name='loginevent', - name='remote_ip', - field=models.CharField(db_index=True, default='', max_length=50, verbose_name='Remote IP'), - ), - migrations.AlterField( - model_name='loginevent', - name='username', - field=models.CharField(blank=True, default='', max_length=255, verbose_name='Username'), - ), - migrations.AlterField( - model_name='requestevent', - name='query_string', - field=models.TextField(default='', verbose_name='Query string'), - ), - migrations.AlterField( - model_name='requestevent', - name='remote_ip', - field=models.CharField(db_index=True, default='', max_length=50, verbose_name='Remote IP'), - ), - ]