From 5c9ed5e5ed9f8e5bad2e810c9ffa2cd3b97ac963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 10 Aug 2023 12:14:18 +0200 Subject: [PATCH] =?UTF-8?q?Ru=C4=8Dn=C3=AD=20p=C5=99eps=C3=A1n=C3=AD=20mig?= =?UTF-8?q?rac=C3=AD,=20aby=20se=20nedalo=20namigrovat=20do=20rozbit=C3=A9?= =?UTF-8?q?ho=20stavu.=20POZOR:=20odmigrovat=20v=C5=A1e=20od=20tagu=20`v3?= =?UTF-8?q?=5Fuklizeno`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Teď už je nejhorší stav, že dvě aplikace ukazují na tu samou tabulku. --- galerie/migrations/0011_auto_20230809_2130.py | 4 + .../migrations/0021_auto_20230731_1954.py | 6 +- odevzdavatko/migrations/0001_initial.py | 8 +- .../migrations/0002_presun_treenode.py | 1 + ...jemce_resitel_skola.py => 0002_initial.py} | 2 +- .../migrations/0013_auto_20230731_1954.py | 6 +- .../migrations/0014_auto_20230809_2130.py | 4 + .../migrations/0114_prejmenovani_tabulek.py | 126 +++++++++++ ...lniho.py => 0115_separace_personalniho.py} | 66 +----- seminar/migrations/0115_separace_tvorby.py | 212 ------------------ .../migrations/0116_smazani_personalniho.py | 54 +++++ seminar/migrations/0117_separace_tvorby.py | 89 ++++++++ seminar/migrations/0118_smazani_tvorby.py | 112 +++++++++ .../migrations/0119_separace_odevzdavatka.py | 29 +++ ...avatka.py => 0120_smazani_odevzdavatka.py} | 29 +-- ...tredeni.py => 0121_smazani_soustredeni.py} | 24 +- ...e_treenode.py => 0122_smazani_treenode.py} | 46 +--- soustredeni/migrations/0001_initial.py | 4 +- treenode/migrations/0001_initial.py | 10 +- tvorba/migrations/0001_initial.py | 4 +- 20 files changed, 458 insertions(+), 378 deletions(-) rename personalni/migrations/{0002_organizator_osoba_prijemce_resitel_skola.py => 0002_initial.py} (99%) create mode 100644 seminar/migrations/0114_prejmenovani_tabulek.py rename seminar/migrations/{0114_separace_personalniho.py => 0115_separace_personalniho.py} (69%) delete mode 100644 seminar/migrations/0115_separace_tvorby.py create mode 100644 seminar/migrations/0116_smazani_personalniho.py create mode 100644 seminar/migrations/0117_separace_tvorby.py create mode 100644 seminar/migrations/0118_smazani_tvorby.py create mode 100644 seminar/migrations/0119_separace_odevzdavatka.py rename seminar/migrations/{0116_separace_odevzdavatka.py => 0120_smazani_odevzdavatka.py} (59%) rename seminar/migrations/{0117_separace_soustredeni.py => 0121_smazani_soustredeni.py} (69%) rename seminar/migrations/{0118_separace_treenode.py => 0122_smazani_treenode.py} (73%) diff --git a/galerie/migrations/0011_auto_20230809_2130.py b/galerie/migrations/0011_auto_20230809_2130.py index 03f9c26e..0c71a5db 100644 --- a/galerie/migrations/0011_auto_20230809_2130.py +++ b/galerie/migrations/0011_auto_20230809_2130.py @@ -11,6 +11,10 @@ class Migration(migrations.Migration): ('soustredeni', '0001_initial'), ] + run_before = [ + ('seminar', '0121_smazani_soustredeni'), + ] + operations = [ migrations.SeparateDatabaseAndState( state_operations=[ diff --git a/korektury/migrations/0021_auto_20230731_1954.py b/korektury/migrations/0021_auto_20230731_1954.py index a18644b4..5cffdfcc 100644 --- a/korektury/migrations/0021_auto_20230731_1954.py +++ b/korektury/migrations/0021_auto_20230731_1954.py @@ -8,7 +8,11 @@ class Migration(migrations.Migration): dependencies = [ ('korektury', '0020_lepsi_popis_nazvu_PDF_v_adminu'), - ('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), + ('personalni', '0002_initial'), + ] + + run_before = [ + ('seminar', '0116_smazani_personalniho'), ] operations = [ diff --git a/odevzdavatko/migrations/0001_initial.py b/odevzdavatko/migrations/0001_initial.py index dd127cfe..ca4a5e34 100644 --- a/odevzdavatko/migrations/0001_initial.py +++ b/odevzdavatko/migrations/0001_initial.py @@ -12,8 +12,12 @@ class Migration(migrations.Migration): dependencies = [ ('tvorba', '0001_initial'), - ('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), - ('seminar', '0116_separace_odevzdavatka'), + ('personalni', '0002_initial'), + ('seminar', '0117_separace_tvorby'), + ] + + run_before = [ + ('seminar', '0120_smazani_odevzdavatka'), ] operations = [ diff --git a/odevzdavatko/migrations/0002_presun_treenode.py b/odevzdavatko/migrations/0002_presun_treenode.py index f5ef964d..a7af676c 100644 --- a/odevzdavatko/migrations/0002_presun_treenode.py +++ b/odevzdavatko/migrations/0002_presun_treenode.py @@ -8,6 +8,7 @@ class Migration(migrations.Migration): dependencies = [ ('odevzdavatko', '0001_initial'), + ('treenode', '0001_initial'), ] operations = [ diff --git a/personalni/migrations/0002_organizator_osoba_prijemce_resitel_skola.py b/personalni/migrations/0002_initial.py similarity index 99% rename from personalni/migrations/0002_organizator_osoba_prijemce_resitel_skola.py rename to personalni/migrations/0002_initial.py index 7c0031de..27bfe0ba 100644 --- a/personalni/migrations/0002_organizator_osoba_prijemce_resitel_skola.py +++ b/personalni/migrations/0002_initial.py @@ -14,7 +14,7 @@ class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('personalni', '0001_skupiny'), - ('seminar', '0114_separace_personalniho'), + ('seminar', '0114_prejmenovani_tabulek'), ] operations = [ diff --git a/prednasky/migrations/0013_auto_20230731_1954.py b/prednasky/migrations/0013_auto_20230731_1954.py index efe9c6bb..496736f9 100644 --- a/prednasky/migrations/0013_auto_20230731_1954.py +++ b/prednasky/migrations/0013_auto_20230731_1954.py @@ -8,7 +8,11 @@ class Migration(migrations.Migration): dependencies = [ ('prednasky', '0012_auto_20190610_2358'), - ('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), + ('personalni', '0002_initial'), + ] + + run_before = [ + ('seminar', '0116_smazani_personalniho'), ] operations = [ diff --git a/prednasky/migrations/0014_auto_20230809_2130.py b/prednasky/migrations/0014_auto_20230809_2130.py index 64b6f95a..77376072 100644 --- a/prednasky/migrations/0014_auto_20230809_2130.py +++ b/prednasky/migrations/0014_auto_20230809_2130.py @@ -11,6 +11,10 @@ class Migration(migrations.Migration): ('soustredeni', '0001_initial'), ] + run_before = [ + ('seminar', '0121_smazani_soustredeni'), + ] + operations = [ migrations.SeparateDatabaseAndState( state_operations=[ diff --git a/seminar/migrations/0114_prejmenovani_tabulek.py b/seminar/migrations/0114_prejmenovani_tabulek.py new file mode 100644 index 00000000..8dbceebb --- /dev/null +++ b/seminar/migrations/0114_prejmenovani_tabulek.py @@ -0,0 +1,126 @@ +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0113_resitel_zasilat_cislo_papirove'), + ] + + operations = [ + # Personální + migrations.AlterModelTable( + name='Organizator', table="mam_organizatori", + ), + migrations.AlterModelTable( + name='Osoba', table="mam_osoby", + ), + migrations.AlterModelTable( + name='Prijemce', table="mam_prijemce", + ), + migrations.AlterModelTable( + name='Resitel', table="mam_resitele", + ), + migrations.AlterModelTable( + name='Skola', table="mam_skoly", + ), + + # Tvorba + migrations.AlterModelTable( + name='Cislo', table="mam_cisla", + ), + migrations.AlterModelTable( + name='Deadline', table="mam_deadliny", + ), + migrations.AlterModelTable( + name='Problem', table="mam_problemy", + ), + migrations.AlterModelTable( + name='Rocnik', table="mam_rocniky", + ), + migrations.AlterModelTable( + name='ZmrazenaVysledkovka', table="mam_vysledkovky", + ), + migrations.AlterModelTable( + name='Pohadka', table="mam_pohadky", + ), + migrations.AlterModelTable( + name='Uloha', table="mam_ulohy", + ), + migrations.AlterModelTable( + name='Tema', table="mam_temata", + ), + migrations.AlterModelTable( + name='Clanek', table="mam_clanky", + ), + + # Odevzdávátko + migrations.AlterModelTable( + name='Hodnoceni', table="mam_hodnoceni", + ), + migrations.AlterModelTable( + name='Reseni', table="mam_reseni", + ), + migrations.AlterModelTable( + name='Reseni_Resitele', table="mam_reseni_resitele", + ), + migrations.AlterModelTable( + name='PrilohaReseni', table="mam_priloha_reseni", + ), + + # Soustředění + migrations.AlterModelTable( + name='Konfera', table="mam_konfera", + ), + migrations.AlterModelTable( + name='Soustredeni', table="mam_soustredeni", + ), + migrations.AlterModelTable( + name='Soustredeni_Ucastnici', table="mam_soustredeni_ucastnici", + ), + migrations.AlterModelTable( + name='Soustredeni_Organizatori', table="mam_soustredeni_organizatori", + ), + migrations.AlterModelTable( + name='Konfery_Ucastnici', table="mam_konfery_ucastnici", + ), + + # Treenode + migrations.AlterModelTable( + name='TreeNode', table="mam_nodes_treenode", + ), + migrations.AlterModelTable( + name='CastNode', table="mam_nodes_cast", + ), + migrations.AlterModelTable( + name='MezicisloNode', table="mam_nodes_mezicislo", + ), + migrations.AlterModelTable( + name='UlohaZadaniNode', table="mam_nodes_uloha_zadani", + ), + migrations.AlterModelTable( + name='UlohaVzorakNode', table="mam_nodes_uloha_vzorak", + ), + migrations.AlterModelTable( + name='TextNode', table="mam_nodes_obsah", + ), + migrations.AlterModelTable( + name='TemaVCisleNode', table="mam_nodes_temavcisle", + ), + migrations.AlterModelTable( + name='RocnikNode', table="mam_nodes_rocnik", + ), + migrations.AlterModelTable( + name='ReseniNode', table="mam_nodes_otistene_reseni", + ), + migrations.AlterModelTable( + name='PohadkaNode', table="mam_nodes_pohadka", + ), + migrations.AlterModelTable( + name='OrgTextNode', table="mam_nodes_orgtextnode", + ), + migrations.AlterModelTable( + name='CisloNode', table="mam_nodes_cislo", + ), + ] diff --git a/seminar/migrations/0114_separace_personalniho.py b/seminar/migrations/0115_separace_personalniho.py similarity index 69% rename from seminar/migrations/0114_separace_personalniho.py rename to seminar/migrations/0115_separace_personalniho.py index 0540847b..0ac22460 100644 --- a/seminar/migrations/0114_separace_personalniho.py +++ b/seminar/migrations/0115_separace_personalniho.py @@ -7,35 +7,17 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - ('korektury', '0020_lepsi_popis_nazvu_PDF_v_adminu'), - ('prednasky', '0012_auto_20190610_2358'), - ('personalni', '0001_skupiny'), - ('seminar', '0113_resitel_zasilat_cislo_papirove'), + ('seminar', '0114_prejmenovani_tabulek'), + ('personalni', '0002_initial'), + ] + + run_before = [ + ('seminar', '0116_smazani_personalniho'), ] operations = [ migrations.SeparateDatabaseAndState( state_operations=[ - migrations.RemoveField( - model_name='osoba', - name='user', - ), - migrations.RemoveField( - model_name='prijemce', - name='osoba', - ), - migrations.RemoveField( - model_name='resitel', - name='osoba', - ), - migrations.RemoveField( - model_name='resitel', - name='skola', - ), - migrations.RemoveField( - model_name='skola', - name='kontaktni_osoba', - ), migrations.AlterField( model_name='konfera', name='ucastnici', @@ -109,40 +91,4 @@ class Migration(migrations.Migration): ], database_operations=[], ), - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.DeleteModel( - name='Organizator', - ), - migrations.DeleteModel( - name='Osoba', - ), - migrations.DeleteModel( - name='Prijemce', - ), - migrations.DeleteModel( - name='Resitel', - ), - migrations.DeleteModel( - name='Skola', - ), - ], - database_operations=[ - migrations.AlterModelTable( - name='Organizator', table="mam_organizatori", - ), - migrations.AlterModelTable( - name='Osoba', table="mam_osoby", - ), - migrations.AlterModelTable( - name='Prijemce', table="mam_prijemce", - ), - migrations.AlterModelTable( - name='Resitel', table="mam_resitele", - ), - migrations.AlterModelTable( - name='Skola', table="mam_skoly", - ), - ], - ), ] diff --git a/seminar/migrations/0115_separace_tvorby.py b/seminar/migrations/0115_separace_tvorby.py deleted file mode 100644 index 50f99b55..00000000 --- a/seminar/migrations/0115_separace_tvorby.py +++ /dev/null @@ -1,212 +0,0 @@ -# Generated by Django 2.2.28 on 2023-08-09 15:15 - -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - ('seminar', '0114_separace_personalniho'), - ] - - operations = [ - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.RemoveField( - model_name='clanek', - name='cislo', - ), - migrations.RemoveField( - model_name='clanek', - name='problem_ptr', - ), - migrations.RemoveField( - model_name='deadline', - name='cislo', - ), - migrations.RemoveField( - model_name='pohadka', - name='autor', - ), - migrations.RemoveField( - model_name='problem', - name='autor', - ), - migrations.RemoveField( - model_name='problem', - name='garant', - ), - migrations.RemoveField( - model_name='problem', - name='nadproblem', - ), - migrations.RemoveField( - model_name='problem', - name='opravovatele', - ), - migrations.RemoveField( - model_name='problem', - name='polymorphic_ctype', - ), - migrations.RemoveField( - model_name='problem', - name='zamereni', - ), - migrations.RemoveField( - model_name='tema', - name='problem_ptr', - ), - migrations.RemoveField( - model_name='tema', - name='rocnik', - ), - migrations.RemoveField( - model_name='uloha', - name='cislo_deadline', - ), - migrations.RemoveField( - model_name='uloha', - name='cislo_reseni', - ), - migrations.RemoveField( - model_name='uloha', - name='cislo_zadani', - ), - migrations.RemoveField( - model_name='uloha', - name='problem_ptr', - ), - migrations.RemoveField( - model_name='zmrazenavysledkovka', - name='deadline', - ), - migrations.AlterField( - model_name='cislonode', - name='cislo', - field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Cislo', verbose_name='číslo'), - ), - migrations.AlterField( - model_name='hodnoceni', - name='cislo_body', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='hodnoceni', to='tvorba.Cislo', verbose_name='číslo pro body'), - ), - migrations.AlterField( - model_name='hodnoceni', - name='deadline_body', - field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='hodnoceni', to='tvorba.Deadline', verbose_name='deadline pro body'), - ), - migrations.AlterField( - model_name='hodnoceni', - name='problem', - field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='hodnoceni', to='tvorba.Problem', verbose_name='problém'), - ), - migrations.AlterField( - model_name='konfera', - name='problem_ptr', - field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='tvorba.Problem'), - ), - migrations.AlterField( - model_name='nastaveni', - name='aktualni_cislo', - field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Cislo', verbose_name='Aktuální číslo'), - ), - migrations.AlterField( - model_name='pohadkanode', - name='pohadka', - field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Pohadka', verbose_name='pohádka'), - ), - migrations.AlterField( - model_name='reseni', - name='problem', - field=models.ManyToManyField(help_text='Problém', through='seminar.Hodnoceni', to='tvorba.Problem', verbose_name='problém'), - ), - migrations.AlterField( - model_name='rocniknode', - name='rocnik', - field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Rocnik', verbose_name='ročník'), - ), - migrations.AlterField( - model_name='soustredeni', - name='rocnik', - field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='soustredeni', to='tvorba.Rocnik', verbose_name='ročník'), - ), - migrations.AlterField( - model_name='temavcislenode', - name='tema', - field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Tema', verbose_name='téma v čísle'), - ), - migrations.AlterField( - model_name='ulohavzoraknode', - name='uloha', - field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='tvorba.Uloha', verbose_name='úloha'), - ), - migrations.AlterField( - model_name='ulohazadaninode', - name='uloha', - field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='tvorba.Uloha', verbose_name='úloha'), - ), - ], - database_operations=[], - ), - migrations.SeparateDatabaseAndState( - state_operations=[ - migrations.DeleteModel( - name='Cislo', - ), - migrations.DeleteModel( - name='Clanek', - ), - migrations.DeleteModel( - name='Deadline', - ), - migrations.DeleteModel( - name='Pohadka', - ), - migrations.DeleteModel( - name='Problem', - ), - migrations.DeleteModel( - name='Rocnik', - ), - migrations.DeleteModel( - name='Tema', - ), - migrations.DeleteModel( - name='Uloha', - ), - migrations.DeleteModel( - name='ZmrazenaVysledkovka', - ), - ], - database_operations=[ - migrations.AlterModelTable( - name='Cislo', table="mam_cisla", - ), - migrations.AlterModelTable( - name='Deadline', table="mam_deadliny", - ), - migrations.AlterModelTable( - name='Problem', table="mam_problemy", - ), - migrations.AlterModelTable( - name='Rocnik', table="mam_rocniky", - ), - migrations.AlterModelTable( - name='ZmrazenaVysledkovka', table="mam_vysledkovky", - ), - migrations.AlterModelTable( - name='Pohadka', table="mam_pohadky", - ), - migrations.AlterModelTable( - name='Uloha', table="mam_ulohy", - ), - migrations.AlterModelTable( - name='Tema', table="mam_temata", - ), - migrations.AlterModelTable( - name='Clanek', table="mam_clanky", - ), - ], - ), - ] diff --git a/seminar/migrations/0116_smazani_personalniho.py b/seminar/migrations/0116_smazani_personalniho.py new file mode 100644 index 00000000..25f11f79 --- /dev/null +++ b/seminar/migrations/0116_smazani_personalniho.py @@ -0,0 +1,54 @@ +# Generated by Django 2.2.28 on 2023-08-09 15:15 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0114_prejmenovani_tabulek'), + ] + + operations = [ + migrations.SeparateDatabaseAndState( + state_operations=[ + migrations.RemoveField( + model_name='osoba', + name='user', + ), + migrations.RemoveField( + model_name='prijemce', + name='osoba', + ), + migrations.RemoveField( + model_name='resitel', + name='osoba', + ), + migrations.RemoveField( + model_name='resitel', + name='skola', + ), + migrations.RemoveField( + model_name='skola', + name='kontaktni_osoba', + ), + migrations.DeleteModel( + name='Organizator', + ), + migrations.DeleteModel( + name='Osoba', + ), + migrations.DeleteModel( + name='Prijemce', + ), + migrations.DeleteModel( + name='Resitel', + ), + migrations.DeleteModel( + name='Skola', + ), + ], + database_operations=[], + ), + ] diff --git a/seminar/migrations/0117_separace_tvorby.py b/seminar/migrations/0117_separace_tvorby.py new file mode 100644 index 00000000..0df1bb86 --- /dev/null +++ b/seminar/migrations/0117_separace_tvorby.py @@ -0,0 +1,89 @@ +# Generated by Django 2.2.28 on 2023-08-09 15:15 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0116_smazani_personalniho'), + ('tvorba', '0001_initial'), + ] + + run_before = [ + ('seminar', '0118_smazani_tvorby'), + ] + + operations = [ + migrations.SeparateDatabaseAndState( + state_operations=[ + migrations.AlterField( + model_name='cislonode', + name='cislo', + field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Cislo', verbose_name='číslo'), + ), + migrations.AlterField( + model_name='hodnoceni', + name='cislo_body', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='hodnoceni', to='tvorba.Cislo', verbose_name='číslo pro body'), + ), + migrations.AlterField( + model_name='hodnoceni', + name='deadline_body', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='hodnoceni', to='tvorba.Deadline', verbose_name='deadline pro body'), + ), + migrations.AlterField( + model_name='hodnoceni', + name='problem', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='hodnoceni', to='tvorba.Problem', verbose_name='problém'), + ), + migrations.AlterField( + model_name='konfera', + name='problem_ptr', + field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='tvorba.Problem'), + ), + migrations.AlterField( + model_name='nastaveni', + name='aktualni_cislo', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Cislo', verbose_name='Aktuální číslo'), + ), + migrations.AlterField( + model_name='pohadkanode', + name='pohadka', + field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Pohadka', verbose_name='pohádka'), + ), + migrations.AlterField( + model_name='reseni', + name='problem', + field=models.ManyToManyField(help_text='Problém', through='seminar.Hodnoceni', to='tvorba.Problem', verbose_name='problém'), + ), + migrations.AlterField( + model_name='rocniknode', + name='rocnik', + field=models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Rocnik', verbose_name='ročník'), + ), + migrations.AlterField( + model_name='soustredeni', + name='rocnik', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='soustredeni', to='tvorba.Rocnik', verbose_name='ročník'), + ), + migrations.AlterField( + model_name='temavcislenode', + name='tema', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='tvorba.Tema', verbose_name='téma v čísle'), + ), + migrations.AlterField( + model_name='ulohavzoraknode', + name='uloha', + field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='tvorba.Uloha', verbose_name='úloha'), + ), + migrations.AlterField( + model_name='ulohazadaninode', + name='uloha', + field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='tvorba.Uloha', verbose_name='úloha'), + ), + ], + database_operations=[], + ), + ] diff --git a/seminar/migrations/0118_smazani_tvorby.py b/seminar/migrations/0118_smazani_tvorby.py new file mode 100644 index 00000000..fa90e8b2 --- /dev/null +++ b/seminar/migrations/0118_smazani_tvorby.py @@ -0,0 +1,112 @@ +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0116_smazani_personalniho'), + ] + + operations = [ + migrations.SeparateDatabaseAndState( + state_operations=[ + migrations.RemoveField( + model_name='clanek', + name='cislo', + ), + migrations.RemoveField( + model_name='clanek', + name='problem_ptr', + ), + migrations.RemoveField( + model_name='deadline', + name='cislo', + ), + migrations.RemoveField( + model_name='pohadka', + name='autor', + ), + migrations.RemoveField( + model_name='problem', + name='autor', + ), + migrations.RemoveField( + model_name='problem', + name='garant', + ), + migrations.RemoveField( + model_name='problem', + name='nadproblem', + ), + migrations.RemoveField( + model_name='problem', + name='opravovatele', + ), + migrations.RemoveField( + model_name='problem', + name='polymorphic_ctype', + ), + migrations.RemoveField( + model_name='problem', + name='zamereni', + ), + migrations.RemoveField( + model_name='tema', + name='problem_ptr', + ), + migrations.RemoveField( + model_name='tema', + name='rocnik', + ), + migrations.RemoveField( + model_name='uloha', + name='cislo_deadline', + ), + migrations.RemoveField( + model_name='uloha', + name='cislo_reseni', + ), + migrations.RemoveField( + model_name='uloha', + name='cislo_zadani', + ), + migrations.RemoveField( + model_name='uloha', + name='problem_ptr', + ), + migrations.RemoveField( + model_name='zmrazenavysledkovka', + name='deadline', + ), + migrations.DeleteModel( + name='Cislo', + ), + migrations.DeleteModel( + name='Clanek', + ), + migrations.DeleteModel( + name='Deadline', + ), + migrations.DeleteModel( + name='Pohadka', + ), + migrations.DeleteModel( + name='Problem', + ), + migrations.DeleteModel( + name='Rocnik', + ), + migrations.DeleteModel( + name='Tema', + ), + migrations.DeleteModel( + name='Uloha', + ), + migrations.DeleteModel( + name='ZmrazenaVysledkovka', + ), + ], + database_operations=[], + ), + ] diff --git a/seminar/migrations/0119_separace_odevzdavatka.py b/seminar/migrations/0119_separace_odevzdavatka.py new file mode 100644 index 00000000..b156fe27 --- /dev/null +++ b/seminar/migrations/0119_separace_odevzdavatka.py @@ -0,0 +1,29 @@ +# Generated by Django 2.2.28 on 2023-08-09 17:37 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('seminar', '0118_smazani_tvorby'), + ('odevzdavatko', '0001_initial') + ] + + run_before = [ + ('seminar', '0120_smazani_odevzdavatka'), + ] + + operations = [ + migrations.SeparateDatabaseAndState( + state_operations=[ + migrations.AlterField( + model_name='reseninode', + name='reseni', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='odevzdavatko.Reseni', verbose_name='reseni'), + ), + ], + database_operations=[], + ), + ] diff --git a/seminar/migrations/0116_separace_odevzdavatka.py b/seminar/migrations/0120_smazani_odevzdavatka.py similarity index 59% rename from seminar/migrations/0116_separace_odevzdavatka.py rename to seminar/migrations/0120_smazani_odevzdavatka.py index 720cef92..da5b1e20 100644 --- a/seminar/migrations/0116_separace_odevzdavatka.py +++ b/seminar/migrations/0120_smazani_odevzdavatka.py @@ -1,5 +1,3 @@ -# Generated by Django 2.2.28 on 2023-08-09 17:37 - from django.db import migrations, models import django.db.models.deletion @@ -7,7 +5,7 @@ import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ - ('seminar', '0115_separace_tvorby'), + ('seminar', '0118_smazani_tvorby'), ] operations = [ @@ -37,16 +35,6 @@ class Migration(migrations.Migration): model_name='reseni_resitele', name='resitele', ), - migrations.AlterField( - model_name='reseninode', - name='reseni', - field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='odevzdavatko.Reseni', verbose_name='reseni'), - ), - ], - database_operations=[], - ), - migrations.SeparateDatabaseAndState( - state_operations=[ migrations.DeleteModel( name='Hodnoceni', ), @@ -60,19 +48,6 @@ class Migration(migrations.Migration): name='Reseni_Resitele', ), ], - database_operations=[ - migrations.AlterModelTable( - name='Hodnoceni', table="mam_hodnoceni", - ), - migrations.AlterModelTable( - name='Reseni', table="mam_reseni", - ), - migrations.AlterModelTable( - name='Reseni_Resitele', table="mam_reseni_resitele", - ), - migrations.AlterModelTable( - name='PrilohaReseni', table="mam_priloha_reseni", - ), - ], + database_operations=[], ), ] diff --git a/seminar/migrations/0117_separace_soustredeni.py b/seminar/migrations/0121_smazani_soustredeni.py similarity index 69% rename from seminar/migrations/0117_separace_soustredeni.py rename to seminar/migrations/0121_smazani_soustredeni.py index 7658cdb6..68b49abe 100644 --- a/seminar/migrations/0117_separace_soustredeni.py +++ b/seminar/migrations/0121_smazani_soustredeni.py @@ -6,9 +6,7 @@ from django.db import migrations class Migration(migrations.Migration): dependencies = [ - ('prednasky', '0014_auto_20230809_2130'), - ('galerie', '0011_auto_20230809_2130'), - ('seminar', '0116_separace_odevzdavatka'), + ('seminar', '0120_smazani_odevzdavatka'), ] operations = [ @@ -50,11 +48,6 @@ class Migration(migrations.Migration): model_name='soustredeni_ucastnici', name='soustredeni', ), - ], - database_operations=[], - ), - migrations.SeparateDatabaseAndState( - state_operations=[ migrations.DeleteModel( name='Konfera', ), @@ -72,21 +65,6 @@ class Migration(migrations.Migration): ), ], database_operations=[ - migrations.AlterModelTable( - name='Konfera', table="mam_konfera", - ), - migrations.AlterModelTable( - name='Soustredeni', table="mam_soustredeni", - ), - migrations.AlterModelTable( - name='Soustredeni_Ucastnici', table="mam_soustredeni_ucastnici", - ), - migrations.AlterModelTable( - name='Soustredeni_Organizatori', table="mam_soustredeni_organizatori", - ), - migrations.AlterModelTable( - name='Konfery_Ucastnici', table="mam_konfery_ucastnici", - ), ], ), diff --git a/seminar/migrations/0118_separace_treenode.py b/seminar/migrations/0122_smazani_treenode.py similarity index 73% rename from seminar/migrations/0118_separace_treenode.py rename to seminar/migrations/0122_smazani_treenode.py index 6f66b708..083c56da 100644 --- a/seminar/migrations/0118_separace_treenode.py +++ b/seminar/migrations/0122_smazani_treenode.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ ('odevzdavatko', '0001_initial'), - ('seminar', '0117_separace_soustredeni'), + ('seminar', '0121_smazani_soustredeni'), ] operations = [ @@ -105,11 +105,6 @@ class Migration(migrations.Migration): model_name='ulohazadaninode', name='uloha', ), - ], - database_operations=[], - ), - migrations.SeparateDatabaseAndState( - state_operations=[ migrations.DeleteModel( name='CastNode', ), @@ -147,43 +142,6 @@ class Migration(migrations.Migration): name='UlohaZadaniNode', ), ], - database_operations=[ - migrations.AlterModelTable( - name='TreeNode', table="mam_nodes_treenode", - ), - migrations.AlterModelTable( - name='CastNode', table="mam_nodes_cast", - ), - migrations.AlterModelTable( - name='MezicisloNode', table="mam_nodes_mezicislo", - ), - migrations.AlterModelTable( - name='UlohaZadaniNode', table="mam_nodes_uloha_zadani", - ), - migrations.AlterModelTable( - name='UlohaVzorakNode', table="mam_nodes_uloha_vzorak", - ), - migrations.AlterModelTable( - name='TextNode', table="mam_nodes_obsah", - ), - migrations.AlterModelTable( - name='TemaVCisleNode', table="mam_nodes_temavcisle", - ), - migrations.AlterModelTable( - name='RocnikNode', table="mam_nodes_rocnik", - ), - migrations.AlterModelTable( - name='ReseniNode', table="mam_nodes_otistene_reseni", - ), - migrations.AlterModelTable( - name='PohadkaNode', table="mam_nodes_pohadka", - ), - migrations.AlterModelTable( - name='OrgTextNode', table="mam_nodes_orgtextnode", - ), - migrations.AlterModelTable( - name='CisloNode', table="mam_nodes_cislo", - ), - ], + database_operations=[], ), ] diff --git a/soustredeni/migrations/0001_initial.py b/soustredeni/migrations/0001_initial.py index c3c45624..bacddcb0 100644 --- a/soustredeni/migrations/0001_initial.py +++ b/soustredeni/migrations/0001_initial.py @@ -11,8 +11,8 @@ class Migration(migrations.Migration): dependencies = [ ('tvorba', '0001_initial'), - ('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), - ('seminar', '0116_separace_odevzdavatka'), + ('personalni', '0002_initial'), + ('seminar', '0117_separace_tvorby'), ] operations = [ diff --git a/treenode/migrations/0001_initial.py b/treenode/migrations/0001_initial.py index fcfca6e1..3763a7ad 100644 --- a/treenode/migrations/0001_initial.py +++ b/treenode/migrations/0001_initial.py @@ -10,10 +10,14 @@ class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), - ('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), - ('odevzdavatko', '0002_presun_treenode'), + ('personalni', '0002_initial'), + ('odevzdavatko', '0001_initial'), ('tvorba', '0001_initial'), - ('seminar', '0118_separace_treenode'), + ('seminar', '0119_separace_odevzdavatka'), + ] + + run_before = [ + ('seminar', '0122_smazani_treenode'), ] operations = [ diff --git a/tvorba/migrations/0001_initial.py b/tvorba/migrations/0001_initial.py index 40c5bc22..3941b358 100644 --- a/tvorba/migrations/0001_initial.py +++ b/tvorba/migrations/0001_initial.py @@ -16,8 +16,8 @@ class Migration(migrations.Migration): dependencies = [ ('taggit', '0004_alter_taggeditem_content_type_alter_taggeditem_tag'), ('contenttypes', '0002_remove_content_type_name'), - ('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), - ('seminar', '0114_separace_personalniho'), + ('personalni', '0002_initial'), + ('seminar', '0115_separace_personalniho'), ] operations = [