All files for deployment ready and tested - further development in this repo.
This commit is contained in:
37
stichworte/migrations/0001_initial.py
Normal file
37
stichworte/migrations/0001_initial.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# Generated by Django 5.2.5 on 2025-08-26 09:34
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('abschnitte', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Stichwort',
|
||||
fields=[
|
||||
('stichwort', models.CharField(max_length=50, primary_key=True, serialize=False)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Stichworte',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Stichworterklaerung',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('inhalt', models.TextField(blank=True, null=True)),
|
||||
('abschnitttyp', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='abschnitte.abschnitttyp')),
|
||||
('erklaerung', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stichworte.stichwort')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Erklärung',
|
||||
},
|
||||
),
|
||||
]
|
||||
18
stichworte/migrations/0002_stichworterklaerung_order.py
Normal file
18
stichworte/migrations/0002_stichworterklaerung_order.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.2.5 on 2025-08-27 09:40
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('stichworte', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='stichworterklaerung',
|
||||
name='order',
|
||||
field=models.PositiveIntegerField(default=0),
|
||||
),
|
||||
]
|
||||
0
stichworte/migrations/__init__.py
Normal file
0
stichworte/migrations/__init__.py
Normal file
Reference in New Issue
Block a user