diff --git a/src/fellchensammlung/migrations/0001_initial.py b/src/fellchensammlung/migrations/0001_initial.py index 56f5e65..390b840 100644 --- a/src/fellchensammlung/migrations/0001_initial.py +++ b/src/fellchensammlung/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 5.0.3 on 2024-04-14 09:08 +# Generated by Django 5.0.3 on 2024-04-14 13:57 import datetime import django.contrib.auth.models @@ -103,22 +103,6 @@ class Migration(migrations.Migration): ), ], ), - migrations.CreateModel( - name="Rule", - fields=[ - ( - "id", - models.BigAutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("title", models.CharField(max_length=200)), - ("rule_text", models.TextField()), - ], - ), migrations.CreateModel( name="Species", fields=[ @@ -314,38 +298,6 @@ class Migration(migrations.Migration): ], }, ), - migrations.CreateModel( - name="MarkdownContent", - fields=[ - ( - "id", - models.BigAutoField( - auto_created=True, - primary_key=True, - serialize=False, - verbose_name="ID", - ), - ), - ("title", models.CharField(max_length=100)), - ("content", models.TextField()), - ( - "text_code", - models.CharField( - blank=True, max_length=24, verbose_name="text_code" - ), - ), - ( - "language", - models.OneToOneField( - on_delete=django.db.models.deletion.PROTECT, - to="fellchensammlung.language", - ), - ), - ], - options={ - "verbose_name_plural": "Markdown content", - }, - ), migrations.CreateModel( name="Member", fields=[ @@ -428,10 +380,6 @@ class Migration(migrations.Migration): to="fellchensammlung.adoptionnotice", ), ), - ( - "reported_broken_rules", - models.ManyToManyField(blank=True, to="fellchensammlung.rule"), - ), ], options={ "permissions": [], @@ -533,6 +481,35 @@ class Migration(migrations.Migration): verbose_name="Organisation", ), ), + migrations.CreateModel( + name="Rule", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("title", models.CharField(max_length=200)), + ("rule_text", models.TextField()), + ("rule_identifier", models.CharField(max_length=24)), + ( + "language", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="fellchensammlung.language", + ), + ), + ], + ), + migrations.AddField( + model_name="report", + name="reported_broken_rules", + field=models.ManyToManyField(blank=True, to="fellchensammlung.rule"), + ), migrations.CreateModel( name="Animal", fields=[ @@ -585,4 +562,38 @@ class Migration(migrations.Migration): ), ], ), + migrations.CreateModel( + name="Text", + fields=[ + ( + "id", + models.BigAutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("title", models.CharField(max_length=100)), + ("content", models.TextField(verbose_name="Inhalt")), + ( + "text_code", + models.CharField( + blank=True, max_length=24, verbose_name="Text code" + ), + ), + ( + "language", + models.ForeignKey( + on_delete=django.db.models.deletion.PROTECT, + to="fellchensammlung.language", + verbose_name="Sprache", + ), + ), + ], + options={ + "verbose_name": "Text", + "verbose_name_plural": "Texte", + }, + ), ] diff --git a/src/fellchensammlung/migrations/0002_rename_markdowncontent_text.py b/src/fellchensammlung/migrations/0002_rename_markdowncontent_text.py deleted file mode 100644 index 3fcf047..0000000 --- a/src/fellchensammlung/migrations/0002_rename_markdowncontent_text.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 5.0.3 on 2024-04-14 11:29 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("fellchensammlung", "0001_initial"), - ] - - operations = [ - migrations.RenameModel( - old_name="MarkdownContent", - new_name="Text", - ), - ] diff --git a/src/fellchensammlung/migrations/0003_alter_text_options.py b/src/fellchensammlung/migrations/0003_alter_text_options.py deleted file mode 100644 index 0fe6fd7..0000000 --- a/src/fellchensammlung/migrations/0003_alter_text_options.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 5.0.3 on 2024-04-14 11:30 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("fellchensammlung", "0002_rename_markdowncontent_text"), - ] - - operations = [ - migrations.AlterModelOptions( - name="text", - options={"verbose_name_plural": "Text"}, - ), - ] diff --git a/src/fellchensammlung/migrations/0004_alter_text_options.py b/src/fellchensammlung/migrations/0004_alter_text_options.py deleted file mode 100644 index fcd2071..0000000 --- a/src/fellchensammlung/migrations/0004_alter_text_options.py +++ /dev/null @@ -1,17 +0,0 @@ -# Generated by Django 5.0.3 on 2024-04-14 11:30 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ("fellchensammlung", "0003_alter_text_options"), - ] - - operations = [ - migrations.AlterModelOptions( - name="text", - options={"verbose_name": "Text", "verbose_name_plural": "Texte"}, - ), - ] diff --git a/src/fellchensammlung/migrations/0005_alter_text_content_alter_text_language_and_more.py b/src/fellchensammlung/migrations/0005_alter_text_content_alter_text_language_and_more.py deleted file mode 100644 index 9fb943e..0000000 --- a/src/fellchensammlung/migrations/0005_alter_text_content_alter_text_language_and_more.py +++ /dev/null @@ -1,33 +0,0 @@ -# Generated by Django 5.0.3 on 2024-04-14 12:06 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("fellchensammlung", "0004_alter_text_options"), - ] - - operations = [ - migrations.AlterField( - model_name="text", - name="content", - field=models.TextField(verbose_name="Inhalt"), - ), - migrations.AlterField( - model_name="text", - name="language", - field=models.OneToOneField( - on_delete=django.db.models.deletion.PROTECT, - to="fellchensammlung.language", - verbose_name="Sprache", - ), - ), - migrations.AlterField( - model_name="text", - name="text_code", - field=models.CharField(blank=True, max_length=24, verbose_name="Text code"), - ), - ] diff --git a/src/fellchensammlung/migrations/0006_alter_text_language.py b/src/fellchensammlung/migrations/0006_alter_text_language.py deleted file mode 100644 index 9fcbebf..0000000 --- a/src/fellchensammlung/migrations/0006_alter_text_language.py +++ /dev/null @@ -1,23 +0,0 @@ -# Generated by Django 5.0.3 on 2024-04-14 12:12 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("fellchensammlung", "0005_alter_text_content_alter_text_language_and_more"), - ] - - operations = [ - migrations.AlterField( - model_name="text", - name="language", - field=models.ForeignKey( - on_delete=django.db.models.deletion.PROTECT, - to="fellchensammlung.language", - verbose_name="Sprache", - ), - ), - ]