Jonas Havelka
1 year ago
20 changed files with 458 additions and 378 deletions
@ -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", |
|||
), |
|||
] |
@ -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", |
|||
), |
|||
], |
|||
), |
|||
] |
@ -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=[], |
|||
), |
|||
] |
@ -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=[], |
|||
), |
|||
] |
@ -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=[], |
|||
), |
|||
] |
@ -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=[], |
|||
), |
|||
] |
Loading…
Reference in new issue